react-native-rsa-native
react-native-rsa-native copied to clipboard
I AM GETING THIS ERROR [Error: Attempt to invoke virtual method 'byte[] org.spongycastle.asn1.x509.SubjectPublicKeyInfo.getEncoded()' on a null object reference] on Android
const {signature, mensaje} = await createSignature(); console.log('PUBLIC KEY'); console.log(publickey); console.log('SIGNATURE'); console.log(signature);
console.log(mensaje);
const helpme = await RSA.verify64WithAlgorithm( signature, mensaje, publickey, RSA.SHA256withRSA, ) .then((resultado) => console.log('RESULTADO' + resultado)) .catch((err) => console.log(err));
console.log('VALIDAR SIGNATURE');
Did anyone find any solution to this issue? I am getting the same issue
When convert public key from String, please used public key with start line and end line, enter as \n.