Kioshiki 6 Posted January 25, 2014 Share Posted January 25, 2014 I've recently decided to look at using the 'Encrypt Selected Text...' option on the context menu in a note. Before I start using it for anything important I wanted to make sure I could access the text in exported data. I'm wondering what would happen if I come back to an exported note sometime in the future and I don't have access to an Evernote client to decrypt the text. For this reason I wanted to make sure I could decrypt the data outside of Evernote. The problem is it does not seem to be possible. I tried searching on the forum but I couldn't find any posts about this. I found a post on stackoverflow that is similar to this issue: Incompatible AES implementations? On the Evernote page ENML Understanding the Evernote Markup Language the element en-crypt is described with only minimal details. From that page we know the data is base64 encoded. Here's an example taken from an exported file today: <en-crypt cipher="AES" hint="a hint" length="128">**Encoded data removed**</en-crypt> So we know that it currently uses AES 128. The problem seems to be that's not enough information as there are various different types of AES. this seems to be the same problem on that stackoverflow question. Basically Evernote is using one method to encrypt the data and the apps I'm trying to decrypt the data are using a different method. I extracted the base64 data using this command: openssl base64 -d -A -in en_test_b64.txt -out en_test_enc.txt That generates a binary file. I've tried this with two different bits of encrypted text and the output from both starts with 'ENC' the first had 'ENC08' while the second had 'ENC0' then it goes on with other random characters. I tried searching online and couldn't find any reference to this being a standard format. If I try decrypting the data with openssl using this: openssl enc -d -aes128 -in en_test_enc.txt -out en_test_dec.txt I get a 'bad magic number' error. If I add '-nosalt' I then get a 'bad decrypt' error. I understand bits about encryption and decryption but I'm certainly not an expert. Has anyone ever managed to successfully decrypt text from an enex file outside of an Evernote client? If someone from Evernote reads this can you confirm if it is possible to decrypt the data outside of an Evernote client? Thanks for reading this, hopefully there is a solution to this or maybe I shouldn't worry about it so much . P.S. I considered posting this in the Evernote for Developers section but decided its not related to scripting or the API so I thought the general section would be fine. Link to comment
This topic is now archived and is closed to further replies.