Skip to content

Instantly share code, notes, and snippets.

View gkwang's full-sized avatar

George gkwang

View GitHub Profile
var lib = process.argv[2] || 'node'
var alg = 'sha512'
var length = 32
var libs = {
node: function (alg) {
var crypto = require('crypto')
return function (key, salt, iterations, length) {
return crypto.pbkdf2Sync(key, salt, iterations, length, 'sha512')
}
},

Keybase proof

I hereby claim:

  • I am gkwang on github.
  • I am gkwang (https://keybase.io/gkwang) on keybase.
  • I have a public key ASC6unrLIHBm1kZiXPfMZAItm5PQ97x4eQW7JQa-QWbkmwo

To claim this, I am signing this object: