Skip to content

Commit

Permalink
space
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Sep 30, 2024
1 parent d457871 commit 8377948
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cryptography/level-9/DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ As you saw, raw RSA signatures are a bad idea, as they can be forged.
In practice, what people sign are [_cryptographic hashes_](https://en.wikipedia.org/wiki/Cryptographic_hash_function) of things.
A hash is a one-way function that takes an arbitrary amount of input (e.g., bytes or gigabytes or more) and outputs a short (e.g., 32 bytes) of output hash.
Any changes in the input to the hash will _diffuse_ all over the resulting cryptographic hash in a way that is not reversible.

Thus, secure hashes are a good representation for the original data: if Alice signs a hash of a message, that message can be seen as being signed as well.
Better yet, since hashes are not controllably reversible or modifiable, an attacker being able to modify a hash does not allow them to forge a signature on a new message.

Expand Down

0 comments on commit 8377948

Please sign in to comment.