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

@orbiter-finance/keytool

v2.3.0

Published

Private key AES encryption/decryption CLI

Readme

Keytool — Secure AES Key Encryption & TLS Injection CLI Tool

Overview

keytool is a TypeScript-based CLI utility for managing encrypted secrets, such as private keys, and securely injecting them into applications via a TLS channel. It provides the following features:

  • AES-256-CBC encryption/decryption of key-value pairs (e.g. private keys)
  • Secure TLS server to receive and manage secrets
  • CLI-based injector client that pushes secrets over TLS
  • Heartbeat mechanism to ensure secrets are fresh and connection is alive
  • Self-signed certificate generation tool

Project Structure

.
├── src/
│   ├── cli.ts
│   ├── crypto/
│   │   ├── encrypt.ts
│   │   ├── decrypt.ts
│   ├── commands/
│   │   ├── inject.ts
│   │   ├── serve.ts
│   │   └── generateCert.ts
│   ├── utils/
│       └── crypto.ts
├── makers.json               # Input plain-text key-value file
├── makers.encrypted.json     # Encrypted output file
├── package.json
├── tsconfig.json
├── README.md

Installation

Install dependencies:

npm install

Build the project:

npm run build

You can run it directly via npx or install globally:

npx orbiter-keytool <command>

CLI Usage

Command format

npx orbiter-keytool <command> [options]

Available Commands

| Command | Description | |------------------|----------------------------------------------| | encrypt | Encrypt key-value pairs from JSON | | decrypt | Decrypt key-value pairs from encrypted JSON | | inject | Inject encrypted secrets over TLS with heartbeat | | serve | Start a secure server to receive secrets | | generate-cert | Generate a self-signed TLS certificate |


Commands & Examples

🔐 encrypt

Encrypts a key-value JSON file using AES-256-CBC.

npx orbiter-keytool encrypt --key "yourMasterKey" --input makers.json --output makers.encrypted.json

🔓 decrypt

Decrypts an encrypted key-value JSON file.

npx orbiter-keytool decrypt --key "yourMasterKey" --input makers.encrypted.json

🚀 inject

Continuously sends keys from .env to the server with heartbeat monitoring.

npx orbiter-keytool inject --cert ./cert.pem --token yourToken --env .env --interval 30

.env file format:

0xabc...=privatekey1
0xdef...=privatekey2

🛡️ serve

Starts a TLS server and receives keys from injectors.

npx orbiter-keytool serve --cert ./cert.pem --key ./key.pem --token yourToken --port 8000 --timeout 90
  • token must match between server and injector.
  • timeout is the heartbeat inactivity timeout (seconds).

🔧 generate-cert

Generates a self-signed TLS cert for testing or internal use.

npx orbiter-keytool generate-cert --out ./certs --common-name localhost

JSON Formats

makers.json

{
    "0xabc...": "privatekey1",
    "0xdef...": "privatekey2"
}

makers.encrypted.json

{
    "0xabc...": "iv_hex:encrypted_data_hex",
    "0xdef...": "iv_hex:encrypted_data_hex"
}

Security Notes

  • Avoid passing secrets via CLI directly to prevent exposure via shell history.
  • Use .env files or prompt-based entry where possible.
  • TLS is mandatory for key injection to ensure end-to-end encryption.
  • Make sure your TLS certs are secured and not exposed.

Development

To build the project:

npm run build

To publish to npm:

  • Ensure package.json includes files or .npmignore
  • Run:
npm login
npm publish --access public

License

MIT License


Contact