示例#1
0
        async Task <bool> CheckRegisteration()
        {
            settings = _settingsService.Get();
            await Task.Delay(2000);

            if (Cryptor.Decrypt(settings.Serial) == Finger.Value)
            {
                return(true);
            }
            return(false);
        }
示例#2
0
 public static string GetSerial()
 {
     return(Cryptor.Encrypt(Finger.Value));
 }
示例#3
0
 public static bool IsValidSerial(string serial)
 {
     return(Finger.Value == Cryptor.Decrypt(serial));
 }