Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Cryptography

Direct answer

Cryptography applies mathematical primitives and protocols to protect confidentiality, integrity, authenticity and key establishment, but its security depends on correct keys, randomness, parameters, composition, implementation and lifecycle rather than algorithm names alone.

When to use this

Use it when the cryptographic, certificate or secure-channel question has been narrowed to Cryptography. Capture exact data/peer, algorithm or protocol, key/certificate identity, trust context and expected security property before changing configuration.

First 30 seconds

1. Use vetted libraries and standard algorithms; never roll your own.

2. Approved: AES-GCM, ChaCha20-Poly1305, SHA-2/3, RSA ≥ 3072 or ECC, Argon2id.

3. Key management is the hard part.

4. Plan for post-quantum migration.

5. Keep a crypto inventory.

Operational verification

data → algorithm + key → protected data

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show unobserved keys, certificates, clients, paths, algorithms, endpoints or time periods. A correct cryptographic operation shows a mathematical relation under supplied inputs and keys, but it does not show endpoint trust, identity, authorization, key safety or correct system composition.

Suspicious evidence: algorithm aliases hiding weak modes, key reuse, nonce reuse, deterministic low entropy, disabled verification, unauthenticated encryption, embedded secrets or no migration inventory.

Next check: Continue from the first failing or unverified step, then move to the responsible Cryptography, PKI, TLS or platform branch; make the smallest controlled change, repeat the original operation, verify rejection/expiry/revocation behavior and check adjacent compatibility/security regression.

Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Scope / prerequisiteUse it when the cryptographic, certificate or secure-channel question has been narrowed to Cryptography. Capture exact …
What next?3 suggested next steps
Child topics (this level)15
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

security objective → primitive/protocol selection → key and randomness generation → parameter/mode composition → operation → verification/failure handling → lifecycle and agility

Healthy evidence: exact effective parameters and trust state match policy, negative tests fail safely, and the original operation succeeds.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Cryptography Fundamentals

Cryptography Fundamentals separates security goals, primitives, keys, algorithms, modes, parameters and protocols so confidentiality, integrity, authentication, signatures and key establishment are composed deliberately.

Subtopic Plaintext

Plaintext is the input message or data representation before encryption or after successful decryption; it may be human-readable, structured binary, compressed or already encoded.

Subtopic Ciphertext

Ciphertext is the output of encryption and usually includes or travels with metadata such as nonce, IV, authentication tag, algorithm identifier and version required for safe decryption.

Subtopic Encryption

Encryption transforms plaintext into ciphertext under a key to provide confidentiality; modern applications normally need authenticated encryption or a correctly composed integrity mechanism as well.

Subtopic Decryption

Decryption uses the appropriate key and parameters to recover plaintext; authenticated constructions must verify integrity and context before releasing plaintext to the application.

Subtopic Symmetric Encryption

Symmetric Encryption uses the same secret key, or closely related secret material, for encryption and decryption and is efficient for bulk data when key distribution and nonce use are controlled.

Subtopic Asymmetric Encryption

Asymmetric Encryption uses a public/private key pair so data encrypted for a recipient's public key can be decrypted with the corresponding private key, usually inside a hybrid scheme rather than for bulk data.

Subtopic Key Exchange

Key Exchange lets parties derive shared secret material over an untrusted channel; it must be authenticated and transcript-bound to prevent active man-in-the-middle substitution.

Subtopic Cryptographic Hash

A Cryptographic Hash maps arbitrary input to a fixed-size digest designed for preimage, second-preimage and collision resistance appropriate to the chosen algorithm and use.

Subtopic Digital Signature

A Digital Signature uses a private key to sign a defined message representation and a public key to verify integrity and origin under key-identity, algorithm and trust assumptions.

Subtopic HMAC

HMAC combines a cryptographic hash with a shared secret key to authenticate message integrity and origin among holders of that key without exposing the key itself.

Subtopic Salting

Salting adds a unique non-secret value to each password or similar input before a password KDF so identical inputs do not share verifier values and precomputed tables lose efficiency.

Subtopic Nonce

A Nonce is a value intended for one use within a defined key/protocol context; some constructions require uniqueness, some unpredictability, and some require both.

Subtopic Random Number Generation

Cryptographic Random Number Generation combines sufficient entropy with a vetted deterministic random bit generator and lifecycle controls to produce unpredictable keys, nonces, tokens and challenges.

Subtopic Cryptographic Agility

Cryptographic Agility is the ability to inventory, select, configure, update and retire algorithms, parameters, protocols, certificates, keys and dependent data without uncontrolled outage or security downgrade.

Key points
  • Cryptography ≠ complete system security.
  • Encryption ≠ integrity or authenticity automatically.
  • Strong algorithm ≠ safe mode, key, nonce or implementation.
  • Secret data ≠ cryptographic key material with a managed lifecycle.
Key checks
  • openssl list -cipher-algorithms | head — available algorithms
  • Crypto inventory — where crypto is used
  • Policy: approved algorithms — standards
ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A correct cryptographic operation shows a mathematical relation under supplied inputs and keys, but it does not show endpoint trust, identity, authorization, key safety or correct system composition.

In depth

Cryptography protects information with mathematics: encryption for confidentiality, hashes and MACs for integrity, digital signatures for authenticity and non-repudiation, and key exchange for establishing shared secrets. It underpins TLS, VPNs, disk encryption, PKI and password storage.

Building blockCommon algorithms
Symmetric encryptionAES-GCM, ChaCha20-Poly1305
Asymmetric / key exchangeRSA, ECDH (X25519), ML-KEM (post-quantum)
SignaturesECDSA, Ed25519, RSA-PSS, ML-DSA
HashesSHA-256/384/512, SHA-3
Password hashingArgon2id, scrypt, bcrypt

Practical rule: use well-reviewed libraries and protocols with current algorithms, never invent your own, and plan for crypto agility as post-quantum algorithms are introduced.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

Authoritative/upstream documentation reviewed for bounded claims in Cryptography. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/fips/197/final · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
cryptography basicscryptographic security modelcrypto fundamentals
Embedded reference data

Quick lookup tables

Cryptography proof map

Fast scope, effective cryptographic state, verification and closure boundaries for Cryptography.

BoundaryEstablishDoes not establish
Scope and intentAsset/data/peer, security property, identity/name, protocol and timeDoes not prove algorithm, key, trust or endpoint correctness
Effective cryptographic stateExact version, algorithm/mode/parameters, key/certificate/path and negotiated resultConfiguration or object presence does not prove correct use
Verification outcomePositive, negative, tamper, expiry/revoke and failure tests correlated with evidenceOne success does not prove every peer, client, path or lifecycle stage
ClosureOriginal operation succeeds; old/unsafe state is retired and regression checks passAdministrative workflow completion alone is not closure
Confirmation

Confirm action

Continue?