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