Exemplos
Verificar uma frase bcrypt do Apache
Entrada
correct horse battery stapleExpected answer
Match
Match
- Hash
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Detectar maiúsculas sem exibir a senha
Entrada
Correct horse battery stapleExpected answer
No match
No match
- Hash
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Detectar um espaço final copiado
Entrada
correct horse battery staple Expected answer
No match
No match
- Hash
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
Aceitar exatamente 72 bytes ASCII
Entrada
0123456789012345678901234567890123456789012345678901234567890123456789ABExpected answer
Match
Match
- Hash
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
Recusar o byte 73 sem truncar
Entrada
0123456789012345678901234567890123456789012345678901234567890123456789ABCExpected rejection
Message containsBcrypt accepts at most 72 UTF-8 bytes here; longer passwords are rejected to avoid silent truncation.- Hash
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
Contar 24 caracteres chineses como 72 bytes UTF-8
Entrada
茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶Expected answer
Match
Match
- Hash
$2y$04$obm1IVNBttgCKd9qusGWvOsXYXpnHe.aoyrZEEKXiJLsPhGTikrEu
Recusar hash bcrypt incompleto
Entrada
public-exampleExpected rejection
Message containsInvalid 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.
Entrada
dolphinExpected answer
Match
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.
Entrada
passwordExpected rejection
Message containsInvalid bcrypt hash:- Hash
$ab$04$K.H1WlFDQ/iIo/PiprT/puwluJ5rzuSE5q8D/Fk3NuLgU2aXiGR9m