To create a new ssh key:
ssh-keygen -t rsa -b 2048 -C "COMMENT"To change the passphrase on a key:
ssh-keygen -p -f KEYFILE [-P OLDPASS] [-N NEWPASS]There's a nice guide to this sort of thing here.
ssh-keygen -t rsa -b 2048 -C "COMMENT"To change the passphrase on a key:
ssh-keygen -p -f KEYFILE [-P OLDPASS] [-N NEWPASS]There's a nice guide to this sort of thing here.
openssl enc -des -a -e -pass pass:PASSWORD -in INFILE -out OUTFILEIf you leave out INFILE or OUTFILE, it defaults to stdin and stdout. So you can do:
echo "This is a secret" | openssl enc -des -a -e -pass pass:PASSWORDand the encrypted version will be written to the terminal.
openssl enc -des -a -d -pass pass:PASSWORD -in ENCRYPTED -out DECRTYPEDOr, again:
echo "U2FsdGVkX1+Kqcs+25e+6MiQBr4NT8ykx3POhv9yAf9gnvSn4D2L0A==" | openssl enc -des -a -d -pass pass:PASSWORDAnd again you'll get the decrypted version written to the terminal.