Skip to content · ⁨דלג לתוכן⁩

Hashing and digital signatures · ⁨גישוח וחתימות דיגיטליות⁩

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.
עברית

Hashing מגן על שלמות

  • השתמשנו ב-Hashing להגנת סודיות passwords. Hashing גם מגן על שלמות — מוכיח שהנתונים לא שונו.
  • שינוי אפילו של תווה אחד בקלט, וה-Hashing משתנה לחלוטין.
import hashlib
print(hashlib.sha256(b"hello").hexdigest()[:16])
print(hashlib.sha256(b"hellp").hexdigest()[:16])   # totally different

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP