Last active
June 28, 2024 14:44
-
-
Save mstyne/89e8d8e663b0bddbf432da4b6e282d58 to your computer and use it in GitHub Desktop.
Encrypt a file / pipe using OpenSSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Encrypt: | |
openssl aes-256-cbc -a -salt -in secrets.txt -out secrets.txt.enc | |
command | openssl aes-256-cbc -a -salt > secrets.txt.enc | |
php ex.php ubersmith | openssl aes-256-cbc -md sha512 -pbkdf2 -iter 1000000 -salt > data.csv.enc | |
Decrypt: | |
openssl aes-256-cbc -md sha512 -pbkdf2 -iter 1000000 -salt -d -in data.csv.enc -out data.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment