# sm3

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

Latest version **1.0.3** (published 2020-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install sm3
pnpm add sm3
yarn add sm3
bun add sm3
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-01-27 |
| First published | 2017-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 50 |
| Author | Zheng Jiaxing |
| Maintainers | jiaxingzheng |
| Keywords | sm3, javascript |

## Links

- npm: https://www.npmjs.com/package/sm3
- Repository: https://github.com/jiaxingzheng/JavaScript-SM3
- Issues: https://github.com/jiaxingzheng/JavaScript-SM3/issues
- npm.io page: https://npm.io/package/sm3

## Recent versions

- 1.0.3 (latest) — 2020-01-27
- 1.0.2 — 2020-01-27
- 1.0.1 — 2019-01-20
- 1.0.0 — 2017-01-10

## README

# JavaScript SM3

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

## 使用
直接下载源代码将sm3.js拷贝到你的项目中，或者使用[npm](https://www.npmjs.org/)安装：

```sh
npm install sm3
```

```js
const sm3 = require('sm3');
const hash = sm3('值');
```

## 要求
没有依赖，但Node.js版本需>=6.0.0，或使用sm3-babel.js文件（Node.js版本>=1.0.0），
也可自行使用[Babel](http://babeljs.io/)对sm3.js文件进行转化
```sh
babel sm3.js --out-file sm3-babel.js
```

## 接口

```js
const hash = sm3('值');
```

## 参考
[SM3密码杂凑算法](http://www.sca.gov.cn/sca/xwdt/2010-12/17/1002389/files/302a3ada057c4a73830536d03e683110.pdf)

## License
[MIT license](http://www.opensource.org/licenses/MIT).

---
_Source: https://npm.io/package/sm3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
