gtank/cryptopasta
copy & paste-friendly golang crypto observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- 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-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4005
- days_rel: n/a
- days_push: 2759
- n_releases_24m: 0
Adoption not part of the score
1805 stars · 97 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of copy-and-paste-friendly cryptography snippets for Go, wrapping the standard library's best practices for encryption (AES-GCM), hashing (HMAC-SHA512/256), and signing (ECDSA P-256). It is released under CC0 so developers can paste the code directly into their projects without attribution.
Use cases
- encrypt data with AES-GCM in Go without making common mistakes
- hash and verify messages with HMAC in Go
- generate and marshal ECDSA signing keypairs in PEM format
- find safe default crypto parameters for a Go application
- avoid hand-rolling crypto when using Go's standard library
When to choose
- you need simple, vetted crypto primitives in Go and want to paste reference code rather than add a dependency
- you want opinionated, mistake-proof defaults like authenticated encryption and constant-time P-256
When to avoid
- you need a maintained library with ongoing updates and broad algorithm coverage - the repo has not seen a release since 2019
- you need protocols beyond basic encryption, hashing, and signing, such as TLS, key exchange, or password hashing
- you need a production dependency with semantic versioning rather than copy-pasted code
Facets
library · maturity maintenance
cryptography security developer-tools security developer-tools programming-languages go cross-platform copy-paste-crypto aes-gcm hmac ecdsa go-standard-library reference-implementation
8 sources
- readme: https://github.com/gtank/cryptopasta · fetched 2026-08-28 · ad1587a59393
- homepage: https://speakerdeck.com/gtank/crypto-for-go-developers · fetched 2026-08-29 · 884bbd83e703
- site_page: https://speakerdeck.com/features · fetched 2026-08-29 · 060cbd756883
- site_page: https://speakerdeck.com/features/privacy-controls · fetched 2026-08-29 · 1837e0f5e668
- site_page: https://speakerdeck.com/features/password-protection · fetched 2026-08-29 · 37407c3061d9
- site_page: https://speakerdeck.com/features/custom-urls · fetched 2026-08-29 · daecaf9d5165
- site_page: https://speakerdeck.com/features/scheduled-publishing · fetched 2026-08-29 · 224f290775c5
- site_page: https://speakerdeck.com/student-pricing · fetched 2026-08-29 · cbee80985070
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gtank/cryptopasta | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="gtank/cryptopasta")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem