All credits belong to Lee Maguire. I had a hard time finding that script. My purpose with this repository is to present that script in a more usable format.
Update - Added ability to decrypt an enex file with multiple encrypted blocks.
Step 1: Export all encrypted notes by using the search option.
Go to search box in Evernote. Click on "Add Search Option". Select "Contains". Then from the second dropdown list, select "Encryption".
Select all notes and export to .enex
format. Let's call the file encrypted.enex
.
Step 2: Clone this repository and install dependencies. To do that, run the following commands.
git clone https://github.com/aviaryan/Evernote-Decrypt.git
cd Evernote-Decrypt
brew install pipenv
pipenv sync
Step 3: Decrypt using the script. Run the following command.
# <password> is your Evernote encryption password
# <output_file> is name of your decrypted enex file, let's call it decrypted.enex
pipenv run python EnexDecrypt.py -p <password> -o <output_file> < encrypted.enex
Step 4: You now have a decrypted Enex file. You can import it back into Evernote to export it as HTML. Or you can use this tool to convert the decrypted.enex
file into markdown files.