1.0.0 • Published 10 years ago

hashapass-core v1.0.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
10 years ago

Hashapass Core

A port of the password generation algorithm used by hashapass.com

Note: This tool is not affiliated with hashapass.com. I have created it as a tool for generating compatible passwords.

Getting Started

Install hashapass-core with npm.

npm install hashapass-core

Usage

By default hashapass-core will return an 8 character substring of the password:

#!javascript
var hashapass = require('hashapass-core');
hashapass.generate('parameter', 'master_pass'); // o3NEqcO8 

If you want a longer, or indeed shorter, password:

#!javascript
var hashapass = require('hashapass-core');
hashapass.generate('parameter', 'master_pass', {
  len: 14
}); // o3NEqcO8ndcotT 

Note: By default the length is 8 characters. By changing this, the password will no longer be compatible with hashapass.com.

License

Copyright (c) 2015 Liam Moat

Released under the MIT license.

1.0.0

10 years ago