GurpreetKang / BitwardenDecrypt

Decrypts an encrypted Bitwarden data.json file.
GNU General Public License v3.0
245 stars 30 forks source link

Bitwarden Desktop 2022.8.0 data.json files can not be decrypted #17

Closed casualsailo closed 1 year ago

casualsailo commented 1 year ago

It looks like the structure of the organizationKeys json node changed slightly in the latest version, which I think is causing the decrypting error

Bitwarden Desktop 2022.8.0 Error

GurpreetKang commented 1 year ago

Thanks for reporting this, I'll look into this shortly.

GurpreetKang commented 1 year ago

Temporary fix available here: Fix for format change in Bitwarden Desktop 2022.8.0

While this works for new data.json files from v2022.8.0, it will fail on files from older versions so I'll need to create a more robust fix before making a new release.

GurpreetKang commented 1 year ago

This version should fix this issue and still support previous data.json files: https://raw.githubusercontent.com/GurpreetKang/BitwardenDecrypt/c604c2968e4f0f55344e11a5b97a4bc0e3c4ca32/BitwardenDecrypt.py

Please let me know if it resolves the issue for you.

GurpreetKang commented 1 year ago

Closed by https://github.com/GurpreetKang/BitwardenDecrypt/commit/6a5f757de240dd8df1bb867c282fe86988850a32