🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

mima-lib

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

mima-lib

密码学套件

unpublished
latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

mima-lib

mima-lib 是一个使用 TypeScript 实现的密码学套件。

mima-lib is a cryptography suite implemented in TypeScript.

功能列表

散列算法 - Hash Algorithms

消息摘要 - Message Digest

HMAC - Keyed-Hash Message Authentication Code

  • HMAC RFC 2104
    • 标准文档
    • 实现

对称密钥算法 - Symmetric Key Algorithms

分组加密 - Block Ciphers

  • AES FIPS 197
    • 标准文档
    • 实现
    • AES-128
    • AES-192
    • AES-256
  • DES FIPS 46-3
    • 标准文档
    • 实现
    • DES
    • 3DES
  • SM4 GB/T 32907-2016
    • 标准文档
    • 实现

流密码 - Stream Ciphers

  • ARCFOUR
    • 标准文档
    • 实现
  • ZUC GB/T 33133
    • 标准文档
    • 实现

公开密钥算法 - Public Key Algorithms

素数分解 - Integer Factorization

  • RSA FIPS 186-5 RFC 8017
    • 标准文档
    • 实现

椭圆曲线密码学 - Elliptic Curve Cryptography

  • ECC FIPS 186-5 RFC 6090
    • 标准文档
    • 实现
  • SM2 GB/T 32918-2016
    • 标准文档
    • 实现
  • SM9 GM/T 0044-2016
    • 标准文档
    • 实现

散列算法 - 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())
// 6cd3556deb0da54bca060b4c39479839

SHA-1

示例 - Example

import mima from 'mima-lib'

const sha1 = new mima.md.sha1()
sha1.update('Hello, world!')
console.log(sha1.getHash())
// 2ef7bde608ce5404e97d5f042f95f89f1c232871

协议 - License

MIT License © 2023 RSM

Keywords

crypto

FAQs

Package last updated on 30 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts