Skip to content · ⁨Passer au contenu⁩

Hashing and digital signatures · ⁨Hachage et signatures numériques⁩

English

Hashing protects integrity

  • We hashed passwords for secrecy. Hashing also protects integrity — proving data was not changed.
  • Change even one character of the input, and the hash changes completely.
Français

Le hachage protège l'intégrité

  • Nous avons haché les mots de passe pour la confidentialité. Le hachage protège aussi l'intégrité — prouver que les données n'ont pas été modifiées.
  • Changez même un seul caractère de l'entrée, et le hachage change complètement.
import hashlib
print(hashlib.sha256(b"hello").hexdigest()[:16])
print(hashlib.sha256(b"hellp").hexdigest()[:16])   # totally different

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP