Cryptography Basics

Fundamental cryptographic concepts.

  • JSON4,574 B
  • YAML3,368 B · −26%
  • TOON2,895 B · −37%

The core concepts of applied cryptography: symmetric and asymmetric encryption, hashes, signatures, PKI and cipher types, with the supporting ideas of nonces, salts, key derivation, forward secrecy and authenticated encryption that decide whether those primitives are used safely.

Use it when

  • You need a precise one-line definition of a cryptographic term.
  • You are checking whether a design uses salts, nonces and key derivation correctly.

Watch out for

  • Definitions here are conceptual. Secure use depends on correct implementation, parameter choice and key management.
  • Terms are sometimes used loosely in practice (for example 'encryption' for hashing); the entries use the strict meaning.

The data

TermDescription
Symmetric EncryptionSame key is used for encryption and decryption.
Asymmetric EncryptionPublic and private key pair used for encryption and signing.
Hash FunctionOne-way function producing a fixed-size digest.
Digital SignatureUses a private key to sign and a public key to verify.
Public Key InfrastructureFramework for managing public-key certificates.
Block CipherEncrypts fixed-length blocks of plaintext.
Stream CipherEncrypts data one bit or byte at a time.
Nonce / IVA value used once per encryption under a key so that identical plaintexts produce different ciphertexts; reusing it can be catastrophic.
SaltA random per-item value mixed into a password hash so identical passwords hash differently and precomputed tables fail.
Key Derivation FunctionA function that derives one or more keys from a secret or password, often deliberately slow for passwords.
Perfect Forward SecrecyA property where compromise of long-term keys does not reveal past session keys, achieved with ephemeral key exchange.
Authenticated Encryption (AEAD)Encryption that also proves the ciphertext and associated data have not been altered.
Certificate AuthorityA trusted party that signs certificates binding a public key to an identity.
EntropyA measure of unpredictability. Keys and tokens must come from a cryptographically secure random source.
Kerckhoffs's PrincipleA system should remain secure even if everything except the key is public.
Collision ResistanceThe property that it is computationally infeasible to find two different inputs with the same hash.

Fields

The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.

SectionFieldTypeExample
datatermstringSymmetric Encryption
datadescriptionstringSame key is used for encryption and decryption.

Fetch the same bytes

The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.

curl "https://yjtoon.yunusemrevurgun.com/api/dataset/cryptography-basics?format=toon"
const res = await fetch(
  "https://yjtoon.yunusemrevurgun.com/static-data/dataset/cryptography-basics.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Topics

  • security
  • cryptography
  • encryption

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets