Bcrypt vergleichen

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

Eingabe: TextErgebnis: Text

Texteingabe

Ausführen, um das Ergebnis zu sehen

Beispiele

Eine Apache-bcrypt-Passphrase prüfen

Eingabe

correct horse battery staple

Expected answer

Match

Hash
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Großschreibung erkennen, ohne das Passwort auszugeben

Eingabe

Correct horse battery staple

Expected answer

No match

Hash
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Ein kopiertes Leerzeichen erkennen

Eingabe

correct horse battery staple 

Expected answer

No match

Hash
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Genau 72 ASCII-Bytes akzeptieren

Eingabe

0123456789012345678901234567890123456789012345678901234567890123456789AB

Expected answer

Match

Hash
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
Das 73. Byte ohne Kürzung ablehnen

Eingabe

0123456789012345678901234567890123456789012345678901234567890123456789ABC

Expected rejection

Message contains
Bcrypt accepts at most 72 UTF-8 bytes here; longer passwords are rejected to avoid silent truncation.
Hash
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
24 chinesische Zeichen als 72 UTF-8-Bytes zählen

Eingabe

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

Expected answer

Match

Hash
$2y$04$obm1IVNBttgCKd9qusGWvOsXYXpnHe.aoyrZEEKXiJLsPhGTikrEu
Unvollständigen bcrypt-Hash ablehnen

Eingabe

public-example

Expected rejection

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

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

Eingabe

dolphin

Expected answer

Match

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

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

Eingabe

password

Expected rejection

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

Ähnliche Werkzeuge

Hashing

Referenz zur Operation

Technische Originaldokumentation ansehen (English)