أمثلة
تحقق من عبارة bcrypt من Apache
المدخلات
correct horse battery stapleExpected answer
Match
Match
- تجزئة
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
اكتشف حالة الأحرف دون عرض كلمة المرور
المدخلات
Correct horse battery stapleExpected answer
No match
No match
- تجزئة
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
اكتشف مسافة زائدة عند النسخ
المدخلات
correct horse battery staple Expected answer
No match
No match
- تجزئة
$2y$04$61rxEDaR3PSKMDB/eWLl/urGkJ9Tv9DqmuoL2gfueVB.Ccqbw/JHq
اقبل 72 بايت ASCII بالضبط
المدخلات
0123456789012345678901234567890123456789012345678901234567890123456789ABExpected answer
Match
Match
- تجزئة
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
ارفض البايت 73 دون اقتطاع
المدخلات
0123456789012345678901234567890123456789012345678901234567890123456789ABCExpected rejection
Message containsBcrypt accepts at most 72 UTF-8 bytes here; longer passwords are rejected to avoid silent truncation.- تجزئة
$2y$04$SVHoaZ/YvW3oYrcmsXsZ9epfQq88AwEZG/Vw7.aYp6gRxrSoWFAnq
احسب 24 حرفاً صينياً كـ72 بايت UTF-8
المدخلات
茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶茶Expected answer
Match
Match
- تجزئة
$2y$04$obm1IVNBttgCKd9qusGWvOsXYXpnHe.aoyrZEEKXiJLsPhGTikrEu
ارفض تجزئة bcrypt غير المكتملة
المدخلات
public-exampleExpected rejection
Message containsInvalid bcrypt hash: use a complete 60-character $2a$, $2b$ or $2y$ hash with cost 04–31.- تجزئة
$2b$04$broken
dolphin
Reproduce this published regression case and compare the exact result. Bcrypt compare: dolphin.
المدخلات
dolphinExpected answer
Match
Match
- تجزئة
$2a$10$qyon0LQCmMxpFFjwWH6Qh.dDdhqntQh./IN0RXCc3XIMILuOYZKgK
invalid salt version
Reproduce this published regression case and compare the exact result. Bcrypt compare: invalid salt version.
المدخلات
passwordExpected rejection
Message containsInvalid bcrypt hash:- تجزئة
$ab$04$K.H1WlFDQ/iIo/PiprT/puwluJ5rzuSE5q8D/Fk3NuLgU2aXiGR9m