Skip to content

Instantly share code, notes, and snippets.

@zettelmuseum
zettelmuseum / decrypt_en_new.py
Last active December 20, 2019 12:10
Decrypting Epsilon Note encoded notes with python - updated for aes256 and python3 (first do: pip install pycrypto)
#!/usr/bin/python
######################################################################
# Decrypt an Epsilon Note encoded file given the password.
#
# This file is in the public domain.
#
# original file by Dov Grobgeld <dov.grobgeld@gmail.com> 2017-02-17
#
# adapted to python3 and aes256 by zettelding@gmail.com 2019-12-17
@zettelmuseum
zettelmuseum / gist:4f4eea0941ef94a83c0b75caab75a722
Created December 16, 2019 15:45
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)