Skip to content

A simple library that makes it easier to do few basic crypto tasks.

License

Notifications You must be signed in to change notification settings

tamimsalem/CryptoN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoN

A simple class that makes it easier to do few basic crypto tasks.

At this stage, its quite basic, and its hardcoded to use Rijndael as a symmetric algorithm.

Functionality so far:

  • Encrypting/Decrypting byte arrays.
  • Encrypting/Decrypting strings.
  • Encrypting/Decrypting files.
  • Encrypting/Decrypting streams.
  • Random Key and IV generation
  • Extension methods to convert back and to Base64 and Hex Encoded strings

Plans for future expansion are underway.

#Nuget

You can find the build package on nuget here: https://www.nuget.org/packages/CryptoN

#Sample Code

var key = CryptoMonkey.GenerateRandomKey(AllowedKeySizes.KL_192);
var iv = CryptoMonkey.GenerateRandomIv(AllowedBlockSizes.BL_128);

var monkey = new CryptoMonkey(key, iv);

var testString = "Hello World";

var encryptedBase64String = monkey.EncryptString(testString);

var decryptedString = monkey.DecryptString(encryptedBase64String);

About

A simple library that makes it easier to do few basic crypto tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages