Felsökning.Utilities.Cryptographics 0.0.1-beta

An assembly to assist with easing cryptographic functions and/or to encourage their use.

This is a prerelease version of Felsökning.Utilities.Cryptographics.
Install-Package Felsökning.Utilities.Cryptographics -Version 0.0.1-beta
dotnet add package Felsökning.Utilities.Cryptographics --version 0.0.1-beta
<PackageReference Include="Felsökning.Utilities.Cryptographics" Version="0.0.1-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Felsökning.Utilities.Cryptographics --version 0.0.1-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This initial beta release includes a single class, EncryptedFile, which should be used to encourage more file encryption practices, when files are not in use.

Example usage:

using (EncryptedFile encryptedFile = new EncryptedFile(@"C:\temp\test.txt"))
{
    Console.WriteLine("Opening file...");
    using (FileStream fileStream = encryptedFile.DecryptAndOpen())
    {
          // Do stuff with file stream here.
    }

    // When scope is left and dispose is called, the file is automatically 
    // encrypted using a certificate owned by the operating user context;
    // so, for example, in the case of a Windows Service with a 
    // Local System Account, the LSA has the certificate 
    // required to decrypt the file.
}

Console.WriteLine("File should be encrypted, now.");
Console.ReadLine();

This initial beta release includes a single class, EncryptedFile, which should be used to encourage more file encryption practices, when files are not in use.

Example usage:

using (EncryptedFile encryptedFile = new EncryptedFile(@"C:\temp\test.txt"))
{
    Console.WriteLine("Opening file...");
    using (FileStream fileStream = encryptedFile.DecryptAndOpen())
    {
          // Do stuff with file stream here.
    }

    // When scope is left and dispose is called, the file is automatically 
    // encrypted using a certificate owned by the operating user context;
    // so, for example, in the case of a Windows Service with a 
    // Local System Account, the LSA has the certificate 
    // required to decrypt the file.
}

Console.WriteLine("File should be encrypted, now.");
Console.ReadLine();

Release Notes

Initial release of the first beta.

  • .NETCoreApp 2.0

    • No dependencies.
  • .NETCoreApp 2.1

    • No dependencies.
  • .NETFramework 2.0

    • No dependencies.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.7.1

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.1-beta 58 6/22/2019