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
|
|
@ -9,13 +9,6 @@ using Server.Regions;
|
|||
|
||||
namespace Server.Misc
|
||||
{
|
||||
public enum PasswordProtection
|
||||
{
|
||||
None,
|
||||
Crypt,
|
||||
NewCrypt
|
||||
}
|
||||
|
||||
public class AccountHandler
|
||||
{
|
||||
private static readonly int MaxAccountsPerIP = 1;
|
||||
|
|
@ -23,8 +16,6 @@ namespace Server.Misc
|
|||
private static readonly bool RestrictDeletion = !TestCenter.Enabled;
|
||||
private static readonly TimeSpan DeleteDelay = TimeSpan.FromDays(7.0);
|
||||
|
||||
public static PasswordProtection ProtectPasswords = PasswordProtection.NewCrypt;
|
||||
|
||||
private static readonly CityInfo[] StartingCities =
|
||||
{
|
||||
new CityInfo("New Haven", "New Haven Bank", 1150168, 3667, 2625, 0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue