fix(crypto): correct cipher type indices to match Bitwarden API

This commit is contained in:
2026-08-26 14:47:23 +02:00
parent ea7f126e73
commit a3e9f9ab0e
3 changed files with 21 additions and 7 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ class BitwardenClient:
# Decrypt ciphers
decrypted_ciphers = []
for cipher in ciphers:
if cipher.get("type") in [1, 2, 3, 4]: # Login, Note, Card, Identity
if cipher.get("type") in [0, 1, 2, 3]: # Login, Note, Card, Identity
decrypted = self.crypto.decrypt_cipher(
cipher, enc_key, mac_key
)