tectiv3 / react-native-aes

Native module for AES encryption
MIT License
188 stars 135 forks source link

RCTAes.decrypt got 5 arguments expected 6 #66

Closed ambessh closed 2 years ago

ambessh commented 2 years ago

I got this error after upgrading all dependecies. code below

await NativeModules.Aes.decrypt( content, key, 'b1cb4d457f7640cafaefc9fd74e5fdfd', );

tectiv3 commented 2 years ago

from the readme:

Aes.decrypt(encryptedData.cipher, key, encryptedData.iv, 'aes-256-cbc')