How to stretch a password and then encrypt a file?
I need a one-liner to stretch a password with something like Bcrypt or PBKDF2, and then encrypt a file with PGP or AES, eg: $ bcrypt "mypassword" --rounds 10 | aes256-cbc myfile.txt
I want the first command to be very slow, and the second one very fast.
Any ideas?
I need a one-liner to stretch a password with something like Bcrypt or PBKDF2, and then encrypt a file with PGP or AES, eg: $ bcrypt "mypassword" --rounds 10 | aes256-cbc myfile.txt
I want the first command to be very slow, and the second one very fast.
Any ideas?
No comments:
Post a Comment