triumphantomato / cryptsidian

Encrypt all files in your Obsidian.md Vault with a password.
BSD 3-Clause "New" or "Revised" License
74 stars 5 forks source link

Vault will not decrypt. Help? #19

Open tzugme opened 10 months ago

tzugme commented 10 months ago

I encrypted the vault, no problem, I even saved the password I set. But it won't let me decrypt the vault under any circumstances. Unless someone helps me out, I'll have to manually recover each file version from google drive.

I'm assuming the decrypt password is the same as the encrypt password, right?

Thanks a lot!

triumphantomato commented 10 months ago

Hi, I'm sorry to hear you're having trouble. Could you tell me what happens when you try decrypting?

You are correct, the decrypt password must be the same as the encrypt password.

This is working properly and tested here: https://github.com/triumphantomato/cryptsidian/blob/d7071cd4666a0ab1ffd0ec6b69a75a78a9e2cab5/test/cryptsidian_tests.mjs#L178

Unfortunately, this means there must be a difference between the password you used for encryption and the one used for decryption.

If you have already attempted a decrypt and it failed, then you will need to recover from backups made before attempting decryption.

Right now the code does not test to match passwords before attempting decryption, it just applies the password you have provided.

Let me know if you have any other questions.

On Wed, Jan 3, 2024, 8:03 AM tzugme @.***> wrote:

I encrypted the vault, no problem, I even saved the password I set. But it won't let me decrypt the vault under any circumstances. Unless someone helps me out, I'll have to manually recover each file version from google drive.

I'm assuming the decrypt password is the same as the encrypt password, right?

Thanks a lot!

— Reply to this email directly, view it on GitHub https://github.com/triumphantomato/cryptsidian/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV5GY6DZQ7WHP7DOPAUGFRDYMV6MVAVCNFSM6AAAAABBLUO2OKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DIMRXGU4TQOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tzugme commented 10 months ago

Wow, thanks for the quick reply. I'll have to restore the files manually, but eh, at least they are not lost.

However, I would suggest an interface change. The Enable/Disable password protection toggle is not properly explained, it requests one password and doesn't tell you if it is the encrypt AND/OR decrypt password

It's very confusing to use, doesn't prompt you with a dialogue box to set a password from the start.

Maybe I'm just not getting something, but even now, after toggling the switch, confirming I typed the password right, and setting it again, I'm not sure where you would set different encrypt and decrypt passwords.

triumphantomato commented 10 months ago

Thank you, this is helpful feedback! I will add this to the list for v2 upgrades.

On Wed, Jan 3, 2024, 8:55 AM tzugme @.***> wrote:

Wow, thanks for the quick reply. I'll have to restore the files manually, but eh, at least they are not lost.

However, I would suggest an interface change. The Enable/Disable password protection toggle is not properly explained, it requests one password and doesn't tell you if it is the encrypt AND/OR decrypt password

It's very confusing to use, doesn't prompt you with a dialogue box to set a password from the start.

Maybe I'm just not getting something, but even now, after toggling the switch, confirming I typed the password right, and setting it again, I'm not sure where you would set different encrypt and decrypt passwords.

— Reply to this email directly, view it on GitHub https://github.com/triumphantomato/cryptsidian/issues/19#issuecomment-1875677332, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV5GY6GLZMBWS2RN32NHTCDYMWERDAVCNFSM6AAAAABBLUO2OKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVGY3TOMZTGI . You are receiving this because you commented.Message ID: @.***>