iana-hashes

2019-09-11 admin

iana-hashes是什么

什么是iana-hashes,Use the IANA registered hash names with node crypto

iana-hashes使用教程帮助文档

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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-74886.html

文章标题:iana-hashes

回到顶部