Użytkownik Carey Gagnon napisał:
> Ok....two days and still no luck getting stronger cryto going.
> I've installed pycryto and I know it work after reading this thread:
> http://old.nabble.com/Re%3A-Reading-the-tutorial%2C-a-few-questions-p27979690.html
>
> As demonstrated by the out put I received.
>    
>>>> import dabo
>>>> from dabo.lib.SimpleCrypt import SimpleCrypt
>>>> obj = SimpleCrypt()
>>>> print obj.encrypt("Ricardo")
>>>>          
> Warning (from warnings module):
>    File "C:\src\dabo\lib\SimpleCrypt.py", line 52
>      warnings.warn("WARNING: SimpleCrypt is not secure. Please see
> http://wiki.dabodev.com/SimpleCrypt for more information")
> UserWarning: WARNING: SimpleCrypt is not secure. Please see
> http://wiki.dabodev.com/SimpleCrypt for more information
> P56DCFVB5Y82XF9D3BN8A
>
>    
>>>> import dabo
>>>> from dabo.lib.SimpleCrypt import SimpleCrypt
>>>> obj = SimpleCrypt("Some top-secret key!")
>>>> print obj.encrypt("Ricardo")
>>>>          
> MSzFMOyqtvXMmllDNRMoaZk=
>
> Now how do I get this into my app???
> I have one built with the class designer and one done with the AppWizard but
> nothing I do seems to work.
>
> I tried putting a settings_override.py file in the main app directory with
> crytoKeyDES = "Some Text Value"  per the wiki....no go
>
> How can I set the *cryptoKeyDES variable*  in my main app .
> It will be compiled into an exe later so I'm not worried about it being
> seen.
> I've looked all over the forums for examples to no avail.
>    

Hi.

In your application class initProperties() method add line:
         self.CryptoKey = "my_encryption_key"

-- 
Regards
Jacek Kałucki

_______________________________________________
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]

Reply via email to