Security
Crypto primitives you can actually use, auth, secrets and defending real systems.
Crypto primitives
Pick these, never roll your own.
AEAD (AES-GCM, ChaCha20-Poly1305)
lowAuthenticated encryption that encrypts and detects tampering in one call; the only kind of symmetric encryption you should use.
Password hashing (Argon2id)
lowMemory-hard, salted, deliberately slow hashing so stolen password databases can't be cracked cheaply on GPUs.
Digital signatures (Ed25519)
lowSmall, fast, deterministic public-key signatures that prove who produced a message; the default for tokens, releases and protocols.
Cryptographic hashes (SHA-2, BLAKE3)
lowCollision-resistant fingerprints of data; SHA-256 for interoperability, BLAKE3 for speed, HMAC/HKDF for keyed uses.
TLS 1.3
mediumThe standard encrypted, authenticated transport; one round trip, only forward-secret AEAD suites, and little left to misconfigure.
rsa cryptosystem
Planned.
ECDSA signatures
lowThe elliptic-curve signature standardised in FIPS 186-5 (P-256) and used by secp256k1 ledgers; 64-byte signatures, but a repeated or biased nonce leaks the private key.
ECDH key exchange (X25519, P-256)
lowEach side multiplies the other's public curve point by its own scalar and both get the same point; always validate the peer key and run the result through a KDF.
Message authentication codes (HMAC, CMAC, Poly1305, KMAC)
lowA keyed short tag proving a message is unmodified and came from a key holder; pick HMAC, CMAC, KMAC or a one-time polynomial MAC by what primitive you already have.
HKDF key derivation (extract-and-expand)
lowHMAC-based two-step key derivation: extract a uniform pseudorandom key from any secret, then expand it into as many context-bound keys as you need.
csprng
Planned.
keccak sha3
Planned.
post quantum kem
Planned.
Authentication & authorization
Proving who someone is and what they may do.
Sessions vs tokens
lowOpaque server-side sessions in cookies for browsers, short-lived signed tokens between services; revocation decides most cases.
OAuth 2 and OpenID Connect
lowDelegated authorization (OAuth 2) and login on top of it (OIDC); use authorization code + PKCE for every user-facing client.
Passkeys (WebAuthn)
lowPhishing-resistant login with a per-site key pair held by the device or password manager; the server stores only a public key.
Authorization models (RBAC, ABAC, ReBAC)
lowHow to decide who may do what to which object; roles for coarse rules, relationships for sharing, and checks on every object.
JSON Web Token (JWT)
lowA signed, URL-safe token carrying claims; the verifier's job is the checklist (pinned algorithm, key by kid, exp, aud, iss), not the format.
mfa
Planned.
One-time codes (HOTP, TOTP)
lowShort numeric codes derived from a shared secret plus a counter or the clock (HOTP, TOTP), or random codes sent by SMS or email; safe only with expiry, single use and attempt limits.
saml
Planned.
scim provisioning
Planned.
scram authentication
Planned.
Password-authenticated key exchange (PAKE)
lowBoth sides blind a Diffie-Hellman message with a password-derived group element, so an attacker gets one guess per run and nothing to brute-force offline.
ldap directory
Planned.
AKA (authentication and key agreement)
mediumSymmetric-key challenge-response in which a chip and its home server prove knowledge of one key, with a sequence number for freshness, and derive session keys.
Application security
The bugs attackers actually use.
OWASP Top 10 risks
lowThe web and API vulnerability classes that cause most real breaches, each with the one structural fix that removes it.
Input validation and injection
lowKeep untrusted data as data: parse it into types at the boundary, and never splice it into code, queries, shells or HTML.
html sanitization
Planned.
same origin policy
Planned.
JSON Schema validation
lowCompile a JSON Schema once, then check every untrusted document against it, within hard size and depth limits, and report failures as JSON Pointers.
query complexity analysis
Planned.
Unicode confusables
mediumUTS #39 maps every string to a "skeleton" so look-alikes collide, and restricts script mixing so most spoofs never get registered.
Coverage-guided fuzzing
mediumMutate inputs, run an instrumented target, and keep any input that reaches a new code edge; feedback turns blind guessing into incremental search.
sanitizers
Planned.
taint tracking
Planned.
Operational security
Keys, dependencies and blast radius.
Secrets management
lowKeep keys and passwords out of code and logs, give workloads short-lived identity instead of static keys, and make rotation routine.
Software supply chain security
lowControl what code enters your build and prove what comes out: lockfiles, vetted updates, hardened CI, signed artifacts with provenance.
Least privilege and isolation
lowAssume every component will be compromised and limit what it can then reach: narrow identities, separate accounts, sandboxed processes.
Tamper-evident audit log
mediumAn append-only log whose Merkle root, signed per batch, lets anyone verify an entry is present and history was never rewritten, with log-size proofs.
software bill of materials
Planned.
signed attestations
Planned.
Signed update metadata (TUF)
mediumSeparate signing roles with thresholds sign small metadata pinning file hashes, versions and expiry, so clients detect rollback, freeze and mix-and-match and recover by rotating the root.
reproducible builds
Planned.
vulnerability advisory matching
Planned.
secret scanning
Planned.
Applied cryptography
Using primitives correctly: key wrapping, disk and format-preserving encryption, constant-time code.
Envelope encryption
mediumEncrypt each object with its own data key and wrap that key under a KMS-held key, so rotation re-wraps 60 bytes and deleting a key shreds data.
aes key wrap
Planned.
aes xts disk encryption
Planned.
Format-preserving encryption
lowEncrypt a digit or character string into another string of the same length and alphabet with a keyed Feistel network, reversible with the key and a context tweak, without a lookup table.
constant time code
Planned.
elliptic curve arithmetic
Planned.
Secure memory zeroization
lowKeep secrets in one locked, fixed-size, non-copyable region, erase them with writes the compiler must keep, and exclude them from dumps and swap.
key rotation
Planned.
blind signatures
Planned.
commitment schemes
Planned.
verifiable random function
Planned.
Multi-party & privacy-preserving crypto
Splitting trust across parties and computing on data nobody sees whole.
Shamir secret sharing (k-of-n)
lowSplit a secret into n shares so any k reconstruct it and any k-1 reveal nothing at all, using a random polynomial over a finite field.
threshold cryptography
Planned.
threshold ecdsa mpc
Planned.
secure multiparty computation
Planned.
private set intersection
Planned.
homomorphic encryption
Planned.
mix networks
Planned.
bls signature aggregation
Planned.
selective disclosure credentials
Planned.
secure aggregation
Planned.
Proof systems
Succinct and zero-knowledge proofs: commitments, arithmetization, recursion.
sigma protocols
Planned.
sumcheck protocol
Planned.
fiat shamir transform
Planned.
pairing based cryptography
Planned.
multi scalar multiplication
Planned.
algebraic hash poseidon
Planned.
circuit arithmetization
Planned.
polynomial commitment schemes
Planned.
proof recursion folding
Planned.
Access control & request signing
Enforcing decisions on every request: policies, capabilities, signed requests, approvals.
Policy engines (PDP/PEP, Cedar, Rego, ReBAC)
mediumDecide allow/deny for (principal, action, resource, context) in a separate engine with default deny, forbid-wins and an auditable list of determining policies.
Row-level security (multi-tenant isolation in the data layer)
lowAppend a policy predicate to every query inside the database, so a forgotten WHERE tenant_id = ? in application code cannot leak another tenant's rows.
capability tokens
Planned.
Capability-based security (object capabilities)
lowAuthority is a handle you hold, not an identity you have: code can only act on objects it was explicitly given handles to, and handles can only be narrowed and passed on.
Signed URLs
lowA URL carrying its expiry and a MAC or signature over method, path and query, so a verifier holding the key needs no lookup.
hmac request signing
Planned.
dual control approval
Planned.
Certificates & PKI
Issuing, validating and auditing certificates and signatures.
x509 certificates
Planned.
certificate revocation
Planned.
acme protocol
Planned.
signed certificate timestamps
Planned.
Transparency log
mediumA public append-only Merkle tree whose signed heads let anyone verify an entry is present and history was only extended, with log-size proofs.
witness cosigning
Planned.
trusted timestamping
Planned.
Mutual TLS
lowTLS where the client also proves a certificate key, so every connection carries a verified, rotatable machine identity.
Workload identity (SPIFFE-style)
mediumA local agent works out which workload is calling, then hands it a short-lived signed identity that it renews automatically; no secret is shipped in advance.
code signing
Planned.
pdf digital signatures
Planned.
cbor cose
Planned.
Secure channels & messaging
Authenticated encrypted transports and end-to-end messaging protocols.
noise protocol
Planned.
SSH protocol (transport, auth, channels)
lowA three-layer protocol on one TCP connection: encrypted packet transport, user authentication, then multiplexed channels with windows for shells, files and port forwards.
ipsec esp
Planned.
WireGuard
lowA UDP tunnel whose peers are public keys, with a 1-RTT Noise handshake, one fixed cipher suite and a key-to-address routing table.
double ratchet
Planned.
x3dh key agreement
Planned.
group messaging encryption
Planned.
onion routing
Planned.
onion services rendezvous
Planned.
circuit path selection
Planned.
traffic padding
Planned.
traffic obfuscation
Planned.
tls termination
Planned.
tls interception
Planned.
dnssec
Planned.
Hardware trust
Keys and measurements anchored in hardware: HSMs, enclaves, TPMs, secure boot.
Hardware security module (HSM)
mediumA tamper-resistant device or service that generates keys, signs, decrypts and wraps with them internally, and releases a key only as ciphertext.
hardware backed keystore
Planned.
remote attestation
Planned.
hardware root of trust
Planned.
trusted execution environments
Planned.
measured boot
Planned.
Secure boot chain
lowEach boot stage verifies the signature of the next before running it, anchored in an immutable ROM key hash, with version counters against downgrade and a TPM log of what ran.
key sealing
Planned.
apdu smart card protocol
Planned.
Replay protection window
lowA highest-seen counter plus a bitmap of the last W numbers rejects duplicates and stale messages in O(1) with a few hundred bytes of state.
Sandboxing & isolation
Confining untrusted code: syscall filters, microVMs, in-process sandboxes, side channels.
Process sandboxing
mediumRun risky work in a separate, deliberately powerless process and let a small privileged broker do the few things it needs, over a narrow pipe.
microvm isolation
Planned.
isolate multitenancy
Planned.
software fault isolation
Planned.
microarchitectural side channels
Planned.
egress proxy filtering
Planned.
seccomp bpf
Planned.
syscall interception
Planned.
guard pages memory sandboxing
Planned.
Abuse & bot defense
Telling real users from bots and abusers without hurting real users.
Bot detection
mediumCombine declared identity, rate and timing, network, behaviour and integrity signals into one score per client, then map thresholds to allow, log, limit, challenge or block.
Behavioral biometrics
mediumBuild a per-user profile of input timing and motion, score each new session by distance to it, and feed the result into a risk score instead of a verdict.
Device fingerprinting
mediumCollect stable and volatile device signals, hash the stable core for exact lookup, fuzzy-match the rest with drift tolerance, and feed the result into a risk score.
Reputation scoring
mediumTurn per-entity good/bad event counts into a trust score that forgets old evidence, borrows strength from parent groups for new keys, and maps to allow, challenge or block.
proof of work challenge
Planned.
tls fingerprinting
Planned.
k anonymity hash prefix
Planned.
device posture checks
Planned.
Threat detection & malware analysis
Finding malicious files, processes and hosts.
yara rule matching
Planned.
fuzzy hashing
Planned.
binary emulation
Planned.
memory integrity scanning
Planned.
process tree tracking
Planned.
os event tracing
Planned.
network service fingerprinting
Planned.
port scanning
Planned.
code obfuscation
Planned.
Privacy engineering
Releasing data and statistics without exposing individuals.
differential privacy
Planned.
privacy budget accounting
Planned.
randomized response
Planned.
k anonymity
Planned.
data deidentification
Planned.
Data masking
mediumHide sensitive field values from people and systems that don't need them, by masked copies or role-based masking at read time, while keeping joins and formats working.
salted visitor hashing
Planned.
invisible watermarking
Planned.