SimpleEncryption.NET 1.0.0

dotnet add package SimpleEncryption.NET --version 1.0.0                
NuGet\Install-Package SimpleEncryption.NET -Version 1.0.0                
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="SimpleEncryption.NET" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleEncryption.NET --version 1.0.0                
#r "nuget: SimpleEncryption.NET, 1.0.0"                
#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 SimpleEncryption.NET as a Cake Addin
#addin nuget:?package=SimpleEncryption.NET&version=1.0.0

// Install SimpleEncryption.NET as a Cake Tool
#tool nuget:?package=SimpleEncryption.NET&version=1.0.0                

KeksEncryption

KeksEncryption is a simple C# solution for File, byte array and text Encryption/Decryption A lot of Cipher are avaliable from AES to Custom encryption protocols. .NEt Freamwork 3.5, compatible unity 5 and .NET Core

Getting Started

First download the project. You can include the project directly in your project. On open the solution and build the project 'KeksEncryptor', it will generate a .dll file. Just include the .DLL to your project's references.

Globale Usage

start by adding the following line :

using KeksEncryptor;

The Main entry point for any usage is the static 'Encryption' class. Before encrypt or decrypt anything, first choose a Cipher by typing

Encryption.SetEncryptor([EncryptorType], [optional : password]);

You can now Encrypt and Decrypt file, byte array or plaintext

Avaliable Encryptors

  • ReverseByte (no pass needed)
  • OneToZeroBit (no pass needed)
  • AES
  • CaesarChipher
  • Rijndael
  • SimplePasswordedCipher
  • CustomSBC
  • XOR

Encrypt / Decrypt Files

    Encryption.SetEncryptor(EncryptorType.AES, "password");
    Encryption.EncryptFile(path);
    Encryption.DecryptFile(path);

Encrypt / Decrypt byte[]

    Encryption.SetEncryptor(EncryptorType.OneToZeroBit);
    byte[] encrypted = Encryption.EncryptFile(new byte[]{ 0,1,2,3,4,5,6,7,8,9 });
    byte[] decrypted = Encryption.DecryptFile(byte[]);

Encrypt / Decrypt text (string)

    Encryption.SetEncryptor(EncryptorType.SimplePasswordedCipher, "password");
    string encryptedText = Encryption.Encrypt("test", EncodingType.UTF8);
    string decryptedText = Encryption.Encrypt(encryptedText, EncodingType.UTF8);

interSoftware Key and IV Sharing

When using AES/Rijndael Ciphers, you usualy can Decrypt only in the software that encrypt. KeksEncryption Allow you ro generate encypted binary (.bin) files that you can use to keep the Key and IV from a software to another. For exemple, AES/Rijndael encrypt a file in a C# console, and decrypt the same file in a Unity scipt.

Encryption's side :

    Encryption.SetEncryptor(EncryptorType.Rijndael, "password");
    // save the current Rijndael Key and IV
    Encryption.SaveCurrentKeyIV(path);

Decryption's side :

    Encryption.SetEncryptor(EncryptorType.Rijndael, "password"); // new Key and IV are now generated
    // Get Rijndael Key and IV
    Encryption.SetEncryptorKeyFromFile(path); // Key and IV are now the same that for the Encryption

Kévin Bouetard

Product Compatible and additional computed target framework versions.
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
1.0.0 12,668 8/15/2020

First Release of SimpleEncryption.NET