SHA-256
A widely used hash function that turns any data into a 256-bit fingerprint, shown as 64 hexadecimal characters.
In more detail
SHA-256 is part of the SHA-2 family, a United States federal standard used worldwide. It is deterministic and designed so that finding two inputs with the same output is infeasible. It is far slower than the hash functions used inside hash tables, so it is used for stable identifiers and integrity checks, such as file checksums and container image digests.
Examples
Used to fingerprint build inputs and to turn a PKCE code verifier into a code challenge.sha256sum /secure/etcd/snapshot.dbRest evidence integrity on SHA-256; record MD5 too only for older tools.Related terms
- hash function — A function that turns data of any size into a fixed-size value, called its hash, used to find items quickly in a table or to detect any change in the data.
- hashlib — The Python standard-library module that computes stable cryptographic hashes such as SHA-256.
- hexdigest — A hash result written as a string of hexadecimal characters, returned by the hexdigest() method of a hashlib object.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- 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.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
- hashFiles — A workflow expression function that returns one SHA-256 hash for the files matching a pattern.
- PKCE — Short for Proof Key for Code Exchange: the client sends a hash of a random secret at the start of the flow and the secret itself when exchanging the code.
Taught in
- What A Hash Function Promises — Algorithms & Data Structures for Working Engineers
- Bloom Filters: Membership Without The Data — Algorithms & Data Structures for Working Engineers
- JSON Web Tokens — Modern API Architecture: REST, GraphQL & gRPC
- Webhooks Versus Polling — Modern API Architecture: REST, GraphQL & gRPC
- Someone Cleaned Up The History: Versioned And Immutable — Certified GitOps Associate (CGOA) Exam Prep
- What Does CI Still Do? CI, CD And Where GitOps Starts — Certified GitOps Associate (CGOA) Exam Prep
- A Bucket Nobody Wrote Down: State Stores Beyond Git — Certified GitOps Associate (CGOA) Exam Prep
- Workflows, Jobs, Steps, and Actions — Continuous Integration & Continuous Delivery Pipelines
- Speeding Up Builds: Caching Dependencies — Continuous Integration & Continuous Delivery Pipelines
- Building and Pushing Container Images — Continuous Integration & Continuous Delivery Pipelines
- Supply Chain Security: SBOMs & Cosign Signing — Cloud Security & DevSecOps Engineering
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- Works On A Laptop, Fails In Production — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Where Is The Password Kept? — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- CIA Triad, Non-Repudiation & Parkerian Hexad — Cybersecurity Fundamentals, GRC & Cryptography
- Regulatory Compliance: SOC 2, HIPAA, GDPR & PCI-DSS — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
- Data States: Security at Rest, in Transit, and in Use — Cybersecurity Fundamentals, GRC & Cryptography
- Backup Architectures: 3-2-1, Immutability & Air-Gaps — Cybersecurity Fundamentals, GRC & Cryptography
- Internal Audits, Sampling & Evidence Chains — Cybersecurity Fundamentals, GRC & Cryptography
- Security Capstone Review & Certification — Cybersecurity Fundamentals, GRC & Cryptography
- Tags, Digests And Reproducible Image References — Docker Architecture & Production Containers
- Scan, Patch And Inspect The Software Supply Chain — Docker Architecture & Production Containers
- Build, Test And Promote The Same Image In CI — Docker Architecture & Production Containers
- From Local Containers To Kubernetes — Docker Architecture & Production Containers
- CSRF Mitigations, SameSite Cookies And Subresource Integrity — Frontend Architecture & Web Platform
- Unified Build Pipelines: Caching & Dependency Graphs — Production Full-Stack Engineering
- OAuth2 & OpenID Connect: Social Auth & PKCE Flows — Production Full-Stack Engineering
- Encryption In Practice With OpenSSL — ISC2 Certified in Cybersecurity (CC) Exam Prep
- etcd Snapshots And A Tested Restore — Kubernetes: Production-Grade Container Orchestration
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Fifty Five In, Fifty Two Out: Transforming Data — OpenTelemetry Certified Associate (OTCA) Exam Prep
- YARA Rule Authoring & File Signature Matching — Security Operations & Threat Hunting (SOC)
- Indicator of Compromise Extraction & Threat Hunting Feeds — Security Operations & Threat Hunting (SOC)
- Recovery & System Validation Testing — Security Operations & Threat Hunting (SOC)
- Forensics Principles, Custody & Imaging — Security Operations & Threat Hunting (SOC)
- Malware Triage: Hashes, Strings & Sandboxing — Security Operations & Threat Hunting (SOC)
- Workload Identity — Application Security & Threat Modeling for Engineers
- Lockfiles And Reproducible Builds — Application Security & Threat Modeling for Engineers
- Provenance And Signing — Application Security & Threat Modeling for Engineers
- Choosing The Right Cryptography — CompTIA Security+ (SY0-801) Exam Prep
- Resources, Data Sources And The References Between Them — HashiCorp Terraform Associate (004) Exam Prep
References
Certification courses
- CGOA course and practice exam: Certified GitOps Associate
- CCDAK and CCAAK course and practice exams: Confluent Apache Kafka certifications
- ISC2 CC course and practice exam: Certified in Cybersecurity
- OTCA course and practice exam: OpenTelemetry Certified Associate
- CompTIA Security+ course and practice exam: SY0-801
- Terraform Associate course and practice exam: HashiCorp Terraform Associate (004)