Javascript crypto.signText() Demo/Interop

Use the Redwax SignText web extension to allow signing of arbitrary text using a digital certificaste.

Javascript crypto.signText()

The following example form shows how to trigger crypto.signText() to sign the given text.

crypto.signText() returns a Promise which, when resolved, contains the signed text.

Html Form

To request text be signed, submit the form below.


The javascript used to trigger the crypto.signText() functionality can be downloaded here, and is included for reference below.

function signRequest(form) {
  if (crypto.signText) {
    form['signed'].value = crypto.signText(form['tobesigned'].value, 'ask');
    return true;
  else {
    alert('An implementation of crypto.signText() is not installed in this browser.');