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