You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
encryptAesPlainText is used through setCipherText and setSecureKey to encrypt the data provided in the react native code. Therefore from my perspective it seems like all data saved on Android using this library is encrypted using AES/ECB/PKCS5Padding.
As pointed out in several CVEs "The use of the ECB operation mode can put the confidentiality of specific information at risk, even in an encrypted form."
Expected behavior
According to the README AES-CFB is used but I don't see any AES-CFB usage in the Android implementation.
The library supports full encryption (AES CFB-128) on Android and iOS. You can choose to store your encryption key securely for continuious usage. The library uses Keychain on iOS and Android Keystore on android (API 23 and above). Encrypting an instance is simple:
Platform Information:
OS: Android
Library Version latest (GIT master branch)
Note: Implementations for other platforms have not been checked for ECB usage.
The text was updated successfully, but these errors were encountered:
The Android implementation defines
react-native-mmkv-storage/android/src/main/java/com/ammarahmed/mmkv/Constants.java
Line 11 in 5c653b7
and uses it for encryption/decryption of data:
react-native-mmkv-storage/android/src/main/java/com/ammarahmed/mmkv/SecureKeystore.java
Lines 235 to 239 in 5c653b7
encryptAesPlainText
is used throughsetCipherText
andsetSecureKey
to encrypt the data provided in the react native code. Therefore from my perspective it seems like all data saved on Android using this library is encrypted usingAES/ECB/PKCS5Padding
.As pointed out in several CVEs "The use of the ECB operation mode can put the confidentiality of specific information at risk, even in an encrypted form."
Expected behavior
According to the README AES-CFB is used but I don't see any AES-CFB usage in the Android implementation.
react-native-mmkv-storage/README.md
Line 140 in 5c653b7
Platform Information:
Note: Implementations for other platforms have not been checked for ECB usage.
The text was updated successfully, but these errors were encountered: