What is a hash function?
One-way hash function that requires collision resistance
MD5
- produces 128-bit hash
SHA-1 Function
- Produces 160-bit hash
SHA-2
What is collision resistance?
When it is hard to find two inputs that hash into the same output
SHA-3
New hash algorithm standardised by NIST
Weakened or compromised hash functions?
1) MD5 suffered collision attack
2) SHA-1 vulnerable
Digital signatures
1) signature generated from message and private key should verify authenticity with public key
2) infeasible to generate signature without private key
Cryptographic Signature
- Fixed length digest unique to message
Collision attacks on MD5 & SHA-1
MD5: PlayStation attack on public keys
SHA-1: Created two PDF files with same signature
Message Authentication Codes
- apply authentication scheme and secret key to message
Blockchain
Bitcoin
Global cryptocurrency and digital payment system