KhKhDoumi 1.0.1
See the version list below for details.
dotnet add package KhKhDoumi --version 1.0.1
NuGet\Install-Package KhKhDoumi -Version 1.0.1
<PackageReference Include="KhKhDoumi" Version="1.0.1" />
<PackageVersion Include="KhKhDoumi" Version="1.0.1" />
<PackageReference Include="KhKhDoumi" />
paket add KhKhDoumi --version 1.0.1
#r "nuget: KhKhDoumi, 1.0.1"
#addin nuget:?package=KhKhDoumi&version=1.0.1
#tool nuget:?package=KhKhDoumi&version=1.0.1
KhKhDoumi contains helper methods for such tasks as encryption/decryption, hashing, random generator. Supports .Net Core 2.2.
Main Features (initial release):
- encrypts/decrypts data, using few encryption scheme
- gets text's hash
- generates random number of given length
- generates random password of given length (including or excluding uppercase and lowercase letters, special characters and digits)
- supports international charset
Usage scenario:
// Creating new object for encryption / decryption var enDec = new EnDec("1eft$@lt", "r!gHt$@!t");
// Encrypting / decrypting data var encrypted = enDec.Encrypt("Hello, world!", EncryptionScheme.AES); var decrypted = enDec.Decrypt(encrypted, EncryptionScheme.AES);
// List for bulk operations var list = new List<string>() { "first text", "second text", "third text" };
// Encrypting / decrypting lists (bulk operations) var encryptedList = enDec.BulkEncrypt(list, EncryptionScheme.AES); var decryptedList = enDec.BulkDecrypt(encryptedList, EncryptionScheme.AES);
// Creating new object for hashing var hash = new Hash("my$@1t");
// Hashing // string GetHash(string text, HashingScheme scheme); var hashedValue = hash.GetHash("Hello, world!", HashingScheme.MD5Monstrous);
// Getting random values // int GetRandom(int length); var randomNum = KhKhRandom.GetRandom(5); // returns random number of length 5 (10000 - 99999)
// Getting simple combination // Length must be in range 0..20 // string GetCombination(int length); var randomComb = KhKhRandom.GetCombination(5); // returns random string of length 5
// Getting combination with settings without formatting // string GetCombination(int length, bool upperCase, bool lowerCase, bool numeric, bool specChars); var randStrWithoutFormatting = KhKhRandom.GetCombination(6, true, true, true, true);
// Getting combination with settings, applying formatting // string GetCombination(int length, bool upperCase, bool lowerCase, bool numeric, bool specChars, string format); var randStrWithFormatting = KhKhRandom.GetCombination(6, true, true, true, true, "nunlsu"); // returns [digit][upper][digit][lower][specChar][upper]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.2
- Microsoft.NETCore.App (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release containing simple encryption/decryption, hashing and random generator methods