예제 #1
0
 public static string GetToken(this User user)
 {
     return(StringCipher.Encrypt(user.Email, "mysupersecretword"));
 }
예제 #2
0
 public static string GetEmailFromToken(this string token)
 {
     return(StringCipher.Decrypt(token, "mysupersecretword"));
 }