Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

easgnu/hash-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Hash Demo

Interactive cryptographic hashing tool built with the Web Crypto API.

SHA-256 SHA-384 SHA-512

What It Does

Enter any text (login + password), select a hashing algorithm, and instantly see the cryptographic hash output. Demonstrates one-way hash functions used in password storage, data integrity, and digital signatures.

Features

  • Three algorithms: SHA-256, SHA-384, SHA-512
  • Real-time hashing using the browser's native Web Crypto API
  • Copy to clipboard with one click
  • Educational breakdown of how cryptographic hashing works
  • Zero dependencies — pure HTML/CSS/JS
  • Dark theme with modern glassmorphism UI

Usage

git clone https://github.com/easgnu/hash-demo.git
cd hash-demo
open index.html

Or visit the live demo.

How Hashing Works

A cryptographic hash function takes any input and produces a fixed-length output (the "hash" or "digest"). Key properties:

  • Deterministic — Same input always produces the same hash
  • One-way — Cannot reverse-engineer the input from the hash
  • Collision-resistant — Extremely unlikely for two different inputs to produce the same hash
  • Avalanche effect — A tiny change in input completely changes the output

Tech

Single index.html file using the Web Crypto API (crypto.subtle.digest). No external libraries or frameworks.

License

MIT

About

Interactive cryptographic hashing tool — SHA-256, SHA-384, SHA-512 via the Web Crypto API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /