vian cdd5baad59 chore: 打包时,增加输出esm il y a 4 ans
..
src d64b3e26c5 feat(crypto): 加密调整 il y a 4 ans
tests d64b3e26c5 feat(crypto): 加密调整 il y a 4 ans
.eslintignore 5b88685e8f feat: 加密工具 il y a 5 ans
.eslintrc.js 5b88685e8f feat: 加密工具 il y a 5 ans
.gitignore 5b88685e8f feat: 加密工具 il y a 5 ans
.huskyrc.js 5b88685e8f feat: 加密工具 il y a 5 ans
README.md 5b88685e8f feat: 加密工具 il y a 5 ans
commitlint.config.js 5b88685e8f feat: 加密工具 il y a 5 ans
lint-staged.config.js 5b88685e8f feat: 加密工具 il y a 5 ans
package-lock.json cdd5baad59 chore: 打包时,增加输出esm il y a 4 ans
package.json 5b88685e8f feat: 加密工具 il y a 5 ans
prettier.config.js 5b88685e8f feat: 加密工具 il y a 5 ans
rollup.config.js cdd5baad59 chore: 打包时,增加输出esm il y a 4 ans
tsconfig.json 5b88685e8f feat: 加密工具 il y a 5 ans

README.md

用于字符串的简单加密和解密。

Crypto

安装

$ npm i -S @sc/crypto

使用

加密

import { Encrypt } from '@sc/crypto';
Encrypt('test');

解密

import { Decrypt } from '@sc/crypto';
Decrypt('密文');