Code Monkey home page Code Monkey logo

botcrypt's Introduction

BotCrypt

Simple way to Encrypt or Dycrypt String and Files!

GitHub issues GitHub forks GitHub stars GitHub license logo

Installation Methods

  • Search for "BotCrypt" at Nuget Package Manager in Visual Studio.
  • Run "Install-Package BotCrypt" at Package manager Console in Visual Studio.
  • Run "dotnet add package BotCrypt" at your Command Line.

Usage

  • First add Package Refrence
...
using BotCrypt
...
  • Encrypting String
...
string Text = "Hello BotCrypt!";
string Password = "EncryptionPassword";
string EncryptedText = Crypter.EncryptString(Password, Text); // EGhw8RQ35r1AGg4fBuuKAQ==
...
  • Decrypting String
...
string EncryptedText = "EGhw8RQ35r1AGg4fBuuKAQ==";
string Password = "EncryptionPassword";
string Text = Crypter.DecryptString(Password, EncryptedText); // Hello BotCrypt!
...
  • Encrypting File
...
string FilePath = "Image.png";
byte[] FileBytes = File.ReadAllBytes(FilePath);
string Password = "EncryptionPassword";
string EncryptedFile = Crypter.EncryptByte(Password, FileBytes);

//Updating File With Encryped File
File.WriteAllText(FilePath, EncryptedFile);
...
  • Decrypting File
...
string FilePath = "Image.png";
string FileContent = File.ReadAllText(FilePath);
string Password = "EncryptionPassword";
byte[] DecryptedFile = Crypter.DecryptByte(Password, FileContent);

//Updating File With Decryped File
File.WriteAllBytes(FilePath, DecryptedFile);
...

©2022, All rights reserved, BotCrypt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.