Générateur de hachage
Générez des hachages MD5, SHA-1, SHA-256, SHA-512.
À propos des fonctions de hachage
Une fonction de hachage prend une entrée de longueur quelconque et produit une sortie de longueur fixe. La même entrée produit toujours le même hachage. SHA-256 et SHA-512 sont recommandés pour les usages sécurisés. MD5 et SHA-1 sont compromis pour les usages cryptographiques mais toujours utilisés pour les sommes de contrôle.
FAQ
- Quel algorithme dois-je utiliser ?
- SHA-256 pour les usages sécurisés généraux. SHA-512 pour une sécurité renforcée. MD5/SHA-1 uniquement pour les sommes de contrôle non sécurisées (vérification d'intégrité de fichiers).
- Les hachages peuvent-ils être inversés ?
- Non. Les fonctions de hachage sont à sens unique. Il est impossible de reconstituer l'entrée à partir du hachage.
- Ces calculs sont-ils effectués localement ?
- Oui. Les variantes SHA utilisent l'API Web Crypto du navigateur. MD5 utilise une implémentation locale. Rien ne quitte votre navigateur.
À PROPOS DE CET OUTIL
Type or paste any text to instantly generate its MD5, SHA-1, SHA-256, or SHA-512 hash. A hash function takes input of any length and produces a fixed-size fingerprint — MD5 outputs 128 bits, SHA-1 outputs 160 bits, SHA-256 outputs 256 bits, and SHA-512 outputs 512 bits — and changing even a single character in the input produces a completely different hash. MD5 and SHA-1 are fast but cryptographically broken against deliberate collision attacks, so they're fine for checksums but unsuitable for security-sensitive use; SHA-256 and SHA-512 are the current standards for that. Used to verify file integrity, compare passwords, generate checksums, or test hashing behavior in an application, all computed locally in your browser.
COMMENT UTILISER
- Paste or type the text you want to hash.
- Select which algorithm to generate — MD5, SHA-1, SHA-256, or SHA-512.
- Read off the resulting hex-encoded hash string.
- Compare it character-for-character against a known-good hash to verify integrity.
- Copy the hash for use in a checksum file, commit message, or verification script.
- Change a single character in the input to see how completely the output hash changes.
CAS D'USAGE COURANTS
- Someone downloading a software installer compares its SHA-256 checksum against the one published on the vendor's site to confirm the file wasn't tampered with.
- A developer testing a password-hashing feature checks what SHA-256 or MD5 of a test string looks like before wiring up bcrypt in real code.
- A student learning about cryptography experiments with how a one-character change in input completely alters the hash output.
- A DevOps engineer generates a checksum for a config file to detect unintended changes between deployments.
- Someone verifying a Git commit or file signature manually hashes content to cross-check against a reported hash value.
CONSEILS ET ERREURS COURANTES
- MD5 and SHA-1 are considered cryptographically broken for security purposes (both have known collision attacks) — use them only for non-adversarial checksums, never for passwords or signatures.
- Never hash passwords with a plain hash function like SHA-256 alone for storage; real password storage needs a slow, salted algorithm like bcrypt, scrypt, or Argon2 to resist brute-force attacks.
- The same input always produces the same hash with a given algorithm, but different algorithms produce completely unrelated-looking outputs of different lengths for the same text.
- Even a single trailing space or newline changes the entire hash, so when comparing checksums make sure you're hashing the exact same bytes (watch for line-ending differences between operating systems).
AUTRES QUESTIONS
- Which hash algorithm should I use for verifying a downloaded file?
- SHA-256 is the current common standard for file integrity checks; MD5 and SHA-1 checksums still appear on older sites but are only meaningful against accidental corruption, not deliberate tampering.
- Can a hash be reversed back into the original text?
- No, a proper cryptographic hash function is one-way by design — you can only compare a hash of a candidate input against a known hash to check for a match, not derive the original text from the hash alone.
- Why do MD5 and SHA-1 still exist if they're broken?
- They're broken specifically against deliberate collision attacks (someone crafting two different inputs with the same hash), which matters for security contexts like certificates, but they're still fine for basic checksums where no adversary is trying to fool the check.
- Is hashing the same as encryption?
- No — encryption is reversible with the right key, while hashing is one-way and produces a fixed-length fingerprint with no key involved at all.