lite-ts-crypto
TypeScript icon, indicating that this package has built-in type declarations

11.1.1 • Public • Published

Version

代码

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(密钥);

Readme

Keywords

Package Sidebar

Install

npm i lite-ts-crypto

Weekly Downloads

5

Version

11.1.1

License

GPL-3.0

Unpacked Size

40.3 kB

Total Files

9

Last publish

Collaborators

  • ahl5esoft