diff --git a/README.md b/README.md index 975b7a7..fbaddc5 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,26 @@ public class Startup } ``` +##### Usage with custom key: +```csharp +... +app.UseAesDataProtectorProvider("my key"); +... +``` + +##### Enabling usage with FIPS-compliant CSP provider: +```csharp +... +app.UseAesDataProtectorProvider(null, true); +... +``` +or +```csharp +... +app.UseAesDataProtectorProvider("my key", true); +... +``` + ### Usage example with cookie authentication