{"id":20610081,"url":"https://github.com/oalexandrefreire/md5","last_synced_at":"2026-03-07T18:02:35.115Z","repository":{"id":42986856,"uuid":"246607030","full_name":"oalexandrefreire/MD5","owner":"oalexandrefreire","description":"MD5 is a .NET library that provides methods to generate MD5 hash from string content. It has over 200,000 downloads on NuGet and is available under the MIT License. Contributions are welcome!","archived":false,"fork":false,"pushed_at":"2024-07-24T02:23:18.000Z","size":403,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-07T10:46:00.193Z","etag":null,"topics":["csharp","csharp-library","md5","md5-encode","md5-hash","netstandard20"],"latest_commit_sha":null,"homepage":"https://oalexandrefreire.github.io/MD5/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oalexandrefreire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-11T15:22:34.000Z","updated_at":"2025-11-19T02:17:02.000Z","dependencies_parsed_at":"2024-05-13T16:06:31.056Z","dependency_job_id":"312272b5-4e44-4f0a-801e-bbe182966b6b","html_url":"https://github.com/oalexandrefreire/MD5","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/oalexandrefreire/MD5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oalexandrefreire%2FMD5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oalexandrefreire%2FMD5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oalexandrefreire%2FMD5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oalexandrefreire%2FMD5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oalexandrefreire","download_url":"https://codeload.github.com/oalexandrefreire/MD5/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oalexandrefreire%2FMD5/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30225436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","csharp-library","md5","md5-encode","md5-hash","netstandard20"],"created_at":"2024-11-16T10:15:33.438Z","updated_at":"2026-03-07T18:02:35.100Z","avatar_url":"https://github.com/oalexandrefreire.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿\n![Nuget](https://img.shields.io/nuget/dt/md5)\n![Nuget](https://img.shields.io/nuget/v/md5)\n[![codecov](https://codecov.io/gh/oalexandrefreire/MD5/graph/badge.svg?token=9TLI2KMZHX)](https://codecov.io/gh/oalexandrefreire/MD5)\n\n# MD5\n\n[![NuGet](https://img.shields.io/nuget/v/MD5.svg)](https://www.nuget.org/packages/MD5/)\n\n## Overview\n\nMD5 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.\n\n## Usage\n\nTo use the library, you can call the `GetMD5` method on a string, byteArray, object or stream to get the MD5 hash.\nExamples:\n\n```csharp\nstring hash1 = \"hello world\".GetMD5();\n// or specific encoding type\nstring hash2 = \"hello world\".GetMD5(EncodingType.UTF8);\n```\n```csharp\nvar stream = File.OpenRead(\"Rondonia.pdf\");\nstring hash = stream.GetMD5();\n```\n```csharp\nbyte[] byteArray = Encoding.UTF8.GetBytes(\"Hello, World!\");\nstring hash = byteArray.GetMD5();\n```\n```csharp\nBrasilModel obj = new BrasilModel() { Id = 1, Details = \"Maior país da América do Sul\" };\nstring hash = obj.GetMD5();\n```\nTo number you can use:\n```csharp\nstring hash = myNumber.ToString().GetMD5():\n```\n\n## New Feature: MD5 with Salt\n\nThis new feature allows you to generate a salted MD5 hash, enhancing security.\n\n### Usage\n\nTo use the salted hash functionality, you can call the `GetMD5WithSalt` method on a string, byteArray, or object to get the MD5 hash with a salt.\nExamples:\n\n```csharp\nstring salt = \"randomSalt\";\nstring hash1 = \"hello world\".GetMD5WithSalt(salt);\n// or specific encoding type\nstring hash2 = \"hello world\".GetMD5WithSalt(salt, EncodingType.UTF8);\n```\n```csharp\nbyte[] byteArray = Encoding.UTF8.GetBytes(\"Hello, World!\");\nbyte[] saltBytes = Encoding.UTF8.GetBytes(\"randomSalt\");\nstring hash = byteArray.GetMD5WithSalt(saltBytes);\n```\n```csharp\nBrasilModel obj = new BrasilModel() { Id = 1, Details = \"Maior país da América do Sul\" };\nstring salt = \"randomSalt\";\nstring hash = obj.GetMD5WithSalt(salt);\n```\nTo number you can use:\n```csharp\nstring salt = \"randomSalt\";\nstring hash = myNumber.ToString().GetMD5WithSalt(salt);\n```\n\n## Installation\nYou can install the library via NuGet package manager by searching for MD5 or by executing the following command in the Package Manager Console:\n\n```shell\nPM\u003e Install-Package MD5\n```\n\n## License\nThis library is licensed under the MIT License. See the LICENSE file for more details.\n\n## Contributions\nContributions to this library are welcome. Please open an issue or submit a pull request with your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foalexandrefreire%2Fmd5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foalexandrefreire%2Fmd5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foalexandrefreire%2Fmd5/lists"}