Ridavei.FileCryption.Loader.FileStream
1.0.1.2
.NET 5.0
.NET Core 3.1
.NET Framework 3.5
dotnet add package Ridavei.FileCryption.Loader.FileStream --version 1.0.1.2
NuGet\Install-Package Ridavei.FileCryption.Loader.FileStream -Version 1.0.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ridavei.FileCryption.Loader.FileStream" Version="1.0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ridavei.FileCryption.Loader.FileStream --version 1.0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ridavei.FileCryption.Loader.FileStream, 1.0.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ridavei.FileCryption.Loader.FileStream as a Cake Addin
#addin nuget:?package=Ridavei.FileCryption.Loader.FileStream&version=1.0.1.2
// Install Ridavei.FileCryption.Loader.FileStream as a Cake Tool
#tool nuget:?package=Ridavei.FileCryption.Loader.FileStream&version=1.0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ridavei.FileCryption.Loader.FileStream
Builder extension for loading file through FileStream for file decryption/encryption.
Example of use
using System.IO;
using System.Net.Mime;
using Ridavei.FileCryption;
using Ridavei.FileCryption.Loader.FileStream;
namespace TestProgram
{
class Program
{
public static void Main (string[] args)
{
ContentType contentType;
string fileInfo = "YOUR_PATH_TO_THE_FILE";
string password;
/*
Setting the variables above
*/
using (Stream decryptedFile = FileDecryptionBuilder
.CreateBuilder()
.UseFileStreamLoader()
.AddDecryptionMethod(contentType, DecryptionMethod)
.Decrypt(fileInfo, contentType, password))
{
//Saving the file
}
}
private static Stream DecryptionMethod(Stream file, string password)
{
//Return decrypted Stream
}
}
}
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp3.1 |
.NET Framework | net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Ridavei.FileCryption (>= 1.0.2.2)
-
.NETFramework 3.5
- Ridavei.FileCryption (>= 1.0.2.2)
-
.NETFramework 4.5.2
- Ridavei.FileCryption (>= 1.0.2.2)
-
.NETFramework 4.6.2
- Ridavei.FileCryption (>= 1.0.2.2)
-
.NETFramework 4.7.2
- Ridavei.FileCryption (>= 1.0.2.2)
-
.NETFramework 4.8
- Ridavei.FileCryption (>= 1.0.2.2)
-
net5.0
- Ridavei.FileCryption (>= 1.0.2.2)
-
net6.0
- Ridavei.FileCryption (>= 1.0.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.