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.
日本語

ハッシュによる完全性の保護

  • パスワードのハッシュ化は機密性のために用いられます。ハッシュ化はまた完全性も保護し、データが変更されていないことを証明します。
  • 入力の文字を1つ変えただけで、ハッシュ値は完全に変わります。
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