dhairya0907 / react-native-encryption

Encryption/Decryption for React Native
https://www.npmjs.com/package/@dhairyasharma/react-native-encryption
MIT License
7 stars 3 forks source link

Is there a way to detect if the key is wrong ? #4

Closed lucienbl closed 2 years ago

lucienbl commented 2 years ago

Hello,

First of all, thank you very much for this awesome package. I'm using it to encrypt files, but I noticed that even when the key is wrong it returns "success". Is there a way to know if the entered key is wrong ?

Thank you in advance.

Best regards.

dhairya0907 commented 2 years ago

Hey

There is no way to know if key is incorrect, if key is incorrect it will not decrypt correctly. Key checking you have to handle on your side.

lucienbl commented 2 years ago

Hello 👋 Okay I understand, thank you for your answer 😁