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

mix-hash

v1.0.7

Published

Mix crypto module for easy use

Downloads

3,453

Readme

Mix crypto module for easy use.

Installation

npm install mix-hash

Example

var Hash = require('mix-hash');

md5

Hash.md5('hello');
// return 5d41402abc4b2a76b9719d911017c592

sha1

Hash.sha1('hello');
// return aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d

sha256

Hash.sha256('hello'); 
// return 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

sha512

Hash.sha512('hello'); 
// return 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043

md5 and password

Hash.md5('hello', 'pwd');
// return 5f7916af30bf4b534c5655c97193084a

sha1 and password

Hash.sha1('hello', 'pwd');
// return 6e45671e0b52dcdc36f16fe36bb2238e0d5cea18

sha256 and password

Hash.sha256('hello', 'pwd');
// return 63627d8b094e1a4e5589f4bf41a0eec538ed354493b6d4ab08a360bd724109ed

sha512 and password

Hash.sha512('hello', 'pwd');
// return 3b9cd3e13aec0aa270ed8d23ff38a710da3a53d3fa8ff8e996ba74e208b68e23ec8087a13871f111dab27c77f63fb3f890fc158c9777371128ababd7141f0a99

encrypt and decrypt

var e = Hash.encrypt('hello', 'pwd');
// return f4af0c12dca07a10e29bb46b7adc2782
Hash.decrypt(e, 'pwd');
// return hello