Skip to content

Commit 750d068

Browse files
committed
Temporary fix for wrong calculation/format.
1 parent 9dde95e commit 750d068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/DECHash.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5211,8 +5211,8 @@ class function THash_BCrypt.GetCryptHash(
52115211
// b:= TEncoding.UTF8.GetBytes(Password);
52125212

52135213
// b := Format.Encode([85, 126, 148, 243, 75, 242, 134, 232, 113, 154, 38, 190, 148, 172, 30, 22, 217, 94, 249, 248, 25, 222, 224]);
5214-
b := Hash.CalcBytes(b));
5215-
5214+
b := Hash.CalcBytes(b);
5215+
b := Format.Encode(b);
52165216

52175217
Result := TEncoding.ASCII.GetString(b);
52185218
// [85, 126, 148, 243, 75, 242, 134, 232, 113, 154, 38, 190, 148, 172, 30, 22, 217, 94, 249, 248, 25, 222, 224];

0 commit comments

Comments
 (0)