初始化
This commit is contained in:
BIN
packages/MD5.2.0.4/.signature.p7s
vendored
Normal file
BIN
packages/MD5.2.0.4/.signature.p7s
vendored
Normal file
Binary file not shown.
BIN
packages/MD5.2.0.4/MD5.2.0.4.nupkg
vendored
Normal file
BIN
packages/MD5.2.0.4/MD5.2.0.4.nupkg
vendored
Normal file
Binary file not shown.
50
packages/MD5.2.0.4/README.md
vendored
Normal file
50
packages/MD5.2.0.4/README.md
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||

|
||||

|
||||
|
||||
# MD5
|
||||
|
||||
[](https://www.nuget.org/packages/MD5/)
|
||||
|
||||
## Overview
|
||||
|
||||
MD5 is a .NET library that provides methods to generate MD5 hash from string, byteArray 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 or stream to get the MD5 hash.
|
||||
Examples:
|
||||
|
||||
```csharp
|
||||
string hash = "hello world".GetMD5();
|
||||
```
|
||||
```csharp
|
||||
var stream = File.OpenRead("Rondonia.pdf");
|
||||
string hash = stream.GetMD5();
|
||||
```
|
||||
```csharp
|
||||
byte[] byteArray = Encoding.UTF8.GetBytes("Hello, World!");
|
||||
string hash = byteArray.GetMD5();
|
||||
```
|
||||
To number you can use:
|
||||
```csharp
|
||||
string hash = myNumber.ToString().GetMD5():
|
||||
```
|
||||
You can also call the Content method on the MD5Hash.Hash class to get the hash from a string, byteArray or Stream
|
||||
|
||||
```csharp
|
||||
string hash = MD5Hash.Hash.Content("hello world");
|
||||
```
|
||||
|
||||
|
||||
## 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:
|
||||
|
||||
```shell
|
||||
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.
|
||||
BIN
packages/MD5.2.0.4/content/logo.ico
vendored
Normal file
BIN
packages/MD5.2.0.4/content/logo.ico
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 104 KiB |
BIN
packages/MD5.2.0.4/contentFiles/any/netstandard2.0/logo.ico
vendored
Normal file
BIN
packages/MD5.2.0.4/contentFiles/any/netstandard2.0/logo.ico
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 104 KiB |
BIN
packages/MD5.2.0.4/lib/netstandard2.0/MD5.dll
vendored
Normal file
BIN
packages/MD5.2.0.4/lib/netstandard2.0/MD5.dll
vendored
Normal file
Binary file not shown.
21
packages/MD5.2.0.4/license.txt
vendored
Normal file
21
packages/MD5.2.0.4/license.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 Alexandre Freire
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
BIN
packages/MD5.2.0.4/logo.png
vendored
Normal file
BIN
packages/MD5.2.0.4/logo.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Reference in New Issue
Block a user