Beispiel #1
0
 public static int GenerateCode(string securityToken, string modifier = null)
 {
     return(Totp.GenerateCode(Encoding.Unicode.GetBytes(securityToken), modifier));
 }
Beispiel #2
0
 public static bool ValidateCode(string securityToken, int code, string modifier = null)
 {
     return(Totp.ValidateCode(Encoding.Unicode.GetBytes(securityToken), code, modifier));
 }