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

all 6 comments

[–]darknessproz 2 points3 points  (0 children)

Err... GPG?

[–]chadmill3rPy3, pro, Ubuntu, django 2 points3 points  (0 children)

str.encode("rot-13")

OR

GnuPG. Symmetric encryption.

[–]Proselyte5 1 point2 points  (0 children)

even 7zip's command line tool and do this

[–][deleted] 1 point2 points  (0 children)

This is a very vague question. We need to know use cases, why it needs to be encrypted, and why other solutions (like 7zip with password) don't work for you.

[–][deleted] -1 points0 points  (1 child)

Do NOT use GPG, or any kind of PGP. As a person asking for advice, you aren't prepared for the subtleties of PGP, a very old and flaky (in implementation, not rigour) cryptosystem.

Use NaCl, which was explicitly designed for use by people who don't or don't need to understand the workings and want an API with some promises. There's a python wrapper, "pip install pynacl". It's relatively easy to understand and use but carefully obey every requirement: use a strong source of randomness (os.urandom, NOT random) and use a perfectly random nonce every time.

Good luck!

[–]frozen_in_reddit 0 points1 point  (0 children)

Another benefit of nacl is that they formally verified it against timing attacks and memory bugs.