Encrypter_NET

Encrypt/Decrypt strings with Key and IV. Includes built-in password generator for .NET.


Keywords
aes, ctr, encrypt, encryption, password, security
License
MIT
Install
Install-Package Encrypter_NET -Version 1.0.0

Documentation

Encrypter for .NET

NuGet Version NuGet Downloads License

Encrypt / Decrypt strings with given Key and IV for .NET.

Target Framework

  • .NET 10 (net10.0)

Features

  • Encrypt / Decrypt string data with Key and IV.
  • AES-CTR mode with URL-safe Base64 output.
  • Built-in random password generator.
  • Prefix helper for generated passwords.

Usage

using EncrypterLibrary;

var key = Security.GeneratePassword(true, true, true, true, 32);
var iv = Security.GeneratePassword(true, true, true, true, 16);

var encrypted = "Hello my dear !".EncryptMyData(key!, iv!);
var decrypted = encrypted?.DecryptMyData(key!, iv!);

Notes

  • Key length must be exactly 32.
  • IV length must be exactly 16.
  • Invalid inputs return null.