EasyEncrypt 1.0.1.1

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package EasyEncrypt --version 1.0.1.1
NuGet\Install-Package EasyEncrypt -Version 1.0.1.1
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="EasyEncrypt" Version="1.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyEncrypt --version 1.0.1.1
#r "nuget: EasyEncrypt, 1.0.1.1"
#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 EasyEncrypt as a Cake Addin
#addin nuget:?package=EasyEncrypt&version=1.0.1.1

// Install EasyEncrypt as a Cake Tool
#tool nuget:?package=EasyEncrypt&version=1.0.1.1

Welcome to the EasyEncrypt documentation!

First download the nuget package and import the namespace "EasyEncrypt".

Examples of encrypting/decrypting a string or byte[]

Example of encrypting a string with Aes encryption:

string EncryptedString = new Encryption(Aes.Create(), PASSWORD, SALT).Encrypt(INPUT);
string EncryptedString = new Encryption(Aes.Create(), KEYSIZE, PASSWORD, SALT).Encrypt(INPUT);

//Don't work with a byte[]
string EncryptedString = new Encryption(Aes.Create(), PASSWORD, SALT).Encrypt(INPUT, Encoding.Unicode);

Example of decrypting a string with Aes encryption:

string DecryptedString = new Encryption(Aes.Create(), PASSWORD, SALT).Decrypt(ENCRYPTED_INPUT);
string DecryptedString = new Encryption(Aes.Create(), KEYSIZE, PASSWORD, SALT).Decrypt(ENCRYPTED_INPUT);

//Don't work with a byte[]
string DecryptedString = new Encryption(Aes.Create(), PASSWORD, SALT).Decrypt(ENCRYPTED_INPUT,Encoding.Unicode);

Example of doing this with the other algorithms:

EncryptedString = new Encryption(TripleDES.Create(), PASSWORD, SALT).Encrypt(INPUT);
DecryptedString = new Encryption(TripleDES.Create(), PASSWORD, SALT).Decrypt(ENCRYPTEDINPUT);

EncryptedString = new Encryption(DES.Create(), PASSWORD, SALT).Encrypt(INPUT);
DecryptedString = new Encryption(DES.Create(), PASSWORD, SALT).Decrypt(ENCRYPTEDINPUT);

EncryptedString = new Encryption(RC2.Create(), PASSWORD, SALT).Encrypt(INPUT);
DecryptedString = new Encryption(RC2.Create(), PASSWORD, SALT).Decrypt(ENCRYPTEDINPUT);

EncryptedString = new Encryption(Rijndael.Create(), PASSWORD, SALT).Encrypt(INPUT);
DecryptedString = new Encryption(Rijndael.Create(), PASSWORD, SALT).Decrypt(ENCRYPTEDINPUT);

Encrypting with an already configured algorithm:

SymmetricAlgorithm Algorithm = Aes.Create();
Algorithm.Key = Encryption.CreateKey(Algorithm,PASSWORD,SALT);
Encryption EasyEncryption = new Encryption(Algorithm);

EncryptedString = EasyEncryption.Encrypt(INPUT);
DecryptedString = EasyEncryption.Decrypt(ENCRYPTEDINPUT);

Encrypting with an already created key:

Encryption EasyEncryption = new Encryption(Aes.Create(), Encryption.CreateKey(KEYSIZE, PASSWORD, SALT));
Encryption EasyEncryption = new Encryption(Aes.Create(), Encryption.CreateKey(ALGORITHM, PASSWORD, SALT));

File encryption.

The fileEncryption class constructors are the same as the constructors for the Encryption class.

Example of encrypting decrypting a file:

FileEncryption EaseEncryption = new FileEncryption(Aes.Create(),PASSWORD,SALT);
EaseEncryption.Encrypt(INPUTFILE1,OUTPUTFILE1);
EaseEncryption.Encrypt(INPUTFILE2, OUTPUTFILE2);

INPUTFILE1 is the location of the file to encrypt. OUTPUTFILE1 is the location where to save the encrypted file.

INPUTFILE2 is the location of the encrypted file. OUTPUTFILE2 is the location where to save the decrypted file.

Overloads of all functions

Overloads of the constructor:

Encryption(SymmetricAlgorithm Algorithm)
Encryption(SymmetricAlgorithm Algorithm, byte[] Key)
Encryption(SymmetricAlgorithm Algorithm, string Password, string Salt, int Iterations = 10000)
Encryption(SymmetricAlgorithm Algorithm, int KeySize, string Password, string Salt, int Iterations = 10000)

Overloads of the CreateKey method(NOTE, THIS METHOD IS STATIC):

static byte[] CreateKey(int KeySize, string Password, string Salt, int Iterations = 10000)
static byte[] CreateKey(SymmetricAlgorithm Algorithm, string Password, string Salt, int Iterations = 10000)

Overloads of the Encryption class:

string Encrypt(string Text)
string Encrypt(string Text, Encoding Encoder)
byte[] Encrypt(byte[] Data)

string Decrypt(string Text)
string Decrypt(string Text, Encoding Encoder)
byte[] Decrypt(byte[] Data)

Overloads of the FileEncryption class:

Encrypt(string InputFile, string OutputFile, int BufferSize = 1048576)
Decrypt(string InputFile, string OutputFile, int BufferSize = 1048576)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EasyEncrypt:

Package Downloads
FastPushClient.NET

FastLivePush Server SDK for C#

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated

- Changed comments