Skip to content

Instantly share code, notes, and snippets.

@zettelmuseum
Created December 16, 2019 15:45
Show Gist options
  • Save zettelmuseum/4f4eea0941ef94a83c0b75caab75a722 to your computer and use it in GitHub Desktop.
Save zettelmuseum/4f4eea0941ef94a83c0b75caab75a722 to your computer and use it in GitHub Desktop.
bash oneliner to decrypt epsilon notes text file (needs openssl)
openssl enc -d -aes-256-cbc -iv $(sed -n '/~encrypted/,/~/!d;//d;p' <myfile.txt | base64 -d | tail -c16 | xxd -ps) -K $(echo -n mypassword|openssl dgst -r -sha256 | head -c64) < <(sed -n '/~encrypted/,/~/!d;//d;p' <myfile.txt | base64 -d | head -c-16)
@zettelmuseum
Copy link
Author

Works in termux!

@zettelmuseum
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment