Skip to content

Instantly share code, notes, and snippets.

@FoxNeo
Created April 26, 2021 21:07
Show Gist options
  • Select an option

  • Save FoxNeo/279bd3d4cf83ccf30602e6cd1b5a5ca4 to your computer and use it in GitHub Desktop.

Select an option

Save FoxNeo/279bd3d4cf83ccf30602e6cd1b5a5ca4 to your computer and use it in GitHub Desktop.

Encrypt files with openSSL

$ openssl aes-256-cbc -a -salt -in photo.jpg -out fimily-photo.enc
enter password: ********

Decrypt file with openSSL

$ openssl aes-256-cbc -d -a -in family-photo.enc -out photo.jpg
enter password: ********
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment