npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hayasaka

v1.0.0

Published

Generate secure keys from your command line

Readme

Hayasaka

Hayasaka generates secure keys from your command line.

Installation

$ npm i hayasaka -g

You must install Hayasaka globally to be able to use it from the command line.

Options

  • -s, --strength: The strength of the key(s). See Key Strengths.
  • -n, --number: The number of keys to generate. Defaults to, and must be at least, 1.
  • -c, --copy: Copy the key to the clipboard.
  • -f, --file: The file to write the key to.
  • -r, --redact: Redact the key from the console.
  • -h, --help: Show the help message.

Key Strengths

Hayasaka supports 10 key strengths - four "standard" strengths and six "special" strengths.

Standard Strengths

| Strength | Description | Length | Example | URL Safe? | |--------------|---------------------------------------------------------------------------------------------------------------------|------------|------------------------------------------------------------------------------------|---------------| | decent | Short keys suitable for securing your personal devices. | 10 | 1SVVvjDwsN | Yes | | good | More robust keys, suitable for securing things like web hosting accounts. | 15 | M%:?!J2+CjGifL* | No | | great | Very robust keys, suitable for administrative passwords or almost anything else. | 30 | 8$A>Blm?dzkzEPa0!8HET)rNe2'LS_ | No | | epic | Extremely robust keys, suitable for any 256-bit key requirement that cannot be satisfied by the previous strengths. | 32 | bPXapgKhC9PMXkxNwAvSjA54gBVnA7kn | Yes |

Special Strengths

| Strength | Description | Length | Example | URL Safe? | |--------------|---------------------------------------------------------------------------------------------------------------------|------------|-------------------------------------------------------------------------------------|---------------| | wpa160 | 160-bit WPA encryption keys. | 20 | u}EE_BWvir>Xt&&#124;6&#124;D[</code> | No | | wpa504 | 504-bit WPA encryption keys. | 63 | <code>=sK(g,<L?q&#124;$M^VMOuaBMe-D*<==13L59N5S0,DX4\zDBRz[4S>PP_p$p4`P(EG | No | | wep64 | 64-bit WEP encryption keys. | 5 | C116B | Yes | | wep152 | 152-bit WEP encryption keys. | 16 | B7F7783BBBE5F9DE | Yes | | wep256 | 256-bit WEP encryption keys. | 29 | 1A9C47C8A924D69F17EFD991A532C | Yes |

Examples

Generate a decent key:

$ hayasaka -s decent

Generate a good key and copy it to the clipboard:

$ hayasaka -s good -c

Generate a great key, copy it to the clipboard, and redact it from the console:

$ hayasaka -s great -c -r

Generate five epic keys and write them to keys.txt:

$ hayasaka -s epic -n 5 -f keys.txt

Acknowledgements

Hayasaka uses a substantial amount of code from RandomKeygen.

License

Haysaka is licensed under the MIT License.