Created
December 16, 2019 15:45
-
-
Save zettelmuseum/4f4eea0941ef94a83c0b75caab75a722 to your computer and use it in GitHub Desktop.
bash oneliner to decrypt epsilon notes text file (needs openssl)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works in termux!