couch-hash-pwd

0.0.2 • Public • Published

couch-hash-pwd

Circle CI Greenkeeper badge

Hash CouchDB passwords

Installation

$ npm install -g couch-hash-pwd

Usage

Usage: couch-hash-pwd -p clear-text-password [ -s salt ] [ -i iterations ]

  -p, --password        The clear text password that you wish to hash

  -s, --salt            Optional 16 character salt. If left blank then a random salt will be chosen

  -i, --iterations      Optional number of iterations

                        Default: 10

Example

$ couch-hash-pwd -p mysecret

Outputs: -pbkdf2-515d6a879832819863e12475ad0bb6f03abb7f8e,88b2a6274f9ebeb3e2928a86382590ec,10. You can then use this in the [admins] section of your CouchDB's local.ini, e.g.

[admins]
myuser = -pbkdf2-515d6a879832819863e12475ad0bb6f03abb7f8e,88b2a6274f9ebeb3e2928a86382590ec,10

Testing

Readme

Keywords

Package Sidebar

Install

npm i couch-hash-pwd

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • redgeoff