Skip to content

Commit 16448b7

Browse files
committed
Changed the Password Protector to use the base64 representation of the hash
1 parent 7e7b3f5 commit 16448b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Elements.Security/Passwords/PasswordProtector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public ProtectedPassword Protect(string passwordToProtect, int? iterationCount =
8989

9090
string protectedPassword = passwordToProtect + salt;
9191
for (int iteration = 0; iteration < iterationCount; iteration++) {
92-
protectedPassword = this._hasher.ComputeHash(protectedPassword);
92+
protectedPassword = this._hasher.ComputeHash(protectedPassword, true);
9393
}
9494

9595
return new ProtectedPassword(protectedPassword, salt, iterationCount.Value);

0 commit comments

Comments
 (0)