lite-ts-crypto
v11.1.1
Published
```typescript const crypto: CryptoBase;
Downloads
19
Readme
代码
CryptoBase - 加解密
const crypto: CryptoBase;
const res = await crypto.compare(明文, 密文);
// res = 是否匹配
const res = await crypto.decrypt(密文);
// res = 明文
const res = await crypto.encrypt(明文);
// res = 密文
- AesCrypto - aes算法
const crypto: CryptoBase = new AesCrypto(密钥);