cryptography
The mathematics and techniques used to keep data secret, prove it has not been changed and prove who sent it.
In more detail
The main tools are hash functions, message authentication codes such as HMAC, and encryption such as AES. Use well-reviewed libraries rather than writing your own algorithms.
Example
Node.js provides them in node:crypto, built on OpenSSL.Related terms
- encryption — Scrambling data with a key so only someone holding the right key can read it.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- digital signature — A value computed from data and a secret key that lets anyone with the matching verification key confirm the data came from the key holder and was not changed.
- TLS — The encryption that protects data travelling over a network, the S in HTTPS.
- symmetric encryption — Encryption where the same secret key both encrypts and decrypts, as with AES.
- node:crypto — The built-in Node.js module for hashing, HMACs, encryption, random numbers and key derivation, backed by OpenSSL.
- HMAC — A way of combining a secret key with a hash function to produce a tag that shows a message came from someone holding the key and was not changed.
- AES — The Advanced Encryption Standard: the widely used symmetric encryption algorithm standardised by NIST.
Taught in
- Twelve Alerts, Ten Services — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Edge: WAF, Shield, CloudFront And GuardDuty — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- KMS And Envelope Encryption: Who Can Still Decrypt? — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
- Asset Lifecycle Management & Media Sanitization — Cybersecurity Fundamentals, GRC & Cryptography
- Data Loss Prevention & Egress Monitoring — Cybersecurity Fundamentals, GRC & Cryptography
- Security Capstone Review & Certification — Cybersecurity Fundamentals, GRC & Cryptography
- Who Built This Image? Supply Chain And Registries — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- libuv Architecture: Event Demultiplexer & Thread Pool — Node.js Internals & Backend Services
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services
- TLS And The Handshake — Application Security & Threat Modeling for Engineers
- Lockfiles And Reproducible Builds — Application Security & Threat Modeling for Engineers
- Software Bill Of Materials — Application Security & Threat Modeling for Engineers
- Provenance And Signing — Application Security & Threat Modeling for Engineers
- The Certificate That Expired On A Sunday: Hashes, Encryption And Certificates — CompTIA Linux+ (XK0-006) Exam Prep
- What Changed Last Night? Integrity, Scans, Benchmarks And Secure Deletion — CompTIA Linux+ (XK0-006) Exam Prep
- Ninety Minutes, Five Domains: The Full Mock And The Week Before The Exam — CompTIA Linux+ (XK0-006) Exam Prep