How to use the browserify-sign/browser.createSign function in browserify-sign

To help you get started, we’ve selected a few browserify-sign examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tradle / react-native-crypto / test / sign.js View on Github external
t.test('js sign and verify', function (t) {
      t.plan(t)
      var mySign = ourCrypto.createSign(scheme)
      var mySig = mySign.update(message).sign(priv)
      var myVer = ourCrypto.createVerify(scheme)
      t.ok(myVer.update(message).verify(pub, mySig), 'validates')
    })
github tradle / react-native-crypto / test / sign.js View on Github external
t.test('js sign and node verify', function (t) {
      t.plan(t)
      var mySign = ourCrypto.createSign(scheme)
      var mySig = mySign.update(message).sign(priv)
      var myVer = nodeCrypto.createVerify(scheme)
      t.ok(myVer.update(message).verify(pub, mySig), 'validates')
    })
  })

browserify-sign

adds node crypto signing for browsers

ISC
Latest version published 10 months ago

Package Health Score

74 / 100
Full package analysis

Similar packages