Skip to content

Instantly share code, notes, and snippets.

@davebarnwell
Created July 27, 2017 15:52
Show Gist options
  • Save davebarnwell/45397b17d60955ecd9138cdebbe50a32 to your computer and use it in GitHub Desktop.
Save davebarnwell/45397b17d60955ecd9138cdebbe50a32 to your computer and use it in GitHub Desktop.
use openssl to encrypt and decrypt with a password (keys are better, but this is quick)

Encrypt Archive.zip saving as Archive.zip.dat, you'll be prompted to enter a password and confirm it

openssl enc -aes-256-cbc -in Archive.zip >Archive.zip.dat

Decrypt Archive.zip.dat saving as Archive.zip, you'll be prompted to enter the password you used to encrypt it

openssl enc -aes-256-cbc -d -in Archive.zip.dat >Archive.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment