I'm writing a shell script that will use OpenSSL's SMIME function to encrypt a file. I'll need a way for the user to pass in the key. Let me know which of these options you think is easier to remember. The script is simply called "aes"
Encrypting "file.txt" with "publickey.pem".
vs
Decrypting the resulting encrypted file using "privatekey.pem"
vs
Right now, this is for my own uses, so syntax doesn't really matter as long as I remember it. However, I might send it to some friends, so I would like it to be easy to use. I'm also planning to add a "-shred" option to shred the plaintext file, so that will have to make its way in there too.
Encrypting "file.txt" with "publickey.pem".
Code:
aes -e file.txt publickey.pem
Code:
aes -e publickey.pem file.txt
Decrypting the resulting encrypted file using "privatekey.pem"
Code:
aes -d file.txt.aes192 privatekey.pem
Code:
aes -d privatekey.pem file.txt.aes192
Right now, this is for my own uses, so syntax doesn't really matter as long as I remember it. However, I might send it to some friends, so I would like it to be easy to use. I'm also planning to add a "-shred" option to shred the plaintext file, so that will have to make its way in there too.