Twileloop.ExpressSecurity 1.0.0

Prefix Reserved
Suggested Alternatives

Twileloop.Security

Additional Details

This package has been migrated to: Twileloop.Security
The old one is no more maintained by the Authors. Visit https://packages.twileloop.com/ for new packages

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

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

Express.Security

Express Security is an easy to use wrapper for security implementations inside your .NET applications.

The latest version of ExpressSecurity abstracts 2 popular hashing and 2 popular encription mechanism that can be used anywhere on your application. With lot of ease. APIs exposed and clear consistant and designed for quick usage.

Express Security is light weight and easy to use and supports .NET Core platform

alt text

Package Manager

The library is available free on NuGet

Versions

Version Information | Version | Change log | ------ | ------ | v1.1 | Supports SHA Hashing, BCript Hashing, AES Encription, RSA Encription

Repository Contents

This repo maintains 2 projects. The main library and a demo project to implement it

PreRequesties

No prerequesties to run the demo. Buld it and run it

Usage

SHA256 and SHA512 Hashing

Express Encript wrapper currently supports 2 Hashing modules. SHA and BCript based on Blowfish algorithm

var password = "sangeeth123";

var hashText1 = Hashing.SHA256(password);
var hashText2 = Hashing.SHA512(password);

BCript Hashing + (With Salt and Work Factor)

BCript is designed over blowfish algorithm. Express Security wraps its complexities and exposes an easy to use API

var password = "sangeeth123";
var workFactor = 13;

var salt = BlowFishHashing.GenerateSalt(int.Parse(workFactor));
var hashText = BlowFishHashing.HashString(password, salt);

AES File Encription/Description

AES is an symetric key encription. Which means the file will be encripted using a key and descripted using the same key. AES is suted for locking files. It mostly is used for file encriptions Express Security wraps AES security with simple API

var filePassword = "sangeeth123";
var inputPath = "C:\sample.txt";
var outputPath = "C:\sample.txt.aes";

//AES Encription
AESEncription.AES_Encrypt(inputPath, password);
//AES Description
AESEncription.AES_Decrypt(outputPath, password);

RSA Text Encription/Description

RSA is an asymetric key encription. Which means the text will be encripted using a public key and descripted using a private key. RSA is suted for sending sensitive data. It mostly is used for key/string encriptions Express Security wraps RSA security with simple API

var input = "sangeeth"
var publicKeyPath = "C:\public_key.rsa";
var privateKeyPath = "C:\private_key.rsa";

//Generate Keys
RSAEncription.MakeKey(publicKeyPath, privateKeyPath);

//RSA Encription
var ciphertext = RSAEncription.EncryptString(input, publicKeyPath);
//RSA Description
input = RSAEncription.DecryptString(ciphertext, privateKeyPath);
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 netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

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 5,235 7/31/2020 1.0.0 is deprecated because it is no longer maintained.

Initial Commit