[Tutor] Encryption
Modulok
modulok at gmail.com
Mon Feb 22 23:34:37 CET 2010
>> I need a simple way to encrypt and decrypt some strings with a key.
Did you have any other requirements? Any specific algorithms or key lengths?
If you need real encryption, you might check out a 3rd party module
named 'PyCrypto'. It offers an implementation of the AES algorithm. A
less eloquent approach - you could also wrap the Unix command
'openssl' with a python process. Whether you can get these libraries
will depend on where you live. Strong encryption is still strictly
controlled in some regions. There are code examples in the 'README'
file of pycrypto. There are probably other AES implementations out
there as well. However, the only FIPS certified library I know of is
openssl.
-Modulok-
On 2/22/10, Shashwat Anand <anand.shashwat at gmail.com> wrote:
> how about using base64? base64.encodestring(s) will do.
>
>
>
> On Tue, Feb 23, 2010 at 2:30 AM, Wayne Werner <waynejwerner at gmail.com>wrote:
>
>> On Mon, Feb 22, 2010 at 2:50 PM, Antonio Buzzelli <anto.buzzelli at gmail.com
>> > wrote:
>>
>>> Hi everyone!
>>> I need a simple way to encrypt and decrypt some strings with a key
>>>
>>> someone can help me??
>>
>>
>> I'm sure someone can.
>>
>> -Wayne
>>
>> _______________________________________________
>> Tutor maillist - Tutor at python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>
>
More information about the Tutor
mailing list