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