# yach.util.encode

> yach util: encode

Latest version **0.0.4** (published 2020-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install yach.util.encode
pnpm add yach.util.encode
yarn add yach.util.encode
bun add yach.util.encode
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2020-07-29 |
| First published | 2020-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | qiaowenbin |
| Maintainers | qiaowenbin |

## Links

- npm: https://www.npmjs.com/package/yach.util.encode
- npm.io page: https://npm.io/package/yach.util.encode

## Dependencies (1)

- [uuid](https://npm.io/package/uuid.md) ^8.2.0

## Recent versions

- 0.0.4 (latest) — 2020-07-29
- 0.0.3 — 2020-07-27
- 0.0.2 — 2020-07-21
- 0.0.1 — 2020-07-21

## README

# yach.util.encode

## owner
张永昌（079917）

## 安装
```sh
npm i yach.util.encode
```

## aesEncrypt 
```js
// encode
import {aesEncrypt} from 'yach.util.encode';

/**
 * aes 数据加密
 * @param {String} data : 需要加密的数据，例如 'xxxxxx'
 * @param {String} key  : 加密的key，16位，例如 'xxxxxx'
 */
let obj = aesEncrypt(data, key);
```

## aesDecrypt 
```js
// decode
import {aesDecrypt} from 'yach.util.encode';

/**
 * aes 数据解密
 * @param {String} data : 需要解密的数据，例如 'xxxxxx'
 * @param {String} key  : 解密的key，16位，例如 'xxxxxx'
 */
let obj = aesDecrypt(data, key)
```

## uuid
```js
'use strict';

import {uuid} from 'yach.util.encode';

// uuid v4
let uuid0 = uuid();

// uuid v1
let uuid1 = uuid(1);

// uuid v3
let uuid3 = uuid(3);

// uuid v4
let uuid4 = uuid(4);

// uuid v5
let uuid5 = uuid(5);
```

## version
### 0.0.2.20200728
1. add annotation

### 0.0.2.20200727
1. add owner

### 0.0.1.20200721
1. init project
2. aes encrypt
3. aes decrypt
4. uuid

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