Quote:
Originally Posted by nephish
Hey all,
i am wanting to put a list of common passwords on a usb stick, but i want the file to be password protected. I also need to be able to access it from more than one computer (all linux, maybe a mac too).
Open to any suggestions.
|
1. Create the password file as plain text. Let's say we call it "secrets.txt"
2. Encrypt the file "secrets.txt":
$ openssl enc -aes-256-cbc -e -in secrets.txt -out secrets.enc
When you run this command, it will prompt for a password.
To decrypt:
$ openssl enc -aes-256-cbc -d -in secrets.enc -out secrets.txt
Obviously you could omit the output file specification during the decryption and let the result be printed to stdout. And you could put the encrypted content into a shell script in such a way that the shell script would feed it to openssh and get the unencrypted output on demand.