Module: rsa

Methods

(static) verifySignature(key, signature, data) → {boolean}

Checks whether the signature is valid for the given public key and data. The verification is based on ASN.1 over SHA-1. This procedure is known as RSA_PKCS1_SHA1 and it is the default kind of procedure, in OpenSSL, when SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE is used to create the key/signature pair.

Parameters:
Name Type Description
key string

a base 64 public key used to verify.

signature string

a base 64 signature used to verify.

data string

a unique identifier of the resource to verify.

Source:
Returns:
Type
boolean