We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fbc9d commit 5ea143bCopy full SHA for 5ea143b
common/src/commonMain/kotlin/com/artemchep/keyguard/provider/bitwarden/crypto/BitwardenCrypto.kt
@@ -87,6 +87,11 @@ fun BitwardenCrCta.transformString(
87
encoder(env.key).invoke(encryptionType, data)
88
},
89
isDecrypt = {
90
+ // This should never happen, but just in case to not
91
+ // fail the decryption process we fall back to an empty string.
92
+ if (value.isEmpty()) {
93
+ return@whatIf value
94
+ }
95
val data = decoder(env.key).invoke(value).data
96
String(data)
97
0 commit comments