{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
Web

Hash

Cryptographic Hash

Hash (หรือ Hash Function) คือฟังก์ชันทางคณิตศาสตร์ที่แปลงข้อมูลขนาดใด ๆ ให้เป็นค่าความยาวคงที่ (hash value หรือ digest) ใช้สำหรับการตรวจสอบความสมบูรณ์ของข้อมูล การจัดเก็บรหัสผ่าน และโครงสร้างข้อมูล

รายละเอียดทางเทคนิค

คุณสมบัติของ cryptographic hash: ทิศทางเดียว (ไม่สามารถย้อนกลับได้), ต้านทานการชน (ยากที่จะหาสองอินพุตที่ให้ผลลัพธ์เดียวกัน), ผลลัพธ์คงที่ (อินพุตเดียวกันให้ผลลัพธ์เดียวกันเสมอ) อัลกอริทึมหลัก: MD5 (128 บิต — ไม่ปลอดภัยแล้ว), SHA-1 (160 บิต — เลิกใช้), SHA-256 (256 บิต — มาตรฐานปัจจุบัน), SHA-3 (Keccak — มาตรฐานใหม่ล่าสุด)

ตัวอย่าง

```javascript
// Hash: web API example
const response = await fetch('/api/resource');
const data = await response.json();
console.log(data);
```

เครื่องมือที่เกี่ยวข้อง

คำศัพท์ที่เกี่ยวข้อง