fm.Extensions.DataProtection by freeMartin

<PackageReference Include="fm.Extensions.DataProtection" Version="3.0.0" />

.NET API 23,040 bytes



Legend

  •  Assembly
  •  Namespace
  •  Class
  •  Interface or Abstract Class
  •  Static Class
  •  Struct
  •  Enum
  •  Delegate
  •  Grayed out == non-public

 fm.Extensions.DataProtection 3.0.0

Makes using the Microsoft.AspNet.DataProtection package more convenient, especially when using IAuthenticatedEncryptor Commonly used types: AuthenticatedEncryptorExtensions EncryptorEncoding SecretKey Examples: SecretKey key = new SecretKey(new Secret(EncryptorEncoding.UTF8.GetBytes("Password")), this.GetRequiredService<IAuthenticatedEncryptorFactory>()); IAuthenticatedEncryptor encryptor = key.CreateEncryptor(); encryptor.DecryptToString(encryptor.Encrypt("Input", "AAD"), "AAD").ShouldBe("Input");

<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
  <metadata>
    <id>fm.Extensions.DataProtection</id>
    <version>3.0.0</version>
    <authors>freeMartin</authors>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <icon>Logo.png</icon>
    <projectUrl>https://www.nuget.org/packages/fm.Extensions.DataProtection</projectUrl>
    <description>Makes using the Microsoft.AspNet.DataProtection package more convenient, especially when using IAuthenticatedEncryptor

Commonly used types:
AuthenticatedEncryptorExtensions
EncryptorEncoding
SecretKey

Examples:
SecretKey key = new SecretKey(new Secret(EncryptorEncoding.UTF8.GetBytes("Password")), this.GetRequiredService&lt;IAuthenticatedEncryptorFactory&gt;());
IAuthenticatedEncryptor encryptor = key.CreateEncryptor();

encryptor.DecryptToString(encryptor.Encrypt("Input", "AAD"), "AAD").ShouldBe("Input");</description>
    <releaseNotes>Upgrade to .NET 5.0</releaseNotes>
    <tags>Extensions DataProtection Encryption</tags>
    <dependencies>
      <group targetFramework=".NETStandard2.0">
        <dependency id="Microsoft.AspNetCore.DataProtection" version="5.0.0" exclude="Build,Analyzers" />
      </group>
    </dependencies>
  </metadata>
</package>