Ejemplo n.º 1
0
 public static string EncryptImpersonateKey(int userID)
 {
     return(CryptHelper.Encrypt(string.Format("{0}_{1}", userID, DateTime.UtcNow)));
 }
Ejemplo n.º 2
0
 public static string DecryptImpersonateKey(string encryptedKey)
 {
     return(CryptHelper.Decrypt(encryptedKey));
 }
Ejemplo n.º 3
0
 public static string EncryptImpersonateKeySetPW(int userID, Guid otpKey)
 {
     return(CryptHelper.Encrypt(string.Format("{0}:{1}", userID, otpKey.ToString())));
 }