Skip to content

MD5 is a .NET library that provides methods to generate MD5 hash from string content. It has over 30,000 downloads on NuGet and is available under the MIT License. Contributions are welcome!

License

oalexandrefreire/MD5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Nuget

MD5

NuGet

Overview

MD5 is a .NET library that provides methods to generate MD5 hash from string, byteArray, object or stream content. It uses the System.Security.Cryptography.MD5 class to generate the hash.

Usage

To use the library, you can call the GetMD5 method on a string, byteArray, object or stream to get the MD5 hash. Examples:

string hash1 = "hello world".GetMD5();
// or specific encoding type
string hash2 = "hello world".GetMD5(EncodingType.UTF8);
var stream = File.OpenRead("Rondonia.pdf");
string hash = stream.GetMD5();
byte[] byteArray = Encoding.UTF8.GetBytes("Hello, World!");
string hash = byteArray.GetMD5();
BrasilModel obj = new BrasilModel() { Id = 1, Details = "Maior país da América do Sul" };
string hash = obj.GetMD5();

To number you can use:

string hash = myNumber.ToString().GetMD5():

Installation

You can install the library via NuGet package manager by searching for MD5 or by executing the following command in the Package Manager Console:

PM> Install-Package MD5

License

This library is licensed under the MIT License. See the LICENSE file for more details.

Contributions

Contributions to this library are welcome. Please open an issue or submit a pull request with your changes.

About

MD5 is a .NET library that provides methods to generate MD5 hash from string content. It has over 30,000 downloads on NuGet and is available under the MIT License. Contributions are welcome!

Topics

Resources

License

Stars

Watchers

Forks

Languages