mima-lib
mima-lib 是一个使用 TypeScript 实现的密码学套件。
mima-lib is a cryptography suite implemented in TypeScript.
功能列表
散列算法 - Hash Algorithms
消息摘要 - Message Digest
HMAC - Keyed-Hash Message Authentication Code
对称密钥算法 - Symmetric Key Algorithms
分组加密 - Block Ciphers
流密码 - Stream Ciphers
公开密钥算法 - Public Key Algorithms
素数分解 - Integer Factorization
椭圆曲线密码学 - Elliptic Curve Cryptography
散列算法 - Hash Algorithms
消息摘要 - Message Digest
MD5
示例 - Example
import mima from 'mima-lib'
const md = new mima.md.md5()
md.update('Hello, world!')
console.log(md.getHash())
SHA-1
示例 - Example
import mima from 'mima-lib'
const sha1 = new mima.md.sha1()
sha1.update('Hello, world!')
console.log(sha1.getHash())
协议 - License
MIT License © 2023 RSM