meld-cp / obsidian-encrypt

Hide secrets in your Obsidian.md vault
MIT License
563 stars 33 forks source link

File decryption by python #94

Closed Sil3ntD3s closed 1 year ago

Sil3ntD3s commented 1 year ago

It is possible to decrypt file using python or external software? I can't find any way to decrypt '.encrypted' extension file.

Especially i want to use python script to append few lines into the encrypted note.

meld-cp commented 1 year ago

Maybe.

You'd have to translate the class below to python and try it.

https://github.com/meld-cp/obsidian-encrypt/blob/main/src/services/CryptoHelper.ts

.encrypted files are just JSON. Decode it and pass the encrypted bytes to the translated decryptbase64 method in your python module.