# dromara/dongle

A simple, semantic and developer-friendly crypto package for golang

Repository: https://github.com/dromara/dongle
Canonical: https://ross.abutalabs.com/products/dongle
Homepage: https://dongle.go-pkg.com
Language: Go
License: MIT
License Family: permissive
Topics: aes, rsa, des, 3des, base16, base64, base32, base58, base62, base85, base91, hmac, hash, base45, md5, base100, sm3, sm4, sm2
Last push: 2026-07-15T07:46:15+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 61, longevity 100
- inputs: {"age_days": 1848, "days_push": 49, "days_rel": 260, "gap_med": 8.0, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1106, forks 82 (observed 2026-08-28T04:03:36.520135+00:00)

## What it is
Dongle is a simple, semantic, and developer-friendly cryptography library for Go, offering a fluent API for encryption, hashing, and encoding. It supports a wide range of algorithms including AES, RSA, DES, 3DES, SM2/SM3/SM4, HMAC, MD5, and many base encodings.

## Use cases
- encrypt and decrypt strings in go
- base64 encode and decode data
- compute md5 or sha hashes of text
- use chinese national sm2 sm3 sm4 crypto algorithms
- sign data with hmac
- rsa encrypt and sign payloads
- encode data with base58 or base62

## When to choose
- you need a broad set of crypto, hash, and encoding primitives behind one consistent fluent API in Go
- you need Chinese national standard algorithms like SM2, SM3, SM4
- you want a well-tested library with 100% unit test coverage

## When to avoid
- you need low-level control over crypto primitives or custom cipher modes
- you are not using Go
- you need a full TLS or certificate management solution

## Facets
- artifact type: library
- maturity: active
- function: cryptography, serialization, security
- domain: security, developer-tools, backend
- platform: go, cross-platform
- tags: encryption, hashing, encoding, sm-crypto, chinese-crypto-standards, fluent-api

## Member repositories
- dromara/dongle (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.520135+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:44:13.990146+00:00, confidence not recorded.
  - readme: https://github.com/dromara/dongle (fetched 2026-08-28T04:03:36.520135+00:00, sha 095776380bd0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
