Skip to content

Instantly share code, notes, and snippets.

@Bradshaw

Bradshaw/edit.sh Secret

Created February 14, 2020 17:44
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 Bradshaw/b8bfaf09d479aac75520671526baff4f to your computer and use it in GitHub Desktop.
Save Bradshaw/b8bfaf09d479aac75520671526baff4f to your computer and use it in GitHub Desktop.
#!/bin/bash
openssl enc -aes-256-cbc -d -in "$1" -pass "$2" \
| EDITOR=nano vipe \
| openssl enc -aes-256-cbc -out "$1" -pass "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment