# siwi-hash

> siwi-hash md5 sha1 sha256 sha512

Latest version **1.0.2** (published 2018-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install siwi-hash
pnpm add siwi-hash
yarn add siwi-hash
bun add siwi-hash
```

## 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.2 |
| Published | 2018-03-31 |
| First published | 2018-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.9 |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | siwi |
| Maintainers | siwi |
| Keywords | siwi-hash, md5, sha1, sha256, sha512, siwi, siwilizhao |

## Links

- npm: https://www.npmjs.com/package/siwi-hash
- Repository: https://github.com/siwilizhao/siwi-hash
- Homepage: https://github.com/siwilizhao/siwi-hash#readme
- Issues: https://github.com/siwilizhao/siwi-hash/issues
- npm.io page: https://npm.io/package/siwi-hash

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-03-31
- 1.0.1 — 2018-03-30
- 1.0.0 — 2018-03-30

## README

[![node](https://img.shields.io/node/v/siwi-hash.svg)](https://www.npmjs.com/package/siwi-hash)
[![Build Status](https://travis-ci.org/siwilizhao/siwi-hash.svg?branch=master)](https://travis-ci.org/siwilizhao/siwi-hash)
[![npm](https://img.shields.io/npm/v/siwi-hash.svg)](https://www.npmjs.com/package/siwi-hash)
[![npm](https://img.shields.io/npm/dt/siwi-hash.svg)](https://www.npmjs.com/package/siwi-hash)
[![Github file size](https://img.shields.io/github/size/siwilizhao/siwi-hash/lib/hash.js.svg)](https://github.com/siwilizhao/siwi-hash/lib/hash.js)
# siwi-hash
md5 sha1 sha256 sha512

# install

## use npm 

` npm install siwi-cache`

## use yarn

` yarn add siwi-cache`

# Example

## md5

<table>
    <tr>
        <th>参数</th>
        <th>类型</th>
        <th>是否必选</th>
        <th>含义</th>
    </tr>
    <tr>
        <th>data</th>
        <th>String | Buffer | Object</th>
        <th>是</th>
        <th>加密值 字符串或者对象 对象会自动进行 JSON.stringify() </th>
    </tr>
</table>

```js
const Hash = require('siwi-hash')

const hash = new Hash()

class Example {
    constructor() {
        this.init()
    }
    async init () {
        const data = {name: 'siwi', age: 25}
        const res = await hash.md5(data)
        console.log(res)
    }
}

module.exports = new Example()
```

> 输出 ：be00a2b28f9359b45195866c32ff74a5

## sha1 sha256 sha512 参考md5

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