pedrovasconcellos / Vasconcellos.Crypt

Crypto Library (AES, RSA, DES) developed in .NET Standard

Home Page:https://vasconcellos.solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vasconcellos.Crypt

License: MIT License

Copyright (c) 2018 Pedro Vasconcellos

Author: Pedro Henrique Vasconcellos

Creation Date: 28/12/2018

Description: Encryption developed in .NET Standard

Nuget Package Manager: Install-Package Vasconcellos.Crypt
Nuget .NET CLI: dotnet add package Vasconcellos.Crypt
Asymmetric Cryptography Algorithms: RSA
Symmetric Cryptography Algorithms: AES, DES

Use to initialize the static cryptography

using Vasconcellos.Crypt;
class Program
{
    static void YourMethod(string[] args)
    {
        // Note:
        ///If you initialize the class [CryptographyAES] using values generates automatically, 
        //store the randomly generated values in some safe place.
        var crypt = new CryptographyAES(
                key: CryptographyAES.GenerateKey(),
                iv: CryptographyAES.GenerateIV(),
                bits: CryptographyAES.BitsEnum.bit256
            );
    }
}

Example of how to encrypt

public string YourMethod(string word)
{
    return Vasconcellos.Crypt.CryptographyAES.Encrypt(word);
}

Example of how to decrypt

public string YourMethod(string word)
{
    return Vasconcellos.Crypt.CryptographyAES.Decrypt(word);
}

About

Crypto Library (AES, RSA, DES) developed in .NET Standard

https://vasconcellos.solutions

License:MIT License


Languages

Language:C# 100.0%