Decrypt single .md file

Thanks, that really helped.

Hi, this is a bit related to the thread so here it goes:

Joplin Desktop is failing to decrypt my dropbox synced notes, so I decided to download the folder and decrypt it locally with the joplin cli.

So from whatever I understand, these are the steps I took:

  1. joplin e2ee enable -p <password>
  2. joplin e2ee decrypt <path to file> -o <outpiut dir>

But this is giving me this error:

Invalid encryption identifier. Data is not actually encrypted? ID was:

When I do joplin e2ee status -v <file>

I get:

Encryption is: Enabled

So can anyone shed some light, what's going on?

The decryption command you posted is not right. We need to see the actual command in order to help

edited.

"Invalid encryption identifier" means this particular file is either not encrypted or not a Joplin file. When you open it, how does the data look?

Then How do you explain this:

Also this is the file's contents:

id: redacted
parent_id: redacted
created_time: 
updated_time: redacted
is_conflict: 
latitude: 
longitude: 
altitude: 
author: 
source_url: 
is_todo: 
todo_due: 
todo_completed: 
source: 
source_application: 
application_data: 
order: 
user_created_time: 
user_updated_time: 
encryption_cipher_text: {<cipher text redacted>}
encryption_applied: 1
markup_language: 
is_shared: 
share_id: 
conflict_original_id: 
master_key_id: 
type_: 1

I am trying to get the master key decrypted with my password, reading this in the codebase, it seams you are using sjcl's json API, but on that front I am also getting an error in nodejs repl. :sweat_smile:

I just downloaded "Joplin" folder from Dropbox and used "filesystem" as a sync source.

I can see my notes now! you should document how the whole encryption thingy works though.

see End-To-End Encryption (E2EE) | Joplin and Encryption | Joplin