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.
العربية

التجزئة تحمي النزاهة

  • قمنا بتجزئة كلمات المرور من أجل السرية. التجزئة تحمي أيضاً النزاهة — إثبات أن البيانات لم تتغير.
  • تغيير حرف واحد فقط في المدخلات، وتتغير التجزئة بالكامل.
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