Decision Workspace
subtle-encoding vs ct-codecs vs redoubt-hex
Side-by-side comparison of Rust crates
48
subtle-encoding
growingv0.5.1
Encoders and decoders for common data encodings (base64, bech32, hex) which avoid data-dependent branching/table lookups and therefore provide "best effort" constant time. Useful for encoding/decoding secret values such as cryptographic keys.
68
ct-codecs
stablev1.1.8
Constant-time Base64, Base32, and hex encoding and decoding, with URL-safe Base64 and no_std support.
49
redoubt-hex
experimentalv0.1.0-rc.18
Bytes to hex and back in constant time, leaving nothing in a register
Core Metrics
| subtle-encoding | ct-codecs | redoubt-hex | |
|---|---|---|---|
| Health Score | 48 | 68 | 49 |
| Total Downloads | 8.0M | 21.9M | 60 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 2.4K | 371 | 4 |
| Releases | 20 | 12 | 4 |
| Last Updated | 2435d ago | 15d ago | 7d ago |
| Age | 8y | 6y 6m | 12d |
Health Breakdown
subtle-encoding
Maintenance
4
Quality
12
Community
15
Popularity
8
Documentation
9
ct-codecs
Maintenance
15
Quality
23
Community
13
Popularity
8
Documentation
9
redoubt-hex
Maintenance
16
Quality
13
Community
8
Popularity
2
Documentation
10
Technical Details
| subtle-encoding | ct-codecs | redoubt-hex | |
|---|---|---|---|
| Version | 0.5.1 | 1.1.8 | 0.1.0-rc.18 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 OR MIT | MIT | GPL-3.0-only |
| Dependencies | 1 | 0 | 8 |
| Crate Size | 15KB | 11KB | 27KB |
| Features | 6 | 2 | 1 |
| Yanked % | 40.0% | 0.0% | 0.0% |
| Edition | 2018 | 2018 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •ct-codecs leads with a health score of 68/100, but none of the options score above 80.
- •subtle-encoding is depended on by 2.4K crates — strongest ecosystem trust.
- •⚠ subtle-encoding has not been updated in over a year.
- •subtle-encoding, redoubt-hex are pre-1.0 — API may change.