Skip to content

Encrypt & Decrypt Strings and Bytes with Password

License

Notifications You must be signed in to change notification settings

PawanOsman/BotCrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Encrypt & Decrypt Strings and Bytes with Password

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages