Giter VIP home page Giter VIP logo

iana-hashes's Introduction

IANA-Hashes

Use the IANA registered hash names with node crypto's hash functions

Build Status Dependency Status devDependency Status

Browser Support

What is this?

The iana-hashes module is a very thin wrapper for the node crypto module's hash functions, allowing you to use the hash names registered with IANA, which are the names typically used in Internet standards.

Installing

$ npm install iana-hashes

Building bundled/minified version (for AMD, etc)

$ make

The bundled and minified files will be in the generated build directory.

IANA Registry

View the "Hash Function Textual Names" registry at IANA

crypto IANA
md2 md2
md5 md5
sha1 sha-1
sha224 sha-224
sha256 sha-256
sha384 sha-384
sha512 sha-512

Usage

var hashes = require('iana-hashes');

hashes.createHash('sha-1').update('test-sha1').digest('hex');
hashes.createHmac('sha-1', 'key').update('test-sha1-hmac').digest('hex');

License

MIT

Created By

If you like this, follow @lancestout on twitter.

iana-hashes's People

Contributors

legastero avatar

Watchers

 avatar

Forkers

g-ocloud

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.