Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion TechnitiumLibrary.Security.Cryptography/PBKDF2.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
Technitium Library
Copyright (C) 2024 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2026 Zafer Balkan (zafer@zaferbalkan.com)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -55,7 +56,7 @@ public static PBKDF2 CreateHMACSHA1(string password, byte[] salt, int iterationC

public static PBKDF2 CreateHMACSHA1(byte[] password, byte[] salt, int iterationCount)
{
return new PBKDF2(new HMACSHA256(password), salt, iterationCount);
return new PBKDF2(new HMACSHA1(password), salt, iterationCount);
}

public static PBKDF2 CreateHMACSHA1(string password, int saltLength, int iterationCount)
Expand Down