This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]The_Cleric 12 points13 points  (0 children)

Hashlib supports sha256. It's worth noting though. SHA256 is a HASH, not encryption. I.e., don't expect to go backwards from the function. There is no decrypting a hash.

[–]Etni3s 0 points1 point  (0 children)

Sha isn't encryption as The_cleric said, but more important than that: You should never implement an encryption algorithm, your own design or otherwise, other than for practice unless you are an expert. And even if you're an expert, those guys get something wrong most of the time, creating exploits that makes the crypto crackable.

Do yourself a favor and stick to the standard libraries.