SimpleFileEncryption 1.0.1
See the version list below for details.
dotnet add package SimpleFileEncryption --version 1.0.1
NuGet\Install-Package SimpleFileEncryption -Version 1.0.1
<PackageReference Include="SimpleFileEncryption" Version="1.0.1" />
<PackageVersion Include="SimpleFileEncryption" Version="1.0.1" />
<PackageReference Include="SimpleFileEncryption" />
paket add SimpleFileEncryption --version 1.0.1
#r "nuget: SimpleFileEncryption, 1.0.1"
#:package SimpleFileEncryption@1.0.1
#addin nuget:?package=SimpleFileEncryption&version=1.0.1
#tool nuget:?package=SimpleFileEncryption&version=1.0.1
File encryption library that allows you to add custom metadata to encrypted files
Usage:
// Encrypt file at "filePath", with custom metadata
ISimpleFileEncryptionProvider encryption = new SimpleFileEncryptionProvider();
byte[] content = File.ReadAllBytes(filePath);
byte[] cipher = encryption.Encrypt<dynamic>(new { Filename = "Filename.txt" }, content, "passwd");
// Decrypt cipher and read metadata
dynamic meta;
byte[] decrypted = encryption.Decrypt<dynamic>(cipher, "passwd", out meta); // throws WrongPasswordException
Console.WriteLine(meta.Filename.ToString()); // "Filename.txt"
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Newtonsoft.Json (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.