Tools.Encrypt
1.0.0
Suggested Alternatives
Additional Details
The Nuget package has been integrated.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Tools.Encrypt --version 1.0.0
NuGet\Install-Package Tools.Encrypt -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tools.Encrypt" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tools.Encrypt" Version="1.0.0" />
<PackageReference Include="Tools.Encrypt" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tools.Encrypt --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tools.Encrypt, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Tools.Encrypt&version=1.0.0
#tool nuget:?package=Tools.Encrypt&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tools.Encrypt
A C# library for easier encryption.
Attention:
- 1.0.0 is for .NET 6.0
Usage
Text Encryptor
Base
Base baseInstance = new Base();
string text = "Hello, World!";
string encryptedBase16 = baseInstance.EncryptBase16(text);
string encryptedBase64 = baseInstance.EncryptBase64(text);
Console.WriteLine("Original text: " + text);
Console.WriteLine("Encrypted Base16: " + encryptedBase16);
Console.WriteLine("Encrypted Base64: " + encryptedBase64);
SHA
SHA sha = new SHA();
string text = "Hello, World!";
string sha1Hash = sha.EncryptSHA1(text);
Console.WriteLine($"SHA-1: {sha1Hash}");
string sha256Hash = sha.EncryptSHA256(text);
Console.WriteLine($"SHA-256: {sha256Hash}");
string sha512Hash = sha.EncryptSHA512(text);
Console.WriteLine($"SHA-512: {sha512Hash}");
HMAC
HMAC hmac = new HMAC();
string text = "Hello, World!";
string key = "my_secret_key";
string md5Hash = hmac.EncryptHMACMD5(text, key);
string sha1Hash = hmac.EncryptHMACSHA1(text, key);
string sha256Hash = hmac.EncryptHMACSHA256(text, key);
string sha512Hash = hmac.EncryptHMACSHA512(text, key);
Console.WriteLine("MD5: " + md5Hash);
Console.WriteLine("SHA-1: " + sha1Hash);
Console.WriteLine("SHA-256: " + sha256Hash);
Console.WriteLine("SHA-512: " + sha512Hash);
Output will be:
MD5: 65a8e27d8879283831b664bd8b7f0ad4
SHA-1: 916f60989a8e346b97fce7e19eecb56ca8a8a8e576d7a18825f38
SHA-256: 8c7dd906c3a6f5b3a2b0a9e98a6a9c72d5a0d8a4a21aaf9d6d6e6c3d21a6
SHA-512: 1a45969a72d18a12a7d162e5d6e2a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a3d1a6a7d1a6a
MD5
MD5 md5 = new MD5();
string input = "Hello, World!";
string hash = md5.GetMD5Hash(input);
Console.WriteLine("MD5 hash of \"" + input + "\": " + hash);
Output will be:
MD5 hash of "Hello, World!": 65a8e27d8879283831b664bd8b7f0ad4
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|