Exemple #1
0
        public static string Generate(DateTime time)
        {
            string key = KeyOpertaions.ShuffleKey(KeyOpertaions.GetValidSecretKey(time));

            return(key);
        }
Exemple #2
0
 public static bool IsValid(string key, DateTime time)
 {
     return(KeyOpertaions.DateTimeSum(time) == KeyOpertaions.GetSumOfKey(key));
 }
Exemple #3
0
        public static string Generate()
        {
            string key = KeyOpertaions.ShuffleKey(KeyOpertaions.GetValidSecretKey(NetTime.GetNetworkTime()));

            return(key);
        }
Exemple #4
0
 public static bool IsValid(string key)
 {
     return(KeyOpertaions.DateTimeSum(NetTime.GetNetworkTime()) == KeyOpertaions.GetSumOfKey(key));
 }