crypto-promise:Promise版本的Node.js加密模块

时间:2021-05-11 22:42:19
【文件属性】:
文件名称:crypto-promise:Promise版本的Node.js加密模块
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-11 22:42:19
JavaScript 加密承诺 Promise版本的Node.js加密模块。 例子 const crypto = require ( 'crypto-promise' ) const test = async ( ) => { const hash = await crypto . hash ( 'md5' ) ( 'hello' ) hash . toString ( 'hex' ) // 5d41402abc4b2a76b9719d911017c592 const hmac = await crypto . hmac ( 'sha1' , 'secret' ) ( 'hello' ) hmac . toString ( 'hex' ) // 5112055c05f944f85755efc5cd8970e194e9f45b const cipher = await crypto . ci
【文件预览】:
crypto-promise-master
----UNLICENSE(1KB)
----test.js(1KB)
----README.md(863B)
----.gitignore(14B)
----index.js(700B)
----package.json(669B)

网友评论