Comparer Bcrypt

Check a candidate password against a bcrypt hash without trimming spaces. Inputs above 72 UTF-8 bytes are rejected to prevent silent truncation.

Entrée: TexteRésultat: Texte

Saisie de texte

Exécuter pour voir le résultat

Exemples

Vérifier une phrase bcrypt Apache

Entrée

correct horse battery staple

Expected answer

Match

Hachage
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Détecter la casse sans afficher le mot de passe

Entrée

Correct horse battery staple

Expected answer

No match

Hachage
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Détecter un espace final copié

Entrée

correct horse battery staple 

Expected answer

No match

Hachage
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Accepter exactement 72 octets ASCII

Entrée

0123456789012345678901234567890123456789012345678901234567890123456789AB

Expected answer

Match

Hachage
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
Refuser le 73e octet sans tronquer

Entrée

0123456789012345678901234567890123456789012345678901234567890123456789ABC

Expected rejection

Message contains
Bcrypt accepts at most 72 UTF-8 bytes here; longer passwords are rejected to avoid silent truncation.
Hachage
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
Compter 24 caractères chinois comme 72 octets UTF-8

Entrée

茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶

Expected answer

Match

Hachage
$2y$04$obm1IVNBttgCKd9qusGWvOsXYXpnHe.aoyrZEEKXiJLsPhGTikrEu
Refuser un hash bcrypt incomplet

Entrée

public-example

Expected rejection

Message contains
Invalid bcrypt hash: use a complete 60-character $2a$, $2b$ or $2y$ hash with cost 04–31.
Hachage
$2b$04$broken
dolphin

Reproduce this published regression case and compare the exact result. Bcrypt compare: dolphin.

Entrée

dolphin

Expected answer

Match

Hachage
$2a$10$qyon0LQCmMxpFFjwWH6Qh.dDdhqntQh./IN0RXCc3XIMILuOYZKgK
invalid salt version

Reproduce this published regression case and compare the exact result. Bcrypt compare: invalid salt version.

Entrée

password

Expected rejection

Message contains
Invalid bcrypt hash:
Hachage
$ab$04$K.H1WlFDQ/iIo/PiprT/puwluJ5rzuSE5q8D/Fk3NuLgU2aXiGR9m

Outils associés

Hachage

Référence de l’opération

Voir la documentation technique originale (English)