.NET 5.0 .NET Core 3.1 .NET Framework 3.5
dotnet add package Ridavei.FileCryption.Loader.FileStream --version
NuGet\Install-Package Ridavei.FileCryption.Loader.FileStream -Version
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="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ridavei.FileCryption.Loader.FileStream --version
#r "nuget: Ridavei.FileCryption.Loader.FileStream,"
#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=

// Install Ridavei.FileCryption.Loader.FileStream as a Cake Tool
#tool nuget:?package=Ridavei.FileCryption.Loader.FileStream&version=


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
                .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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 301 5/13/2022 293 5/5/2022
1.0.1 291 5/5/2022