WebPKI Demonstration

Sign hash

Performs a previously calculated RSA hash signature.

> Signature with RSA SHA-256_

Do not have a certificate? Click Here to issue a test one.

Signature Data

Hash {{hash}}

Signature {{signature}}

Valid {{valid}}

> Code sample_

var hashToSign = 'f4OxZX/x/FO5LcGBSKHWXfwtSx+j1ncoSt3SABJtkGk='; // Base64-encoded SHA-256 of 'Hello World!'
pki.signHash({
    thumbprint: $('#certificateSelect').val(),
    hash: hashToSign,
    digestAlgorithm: 'SHA-256'
}).success(function (signature) {
    // Use signature
});
;