TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Have You Ever Heard of the Fernet Encryption Algorithm?

11 pointsby freedudeover 1 year ago

6 comments

tptacekover 1 year ago
Fernet isn&#x27;t an algorithm. It&#x27;s a user-proof library for doing authenticated AES encryption; it is essentially Python&#x27;s answer to Rails&#x27; MessageEncryptor, and has had more success than MessageEncryptor at becoming a standard for its ecosystem.<p>The real lesson here though: don&#x27;t get cryptography advice from SANS. Cryptography is a specialized field; SANS is pretty close to the opposite of that.
评论 #37229807 未加载
googlryasover 1 year ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;fernet&#x2F;spec&#x2F;blob&#x2F;master&#x2F;Spec.md">https:&#x2F;&#x2F;github.com&#x2F;fernet&#x2F;spec&#x2F;blob&#x2F;master&#x2F;Spec.md</a><p>It&#x27;s just a simple format specification using standard crypto primitives.<p>&gt; AES in CBC mode with a 128-bit key for encryption; using PKCS7 padding.<p>&gt; HMAC using SHA256 for authentication.
评论 #37229115 未加载
eternityforestover 1 year ago
When would someone use this over libsodium(Or libhydrogen? Is that considered secure yet?)? It seems python-specific. I love python, but I&#x27;m a fan of universal standards.
aneutronover 1 year ago
Not sure the linked project is the up to date one.<p>I regularly use the &#x27;cryptography&#x27; package that has a &#x27;Fernet&#x27; object in &#x27;cryptography.fernet&#x27;.<p>And it is in cryptography so I trust they maintain it at least a bare minimum.<p>It is an amazing blackbox that assures me I can just provide a key and a ciphertext and rest easy that my data is correctly decrypted and autehnticated !
QuercusMaxover 1 year ago
This is a horrendously bad post, misleading all the way through.
jb1991over 1 year ago
Yes.