iana-hashes

2019-09-11

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 StatusDependency StatusdevDependency Status

Browser Support

What is this?

The iana-hashesmodule is a very thin wrapper for the node cryptomodule'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 builddirectory.

IANA Registry

View the "Hash Function Textual Names" registry at IANA

cryptoIANA
md2md2
md5md5
sha1sha-1
sha224sha-224
sha256sha-256
sha384sha-384
sha512sha-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 @lancestouton twitter.


上一篇:jingle-media-session
下一篇:filetransfer
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部