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