I need something simple, where I can:
- encrypt it with a password (salt, everything related)
- write it to disk
Then the opposite:
- read from disk
- decrypt it with my password
Everything I find out there is either not maintained properly, or doesn't have examples, or outdated, or needs 50 lines of code to be used which I have to maintain myself.
I would like to have something as simple as what I do locally on my terminal. I do this on my terminal:
$ cat data | openssl des3 -salt | dd of=output.des3
$ dd if=output.des3 | openssl des3 -d -salt
How can I do this in Python in a cross plaform and secure way?