CRYPTOGRAPHY LAB
Cryptography Lab
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
Available experiments: 105 / 105
Only implemented engines can run. Pending technologies are explicitly distinguished.
Symmetric ciphers (block and stream)
AESStandard operationAES (128 / 192 / 256) →DESLegacy / non-secureDES (16 rounds, legacy) →3DESLegacy / non-secure3DES EDE (three keys, legacy) →BlowfishStandard operationBlowfish (16 rounds) →TwofishStandard operationTwofish (16 rounds) →SerpentStandard operationSerpent (32 rounds) →CamelliaLimited implementationCamellia-128 (18 rounds) →ChaCha20Standard operationChaCha20 (IETF) →Salsa20Limited implementationSalsa20/20 (256-bit key, counter starts at 0) →RC4Legacy / non-secureRC4 (legacy) →RC5Legacy / non-secureRC5-32/12/16 →IDEAStandard operationIDEA (8 rounds and output transform) →CAST-128Standard operationCAST-128 (12/16 rounds) →SEEDStandard operationSEED (16 rounds) →ARIAStandard operationARIA (128/192/256) →LEALimited implementationLEA-128 (24 rounds) →HIGHTStandard operationHIGHT (32 rounds) →SM4Standard operationSM4 (single block) →KuznyechikStandard operationKuznyechik (GOST R 34.12-2015) →PRESENTLimited implementationPRESENT-80 (31 rounds) →SIMON and SPECKLimited implementationSPECK64/128 (27 rounds; SIMON not implemented) →TEA/XTEALegacy / non-secureXTEA (32 cycles) →One-Time PadToy educational exampleOne-Time Pad (XOR) →AsconLimited implementationAscon-Hash256 (SP 800-232; hash only, no AEAD) →
Cipher modes and AEAD
AES-GCMLimited implementationAES-GCM (96-bit nonce, empty AAD, 128-bit tag) →AES-CBCLimited implementationAES-CBC (raw, no padding) →AES-CTRLimited implementationAES-CTR (128-bit counter) →AES-XTSLimited implementationAES-XTS (full blocks; no ciphertext stealing) →AES-CCMLimited implementationAES-CCM (13-byte nonce, empty AAD, 16-byte tag) →ChaCha20-Poly1305Limited implementationChaCha20-Poly1305 (empty AAD, 128-bit tag) →AES-GCM-SIVLimited implementationAES-GCM-SIV (RFC 8452, empty AAD) →ECB modeLegacy / non-secureAES-ECB (raw, no padding) →Format-Preserving Encryption FF1Limited implementationFF1 decimal AES (10 rounds, radix 10) →Envelope encryptionLimited implementationEnvelope encryption (AES-256-GCM key wrapping + data encryption) →
Asymmetric encryption, signatures and key exchange
RSAToy educational exampleRSA (p=61, q=53; raw integer) →RSA-OAEPLimited implementationRSA-OAEP encoding / decoding only (SHA-256; no RSA exponentiation) →RSA-PSSLimited implementationRSA-PSS EMSA-PSS encoding only (SHA-256, emBits=1023; no RSA signature) →Diffie-HellmanToy educational exampleDH (p=23, g=5) →ECDHToy educational exampleECDH (toy curve y²=x³+2x+2 mod 17) →X25519Standard operationX25519 (RFC 7748 Montgomery ladder) →ECDSAToy educational exampleECDSA (toy curve, sign and verify) →Ed25519Standard operationEd25519 sign + verify (RFC 8032, pure Ed25519) →DSAToy educational exampleDSA sign + verify (toy p=23,q=11,g=4) →ElGamalToy educational exampleElGamal (toy p=23, g=5) →ECIESLimited implementationECIES-style educational P-256 composition (ECDH + KDF2 + AES-CTR + HMAC; custom profile) →SM2Limited implementationSM2 sign + verify (precomputed digest; ZA/SM3 stage excluded) →KCDSAToy educational exampleKCDSA signature equation (toy p=23,q=11; SHA256 and prehashed integer, not standard KCDSA) →PaillierToy educational examplePaillier (toy p=7,q=11) →
Hashes, MACs and key derivation
SHA-1Legacy / non-secureSHA-1 (legacy) →SHA-2Limited implementationSHA-256 →SHA-3Limited implementationSHA3-256 (Keccak-f[1600]) →MD5Legacy / non-secureMD5 (legacy) →BLAKE2Limited implementationBLAKE2s-256 (unkeyed) →BLAKE3Limited implementationBLAKE3-256 (single chunk, unkeyed) →LSHStandard operationLSH-256-256 (26 steps) →HMACLimited implementationHMAC-SHA-256 →CMACStandard operationAES-CMAC →Poly1305Standard operationPoly1305 (one-time key) →bcryptToy educational examplebcrypt $2b$ (EksBlowfish, cost 4 or 5) →scryptToy educational examplescrypt (RFC 7914; r=p=1, dkLen=64) →Argon2Limited implementationArgon2 RFC 9106 compression G only (two repeated-seed 1024-byte blocks; no password KDF) →PBKDF2Toy educational examplePBKDF2-HMAC-SHA-256 (32 B) →HKDFLimited implementationHKDF-SHA-256 (32 B) →
Advanced and next-generation cryptography
ML-KEM KyberLimited implementationML-KEM FIPS 203 NTT and inverse (256 coefficients; no key encapsulation) →ML-DSA DilithiumLimited implementationML-DSA FIPS 204 NTT and inverse (256 coefficients; no signatures) →SLH-DSA SPHINCS+Limited implementationSLH-DSA SHA2-128 WOTS+ chain only (fixed address except hash counter) →FalconToy educational exampleFalcon NTRU ring equation (reduced degree; no key generation or signature) →Classic McElieceToy educational exampleClassic McEliece systematic binary syndrome + toy exhaustive decoding (not Goppa KEM) →Homomorphic encryptionToy educational exampleAdditive homomorphic encryption (toy Paillier; NOT FHE) →Shamir Secret SharingToy educational exampleShamir (3 of 5, GF(257)) →Zero-knowledge proofToy educational exampleInteractive Schnorr proof (toy; NOT zk-SNARK/STARK) →BB84 quantum key distributionToy educational exampleBB84 basis sifting only (no quantum measurement) →Hybrid encryptionLimited implementationHybrid encryption (X25519 + HKDF-SHA256 + AES-256-GCM; custom demo, not a wire protocol) →
Cryptographic protocols and formats
TLS 1.3Limited implementationTLS 1.3 (SHA-256 handshake key schedule; no network/certificates) →SSHLimited implementationSSH (RFC 4253 A–F key derivation with SHA-256; supplied exchange hash) →IPsecLimited implementationIPsec ESP (RFC 4106 AES-GCM payload with AAD, no packet transport) →OpenPGPToy educational exampleOpenPGP (iterated salted S2K SHA-256; educational low count) →S/MIMELimited implementationS/MIME CMS (content encryption AES-CBC + padding only; no CMS envelope/signatures) →Signal ProtocolLimited implementationSignal Double Ratchet (symmetric chain KDF only; no DH ratchet/session) →WireGuard NoiseLimited implementationWireGuard Noise (HMAC-BLAKE2s KDF3 only; no handshake/transport) →JWE JOSELimited implementationJWE Compact (dir + A256GCM, fixed protected header) →
Encoding and decoding
Base64Standard operationBase64 (RFC 4648) →Base32Standard operationBase32 (RFC 4648) →Hex Base16Standard operationBase16 / HEX →Base58Limited implementationBase58 (Bitcoin alphabet, no checksum) →Ascii85 Base85Limited implementationAscii85 (no framing) →URL percent-encodingStandard operationURI component percent-encoding →UTF-8Standard operationUTF-8 →UTF-16Limited implementationUTF-16LE (no BOM) →ASCIIStandard operationASCII →PunycodeLimited implementationPunycode (RFC 3492 Bootstring; no IDNA validation) →Quoted-PrintableLimited implementationQuoted-Printable (octet demo) →HTML entitiesLimited implementationHTML entities (five-character text escaping) →PEMLimited implementationPEM (CERTIFICATE label, opaque bytes) →ASN.1 DERLimited implementationDER (OCTET STRING, short-form length) →CBORLimited implementationCBOR (JSON subset, small integers) →Protocol BuffersLimited implementationProtobuf (field 1, uint32) →ROT13 Caesar cipherLegacy / non-secureROT13 →Huffman codingLimited implementationHuffman (explicit JSON codebook) →Run-length encodingLimited implementationRLE (JSON count/value pairs) →DEFLATE gzipLimited implementationRaw DEFLATE (LZ77 + fixed Huffman; no gzip wrapper) →Reed-SolomonToy educational exampleReed-Solomon (5,3) evaluation code over GF(257); erasures only →CRCStandard operationCRC-32/ISO-HDLC →Hamming codeStandard operationHamming (7,4) →Bech32Limited implementationBech32 / Bech32m (raw data, not address validator) →