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 🙏

© 2024 – Pkg Stats / Ryan Hefner

wcbjs

v2.0.1

Published

CLI tool for asymetric encryption with WebCrypto.

Downloads

1

Readme

Webcryptobox

WebCrypto compatible encryption CLI in JavaScript.

This CLI handles the Webcryptobox encryption API.

Compatible packages:

See Webcryptobox JavaScript for the library.

Installation

Install the script with npm:

npn install -g wcbjs

Usage

$ wcbjs
wcbjs <command> [options]

Commands:
  wcbjs key                                 Generate symmetric key
  wcbjs encrypt <key> [filename]            Encrypt message. Message either read
                                             from "filename" or STDIN.
  wcbjs decrypt <key> [filename]            Decrypt box. Box either read from "f
                                            ilename" or STDIN.
  wcbjs private-key                         Generate private key
  wcbjs public-key [filename]               Get corresponding public key from pr
                                            ivate key, either specified via "fil
                                            ename" or read from STDIN
  wcbjs fingerprint [filename]              Calculate fingerprint of public key,
                                             either specified via FILENAME or re
                                            ad from STDIN.
  wcbjs derive-key <private_key> [public_k  Derive symmetric key from private an
  ey]                                       d public key.
  wcbjs derive-password <private_key> [pub  Derive password from private and pub
  lic_key]                                  lic key.
  wcbjs encrypt-private-key <passphrase> [  Encrypt private key with passphrase.
  filename]                                  Key either read from "filename" or
                                            STDIN.
  wcbjs decrypt-private-key <passphrase> [  Decrypt private key with passphrase.
  filename]                                  Key either read from "filename" or
                                            STDIN.
  wcbjs encrypt-private-key-to <private_ke  Encrypt private key with private and
  y> <public_key> [filename]                 public key. Private key either read
                                             from "filename" or STDIN.
  wcbjs decrypt-private-key-from <private_  Decrypt private key with private and
  key> <public_key> [filename]               public key. Private key either read
                                             from "filename" or STDIN.
  wcbjs encrypt-to <private_key> <public_k  Encrypt message with private and pub
  ey> [filename]                            lic key. Message either read from "f
                                            ilename" or STDIN.
  wcbjs decrypt-from <private_key> <public  Decrypt box with private and public
  _key> [filename]                          key. Box either read from "filename"
                                             or STDIN.

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Note that for symmetric encryption the password is visible eg. in ps, so that's not recommended if you need strong security. Reach out to me if using environment variables instead would be good fit, I'd be happy to add it.

License

This project is licensed under the Apache 2.0 License.

© 2022 Johannes J. Schmidt