On 02/11/2018 15.42, Jeff M wrote:
> Python newbie here, looking for code samples for encrypting and decrypting 
> functions, using AES.  See lots of stuff on the interwebs, but lots of 
> comments back an forth about bugs, or implemented incorrect, etc...
> 
> I need to encrypt some strings that will be passed around in URL, and then 
> also some PII data at rest.

Don't use raw AES. It's hard to get it right in the first place.

I'd recommend Fernet if you want something based on AES. Fernet is a
good high level algorithm that combines AES, safe padding, block mode,
and MAC in a sane and safe message format.
https://cryptography.io/en/latest/fernet/

Christian


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to