craftzdog / react-native-aes-gcm-crypto

AES-GCM encryption/decryption for React Native
MIT License
243 stars 28 forks source link

[TypeError: null is not an object (evaluating '_reactNativeAesGcmCrypto.default.decrypt')] #5

Closed fukemy closed 1 year ago

fukemy commented 2 years ago

i got this error when run line:

const key = rsaKeyRef.current
            const iv = rsaKeyRef.current.slice(0, 16)
            const decrypt = AesGcmCrypto.decrypt(data, key, iv, '', true)
            .then(result => {
                console.log('decrypt result', result)
            }).catch(error => {
                console.log('decrypt error', error)
            })

the pod is install success Installing react-native-aes-gcm-crypto (0.2.1) can u help?

architectophile commented 1 year ago

i got this error when run line:

const key = rsaKeyRef.current
            const iv = rsaKeyRef.current.slice(0, 16)
            const decrypt = AesGcmCrypto.decrypt(data, key, iv, '', true)
            .then(result => {
                console.log('decrypt result', result)
            }).catch(error => {
                console.log('decrypt error', error)
            })

the pod is install success Installing react-native-aes-gcm-crypto (0.2.1) can u help?

I have the same issue. Did you figure it out?

Srikanth-Enuguru commented 1 year ago

@architectophile @fukemy Are you able to fix this issue? I'm also facing the same.

FYI @craftzdog

fukemy commented 1 year ago

no sir i leaved this stupid lib