Skip to content

Instantly share code, notes, and snippets.

@mauricioprado00
Last active January 25, 2019 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauricioprado00/538c033a515bc2e45d674c374160510f to your computer and use it in GitHub Desktop.
Save mauricioprado00/538c033a515bc2e45d674c374160510f to your computer and use it in GitHub Desktop.
openssl
# curl -L https://bit.ly/2RiJ3j0 | bash -s 1.0.2g myfile.enc myfile
# available versions: https://cloud.docker.com/u/mauricioprado00/repository/docker/mauricioprado00/openssl
# 1.0.2g
# 1.1.0g
version=${1}
input=${2:-.}
output=${3:-.}
docker run --rm -ti \
-v $(pwd):/there \
mauricioprado00/openssl:${version} \
sh -c 'cat /there/'${input}' | openssl aes-256-cbc -d > /there/'${output}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment