Skip to content

Commit

Permalink
Fix for format change in Bitwarden Desktop 2022.8.0
Browse files Browse the repository at this point in the history
Initial fix for data.json file format change introduced in Bitwarden Desktop 2022.8.0. (GurpreetKang#17)

While this works for new data.json files from v2022.8.0, it will fail on files from older versions.
  • Loading branch information
GurpreetKang authored and bruno-amelco committed Sep 5, 2022
1 parent 0b0200a commit 58137e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BitwardenDecrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ def decryptBitwardenJSON(options):
organizationKeys = datafile['keys']['organizationKeys']['encrypted']

# Get/Decrypt All Organization Keys
for uuid, key in organizationKeys.items():
BitwardenSecrets['OrgSecrets'][uuid] = decryptRSA(key, BitwardenSecrets['RSAPrivateKey'])
for uuid in organizationKeys.items():
BitwardenSecrets['OrgSecrets'][uuid[0]] = decryptRSA(uuid[1]['key'], BitwardenSecrets['RSAPrivateKey'])


for a in datafile['data']:
Expand Down

0 comments on commit 58137e7

Please sign in to comment.