Snefru Hash Generator

Generate Snefru hashes — Xerox PARC's historic hash function

Share:

Snefru Hash Generator

Generate Snefru hashes — an early landmark in cryptographic design

Snefru is a cryptographic hash function designed by Ralph Merkle at Xerox PARC in 1990, named after the Egyptian Pharaoh Sneferu. It can produce either 128-bit or 256-bit hash values. Snefru is historically significant as one of the first hash functions designed using the Merkle-Damgård construction, which later became the basis for MD5, SHA-1, and SHA-2. While broken for security use, Snefru remains important for understanding hash function evolution.

What is Snefru?

Snefru processes input in 512-bit blocks (for 128-bit output) or 384-bit blocks (for 256-bit output) using a series of reversible rounds with S-box-based mixing. The original 2-round version was quickly broken by Eli Biham and Adi Shamir using differential cryptanalysis. The strengthened 8-round version is more resistant but still not considered secure by modern standards.

✅ Snefru Characteristics

  • Historical Pioneer: One of the first Merkle-Damgård hash functions
  • 256-bit Output: Produces a 64-character hexadecimal hash
  • Xerox PARC: Designed by Ralph Merkle, inventor of Merkle trees
  • Educational Value: Key to understanding hash function evolution

📊 Use Cases

  • Legacy Systems: Compatibility with older Xerox systems
  • Education: Teaching cryptographic hash function design
  • Research: Studying differential cryptanalysis resistance
  • Historical Analysis: Understanding hash evolution from Snefru to SHA-2

⚠️ Security Warning

Snefru is BROKEN for cryptographic purposes. Differential cryptanalysis by Biham and Shamir found collisions in the 2-round version, and attacks exist on the higher-round versions. Do NOT use Snefru for security. Use SHA-256 or SHA-512 instead.

🔄 Snefru vs Modern Algorithms

🔵

Snefru

128/256-bit, S-box based

Broken — historical interest only

🟢

MD5

128-bit output

Also broken, but more widely used

🟡

SHA-256

256-bit output

Secure modern standard

❓ Frequently Asked Questions

Why is Snefru named after a pharaoh?

Ralph Merkle named it after the Egyptian Pharaoh Sneferu, following a tradition of naming cryptographic algorithms after Egyptian elements (similar to how Khufu and Khafre block ciphers were named).

How was Snefru broken?

Eli Biham and Adi Shamir applied differential cryptanalysis to find collisions in the 2-round version. Their attack was later extended to higher round counts, demonstrating fundamental weaknesses in the design.

What's Snefru's legacy?

Snefru helped establish the Merkle-Damgård construction as the dominant paradigm for hash function design. Its vulnerabilities also spurred research into differential cryptanalysis resistance.