On Mar 21, 2010, at 3:43 PM, Ricardo Aráoz wrote:
>>>> import dabo
>>>> crytoKeyDES = "Some Text Value"
>>>> cryptoKeyDES = "Some Text Value"
>>>> dabo.cryptoKeyDES = "Some Text Value"
>>>> dabo.crytoKeyDES = "Some Text Value"
Oooh, so close! ;-)
The way to set the key is to set the Application's CryptoKey property
to either the string you want to use, or to a callable that will return the
string.
>>>> ci = dabo.db.dConnectInfo(Host='dabodev.com',
> ... DbType='MySQL', Database='webtest',
> ... User='webuser', PlainTextPassword='foxrocks')
> C:\Python25\lib\site-packages\dabo\dabo\lib\SimpleCrypt.py:52:
> UserWarning: WARNING: SimpleCrypt is not secure. Please see
> http://wiki.dabodev.com/SimpleCrypt for more information
> warnings.warn("WARNING: SimpleCrypt is not secure. Please see
> http://wiki.dabodev.com/SimpleCrypt for more information")
These are normal warnings that are printed out when you use the
built-in encryption methods of SimpleCrypt. If you still get them after setting
the app's CryptoKey property, make sure that you have the PyCrypto module
installed:
from Crypto.Cipher import DES3
If you can execute that without an error, you should be able to use
DES3 encryption instead of the very weak built-in encryption.
I'm going to add some info about encryption to the tutorial doc.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]