Nodejs style crypto methods.

var crypto = require('crypto')
var hash = crypto.createHash(<alg>)
    available algorithms: 'md5', 'sha1', 'sha256'.
hash.update(<data>)
hash.digest([<encoding>])
    available encodings: 'hex', 'base64'.

var hmac = crypto.createHmac(<alg>, <key>)
    available algorithms: 'md5', 'sha1', 'sha256'.
hmac.update(<data>)
hmac.digest([<encoding>])
    available encodings: 'hex', 'base64'.
17 files changed
tree: a07536abdd1d255b946d48fae3df4552090fb49f
  1. .hgtags
  2. CHANGES
  3. LICENSE
  4. Makefile
  5. README
  6. configure
  7. nginx/
  8. njs/
  9. nxt/