DataProtectorBinaryTokenExtensions class
namespace: Serenity assembly: Serenity.Net.Web
Extension methods for data protector to support tokens created via 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 return a binary reader with the decrypted data |