Created
October 20, 2022 08:43
-
-
Save antoniocosentino/7a6fb47f2e7ed5c29cdd609b1541444f to your computer and use it in GitHub Desktop.
Encrypt / Decrypt a file in Mac using open SSL (Mac command line)
This file contains 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
# to encrypt | |
openssl enc -aes-256-cbc -a -salt -in file.txt -out file.enc | |
# to decrypt | |
openssl enc -d -aes-256-cbc -a -in file.enc -out file.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment