Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sm3

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sm3

国密SM3密码杂凑算法的JavaScript实现

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

JavaScript SM3

简介

国密SM3密码杂凑算法的JavaScript实现。目前只能在服务器端环境Node.js使用。

使用

直接下载源代码将sm3.js拷贝到你的项目中,或者使用npm安装:

npm install sm3
const sm3 = require('sm3');
const hash = sm3('值');

要求

没有依赖,但Node.js版本需>=6.0.0,或使用sm3-babel.js文件(Node.js版本>=1.0.0), 也可自行使用Babel对sm3.js文件进行转化

babel sm3.js --out-file sm3-babel.js

接口

const hash = sm3('值');

参考

SM3密码杂凑算法

License

MIT license.

Keywords

FAQs

Package last updated on 27 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc