keyutils.js 351 B

123456789101112131415
  1. // Generated by IcedCoffeeScript 1.7.1-c
  2. (function() {
  3. var SHA256, SHA512, createHash;
  4. createHash = require('crypto').createHash;
  5. exports.SHA256 = SHA256 = function(x) {
  6. return createHash('SHA256').update(x).digest();
  7. };
  8. exports.SHA512 = SHA512 = function(x) {
  9. return createHash('SHA512').update(x).digest();
  10. };
  11. }).call(this);