Cryptographic Hashing

Cryptographic hashing genera un digest de longitud fija a partir de datos de entrada de cualquier tamaño, con propiedades de determinismo, no invertibilidad y resistencia a colisiones, lo que permite la integridad y autenticación de datos.

Una cryptographic [[hash function](/es/terms/hash-function)](/es/terms/cryptographic-hash-function) toma una entrada de longitud arbitraria y devuelve un digest de longitud fija. Se caracteriza por el determinismo, tamaño de salida fijo y one-wayness. Además de ser determinista y de longitud fija, las cryptographic hash functions buscan proporcionar preimage resistance (dado un digest, encontrar un preimage es infactible), second-preimage resistance (es infactible encontrar una entrada diferente con el mismo digest) y collision resistance (es difícil encontrar dos entradas que colisionen). Están diseñadas para ser eficientes de computar, y el digest de salida debe exhibir el avalanche effect: un pequeño cambio en la entrada produce un digest significativamente diferente. Se utilizan en comprobaciones de integridad de datos, firmas digitales y password hashing cuando es apropiado. Nota: un nonce no es una propiedad de la hash function en sí misma; puede ser utilizado en protocolos para salting o variar contextos de hashing, pero no forma parte de la propiedad central de la hash function.

        graph LR
  Center["Cryptographic Hashing"]:::main
  Pre_cryptography["cryptography"]:::pre --> Center
  click Pre_cryptography "/terms/cryptography"
  Center --> Child_merkle_tree["merkle-tree"]:::child
  click Child_merkle_tree "/terms/merkle-tree"
  Rel_digital_signatures["digital-signatures"]:::related -.-> Center
  click Rel_digital_signatures "/terms/digital-signatures"
  Rel_proof_of_work["proof-of-work"]:::related -.-> Center
  click Rel_proof_of_work "/terms/proof-of-work"
  Rel_cryptographic_primitives["cryptographic-primitives"]:::related -.-> Center
  click Rel_cryptographic_primitives "/terms/cryptographic-primitives"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Explícalo como si tuviera 5 años

🧼 A digital fingerprint for your data. If even one tiny [bit](/es/terms/bit) of a file changes, the [hash](/es/terms/hash) changes completely, showing you it was touched.

🤓 Expert Deep Dive

## The Significance of SHA-256
SHA-256 is the beating heart of the Bitcoin network. It is used to create the linked 'chain' by including the previous block's hash in the current block, and it powers the Proof-of-Work mining system where miners compete to find a specific hash. Its 256-bit output provides 128-bit 'collision security,' which remains strong even against the most advanced classical computers.

🔗 Términos relacionados

Requisitos previos:
Más información:

📚 Fuentes