Payment Cryptography, Hands-On

Reading list

Start here (free)

Books

  • Ilya Dubinsky, Cryptography for Payment Professionals (CRC Press, 2023). Written for software engineers; the best single book on this topic.
  • Slava Gomzin, Hacking Point of Sale (Wiley, 2014). The attacker’s view of PCI, EMV and PIN security.
  • Ross Anderson, Security Engineering, chapter “Banking and Bookkeeping” — free PDF from the author’s Cambridge page. Real attacks on HSMs and why the rules exist.
  • María Isabel González Vasco, Ángel Luis Pérez del Pozo, Criptografía esencial (Ra-Ma, 2021) — the theory, in Spanish. Map below.

Code you can read

  • psec (Python): TR-31 (ANSI X9 Technical Report 31, the key block format), CVV (Card Verification Value), PIN blocks, DES (Data Encryption Standard)/AES (Advanced Encryption Standard) helpers.
  • pyemv (Python): EMV key derivation, ARQC (Authorization Request Cryptogram)/ARPC (Authorization Response Cryptogram), secure messaging, CVC3 (Card Verification Code 3, dynamic, for contactless).
  • This site’s calculators were cross-checked against both libraries’ published vectors and against OpenSSL.

Map: Criptografía esencial → this course

SectionPagesSupports
2.4 DES y AES; 2.4.2 Modos de operación68–80Module 1 (ciphers, ECB/CBC), KCV, key blocks
2.2 Códigos de autenticación de mensajes56–61Module 1 (MAC), TR-31 MAC, CVV, ARQC
2.3.1 Cifrado de Vernam61–63XOR, key components
3.1 El problema de gestión de claves; KDC89–92Modules 2–3 (hierarchy, zones)
3.2.1 Intercambio de clave; 3.2.3 RSA; 3.3.3 Certificación92–100, 126–128TR-34, remote key loading
5.3.1–5.3.2 Compartición de secretos, Shamir203–212Module 3 (components, k-of-n)
Test de autoevaluación, ch. 284Self-check

Safe to skip for this purpose: chapter 4 (provable security), most of chapter 1, El Gamal, Merkle–Hellman, DSA (Digital Signature Algorithm), identity-based crypto, 5.1–5.2, multiparty computation.