JuneAndGreen/sm-crypto
国密算法js版 observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3140
- days_rel: n/a
- days_push: 9
- n_releases_24m: 0
Adoption not part of the score
1159 stars · 287 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A pure JavaScript implementation of the Chinese national cryptography (Guomi) algorithms SM2 (elliptic curve encryption/signatures), SM3 (hash), and SM4 (block cipher). It runs in Node.js and browsers via npm.
Use cases
- implement sm2 encryption and decryption in javascript
- generate sm2 key pairs and sign/verify data in the browser
- compute sm3 hash of a string in nodejs
- encrypt data with sm4 block cipher in js
- integrate chinese national standard cryptography into a web app
- verify signatures from a backend that uses guomi algorithms
When to choose
- you need SM2/SM3/SM4 in JavaScript with no native dependencies
- you must interoperate with Chinese government or financial systems requiring Guomi algorithms
- you want a lightweight, MIT-licensed crypto library usable in both browser and Node.js
When to avoid
- you need general-purpose cryptography like RSA, AES, or SHA-2
- you require formally audited or FIPS-certified crypto implementations
- you need constant-time guarantees against side-channel attacks in hostile environments
Facets
library · maturity active
cryptography security security developer-tools web-development browser sm2 sm3 sm4 chinese-national-cryptography elliptic-curve encryption digital-signature hash nodejs javascript
2 sources
- readme: https://github.com/JuneAndGreen/sm-crypto · fetched 2026-08-28 · 73eadb0c5f0e
- registry_npm: https://registry.npmjs.org/sm-crypto · fetched 2026-08-29 · 5d0845a42b1a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| JuneAndGreen/sm-crypto | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="JuneAndGreen/sm-crypto")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem