public virtual string ProtectToken(SessionToken token, string purpose) { Requires.NotNull(token, "token"); Requires.NotNullOrEmpty(purpose, "purpose"); byte[] encoded = token.EncodeToken(); return Protect(encoded, purpose); }
public override string ProtectToken(SessionToken token, string purpose) { byte[] encoded = token.EncodeToken(); return purpose + "|" + Convert.ToBase64String(encoded); }