Skip to content

Instantly share code, notes, and snippets.

@antoniocosentino
Created October 20, 2022 08:43
Show Gist options
  • Save antoniocosentino/7a6fb47f2e7ed5c29cdd609b1541444f to your computer and use it in GitHub Desktop.
Save antoniocosentino/7a6fb47f2e7ed5c29cdd609b1541444f to your computer and use it in GitHub Desktop.
Encrypt / Decrypt a file in Mac using open SSL (Mac command line)
# 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