Adds PBKDF2 protection for account passwords. (#122)
This commit is contained in:
parent
1ee6830637
commit
29467a3ed9
9 changed files with 209 additions and 172 deletions
8
Projects/Scripts/Accounting/IPasswordProtection.cs
Normal file
8
Projects/Scripts/Accounting/IPasswordProtection.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Server.Accounting
|
||||
{
|
||||
public interface IPasswordProtection
|
||||
{
|
||||
string EncryptPassword(string plainPassword);
|
||||
bool ValidatePassword(string encryptedPassword, string plainPassword);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue