react-native-rsa-native icon indicating copy to clipboard operation
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

Open oleivaticteams opened this issue 4 years ago • 2 comments

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');

oleivaticteams avatar Mar 05 '21 02:03 oleivaticteams

Did anyone find any solution to this issue? I am getting the same issue

princewillzz avatar Jun 21 '21 06:06 princewillzz

When convert public key from String, please used public key with start line and end line, enter as \n.

huongnguyenvan avatar Sep 25 '21 08:09 huongnguyenvan