Hashing ใน Security Encryption
Hashing เป็น One-way Cryptographic Function Hash ไม่สามารถย้อนกลับได้ รู้ Output ไม่ได้ข้อมูลต้นฉบับ แต่เปรียบเทียบได้ว่าไฟล์ 2 ไฟล์เหมือนกันหรือไม่
การประยุกต์ใช้
- Information Security & Internet Authentication: เก็บ Password ใน Database อย่างปลอดภัย ปกป้องไฟล์/เอกสาร
- Digital Fingerprint: Hash Algorithms สร้าง Digital Fingerprint ของไฟล์ ยืนยันว่าไม่ถูกแก้ไขโดย Intruder/Virus
- OS Password Encryption: Hash Functions เข้ารหัส Password ใน OS บางตัว
- Document Integrity: Hash Functions ให้มาตรวัด Integrity ของเอกสาร
ลักษณะการทำงาน
Hashing = One-way Encryption ด้วย Special Key Hash ข้อมูลปริมาณหนึ่ง → Unique Output String แตกต่างสำหรับข้อมูลนั้น ไม่สามารถสร้างข้อมูลกลับจาก Output ได้ แต่สามารถ Re-hash ต้นฉบับเปรียบเทียบกับ Result String ได้
Application หลัก
1. Storing Passwords
เว็บไซต์เก็บ Username/Password Plaintext = ริскสูง หากโดนขโมย Database → เห็น Password ทันที (User ใช้ Password ซ้ำหลายที่ → ริスクเพิ่ม)
2. Digital Signature
วิธีคณิตศาสตร์ยืนยัน Authenticity และ Integrity ของข้อความ/ซอฟต์แวร์/เอกสารดิจิทัล ตรวจสอบชื่อผู้เขียน วันที่เวลา เนื้อหา ป้องกัน Tampering และ Impersonation
3. File Integrity
กระบวนการป้องกันไฟล์จากการเปลี่ยนแปลงไม่ได้รับอนุญาต (Cyber-attacks) Validated Integrity = ไฟล์ไม่ถูกเปลี่ยนหลังสร้าง/เก็บบัญชี Tool ใช้ Hashing: สร้าง/เปรียบเทียบ Cryptographic Keys ตรวจสอบการเปลี่ยนแปลง มี Automated Agent-less Monitoring ลดต้นทุน