Posts
read more
Encrypting Files using OpenSSL
Let’s say we have a file that contains sensitive information and we want to encyrpt it. You can encrypt a file very easily using the openssl command:
$ cat secret.txtThis file contains some very secret stuff$ openssl enc -e -aes-256-cbc -pbkdf2 -a -salt -in secret.txt -out secret.encenter aes-256-cbc encryption password: <enter-a-password>Verifying - enter aes-256-cbc encryption password: <enter-a-password>$ cat secret.encU2FsdGVkX19Rnz48WjLeljd19wvNOhQy+zzYwxCANezCTkqpGMl9zs4HdwdUzZjlVQkUsCJ7b0rUpRi83UlcwA==