Added a password rule engine

This commit is contained in:
TheXamlGuy
2024-06-09 13:10:57 +01:00
parent e8372f875f
commit 84e89e1c47
12 changed files with 199 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
namespace Bitvault;
public class LengthRule :
IPasswordRule
{
public int CalculateScore(string password) =>
password.Length >= 8 ? 5 : 0;
}