DataProtectorBinaryTokenExtensions class
namespace: Serenity assembly: Serenity.Net.Web
Extension methods for IDataProtector to support tokens created via a BinaryWriter.
public static class DataProtectorBinaryTokenExtensions
Public Members
| name | description |
|---|---|
| static ProtectBinary(…) | Encrypts a token populated by the given callback and returns the encrypted token in base64 URL encoded format. |
| static UnprotectBinary(…) | Decrypts the given token in base64 URL encoded format and returns a binary reader over the decrypted data. |