On Mar 21, 2010, at 4:42 PM, Ricardo Aráoz wrote:
> But still don't get it. PyCrypto is ok, I can do """from Crypto.Cipher
> import DES3""" without error. But I'm not using an app, just bizobjects.
> So I don't get which property I should set.
Ah, I wasn't thinking about that case.
Looking at the code, it seems that there is no way to use the DES3
option without the Application object. I'll have to fix that.
> And I must be thick today but I don't get which string to set either.
> You say "the string you want to use". To use for what? Do you mean I
> should store the db password there? Or a seed string? Or what?
Your encryption key. This can be just about anything you want, although
only the first 16 characters are significant. If you want to play with this,
you can do the following:
import dabo
from dabo.lib.SimpleCrypt import SimpleCrypt
obj = SimpleCrypt()
print obj.encrypt("Ricardo")
# You should see the warnings, etc., followed by the output
# Now try with DES3.
import dabo
from dabo.lib.SimpleCrypt import SimpleCrypt
obj = SimpleCrypt("Some top-secret key!")
print obj.encrypt("Ricardo")
# No warnings if everything worked correctly.
-- 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]