Der SHA256-Algorithmus ist eine 256-Bit-Kryptografie-Hash-Funktion. Er ist der Nachfolger des SHA1 und ordnet beliebige Daten jeglicher Größe (die Eingabe) einem hexadezimalen String von 128 Bits (die Ausgabe) zu.
Wort oder Phrase | SHA256-Wert |
Ich liebe Bitcoin! | d587d1a3a8f2c981a992a12face6e4074a28d2509b834fd1154f53d24579ddf4 |
hallo | 5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03 |
Sie können den obigen SHA256-Wert mit dem *nix-Tool “sha256sum” replizieren.
echo "hello" | sha256sum
Table of Contents
show
Wo wird SHA256 verwendet?
- SHA256 hashes are used in bitcoin mining to create verifiably unique strings for transactions that identify their order in the block chain and prevent double spending without relying on centralized trust
- Web, SSH, and FTP servers use them to detect accidental modifications or deletions of critical files
- Email systems use them as an anti-spam measure within emails by attaching messages from one sender into a single envelope so they can’t be presented as separate ones while passing through a message transfer agent (MTA)
Hash-Funktionen haben unglaubliche Anwendungen und die obigen Beispiele repräsentieren nur einige davon.