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

torv3

v1.2.4

Published

🧅 Address generator for tor onion v3 (ed25519) hidden services

Downloads

14

Readme

🧅 TorV3

GitHub Workflow Status

This npm package generates Tor v3 addresses along with their corresponding public and private keys. Tor v3 addresses are a type of onion address used by the Tor network for enhanced anonymity and security. By using this package, users can easily generate unique Tor v3 addresses that are difficult to trace back to their source, providing an additional layer of privacy to their online activities. The generated keys are matched to ensure the integrity and security of the address.

Installation

Installing torv3 is a straightforward process. First, ensure that you have Node.js version 12.x or higher and a node package manager (such as NPM) installed on your system.

To install torv3, open your terminal or command prompt and enter the following command:

npm i -g torv3@latest

This command will install torv3 globally on your system, making it available to use from any directory.

After installation, you can confirm that torv3 is working correctly by running the following command in your terminal:

torv3 --version

This should display the version number of torv3 that you just installed.

Usage

Utilizing torv3 is straightforward and can be accomplished in two ways: through the command-line interface (CLI) or as a module. see the API guide for more details.

Module

const torv3 = require('torv3');

const keys = torv3.generateKeys();
/*{
   privateKey: <Buffer>,  // ed25519 private key.
   publicKey: <Buffer>    // ed25519 public key.
}*/

const v3 = torv3.generateOnionV3();
/*{
   publicKey: <Buffer>,   // ed25519 public key.
   privateKey: <Buffer>,  // ed25519 private key.
   address: <String>,     // TorV3 address.
   verified: <Boolean>    // Verify the address checksum match, the ed25519 public key.
}*/

const v3 = torv3.vanityOnionV3('torv3');
/*{
   publicKey: <Buffer>,   // ed25519 public key.
   privateKey: <Buffer>,  // ed25519 private key.
   address: <String>,     // TorV3 address.
   verified: <Boolean>,   // Verify the address checksum match, the ed25519 public key.
   lookups: <Number>      // The total number of lookup before finding desired hostname.
   elapsed: <Number>      // Elapsed time to generation took.
}*/

CLI

torv3 [command]

Commands:
  torv3 keys      Generate ed25519 private and public keys
  torv3 generate  Generate a tor onion v3 address
  torv3 vanity    Generate a vanity tor onion v3 address

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

API

torv3.generateKeys

torv3.generateKeys(sk)

Generates a pair of ed25519 keys.

  • sk is an optional buffer of the ed25519 private key.

torv3.generateOnionV3

torv3.generateOnionV3(sk)

Generates a ed25519 key pair and a v3 hostname.

  • sk is an optional buffer of the ed25519 private key.

torv3.vanityOnionV3

torv3.vanityOnionV3(prefix)

Generates a ed25519 key pair and a vanity v3 hostname.

  • prefix is a required string prefix for the url.