New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

random-hash-generator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-hash-generator

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

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
decreased by-40.54%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 12 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc