hashpass
Super basic, super opinionated utility for dealing with passwords.
Last updated 8 years ago by davidbanham .
BSD · Repository · Original npm · Tarball · package.json
$ cnpm install hashpass 
SYNC missed versions from official npm registry.

usage

hashPass [pass], [salt]

examples

hashPass = require 'hashPass'

console.log hashPass()
# { pass: 'ac7f80b56',
# salt: 'd8e1476b44b8e3c905e2db2be51ad0a1062a8992',
# hash: 'CcUj96u98mE=' }

console.log hashPass('mytotallysecretpassword')
# { pass: 'mytotallysecretpassword',
# salt: '5e75b36dd4e3ed05b0fb7e1ca4e0bfe1dde1c456',
# hash: 'cJ6HdyDYQN4=' }

cipher = crypto.createCipher 'blowfish', 'mytotallysecretpassword' + '5e75b36dd4e3ed05b0fb7e1ca4e0bfe1dde1c456'
console.log = cipher.final 'base64'
# cJ6HdyDYQN4=

console.log hashPass('mytotallysecretpassword', '5e75b36dd4e3ed05b0fb7e1ca4e0bfe1dde1c456')
# { pass: 'mytotallysecretpassword',
# salt: '5e75b36dd4e3ed05b0fb7e1ca4e0bfe1dde1c456',
# hash: 'cJ6HdyDYQN4=' }

Current Tags

  • 0.0.0                                ...           latest (8 years ago)

1 Versions

  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |