1.1.3 • Published 7 years ago

random-hash-generator v1.1.3

Weekly downloads
308
License
MIT
Repository
github
Last release
7 years ago

random-hash-generator

Generates random key-secret pair with sha256 hash, with salt

Installation

$ npm install -g random-hash-generator

Usage

random-hash-generator

$ rhg --number 5 --key 10 --secret 15 --salt ShotMeBowmore

Options

  • --number, -n: Number of key/secret pairs to generate
  • --key, -k: Length of key string
  • --secret, -s: Length of secret string
  • --salt, -t: Specifying salt string
  • --help, -h: This message

random-hash-calculator

$ rhc --key AAAAAAAAAAAAAAA --secret 15 --salt ShotMeBowmore

Options

  • --key, -k: Key string
  • --secret, -s: Length of secret string
  • --salt, -t: Specifying salt string
  • --help, -h: This message

API

.generate(key, secret, salt)

  • key: Length of key string
  • secret: Length of secret string
  • salt: Specifying salt string

.calc(key, secret, salt)

  • key: Key string
  • secret: Length of secret string
  • salt: Specifying salt string
  • returns calculated secret string
1.1.3

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago