Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

hashname

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hashname

Public-Key(s) Fingerprint Generator

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
8
300%
Maintainers
1
Weekly downloads
 
Created
Source

Hashname - A fingerprint for multiple public keys (in pure javascript)

This module will generate and parse hashnames, base32 encoded consistent fingerprint strings from one or more public keys.

Install: npm install hashname

Primary usage:

var hashname = require('hashname');
var keys = {
  "3a":"hp6yglmmqwcbw5hno37uauh6fn6dx5oj7s5vtapaifrur2jv6zha",
  "1a":"vgjz3yjb6cevxjomdleilmzasbj6lcc7"
};
var hn = hashname.fromKeys(keys));
// hn will be 'jvdoio6kjvf3yqnxfvck43twaibbg4pmb7y3mqnvxafb26rqllwa'

There's additional convenience methods and base32/siphash utilities exported, see the examples in the tests.

Keywords

hashname

FAQs

Package last updated on 07 Mar 2015

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