Skip to content

Commit 4b82239

Browse files
committed
Update README.md
1 parent d9e712e commit 4b82239

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

README.md

+30-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,44 @@
77
| --- | --- | --- |
88
| [![Build status](https://ci.appveyor.com/api/projects/status/hai0kndijmx6xb9d?svg=true)](https://ci.appveyor.com/project/henkmollema/cryptohelper) | [![Build Status](https://travis-ci.org/henkmollema/CryptoHelper.svg)](https://travis-ci.org/henkmollema/CryptoHelper) | [![Build Status](https://travis-ci.org/henkmollema/CryptoHelper.svg)](https://travis-ci.org/henkmollema/CryptoHelper) |
99

10-
<hr>
10+
--
1111

1212
This utility ports the password hashing functionality from the [`System.Web.Helpers.Crypto`](http://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Helpers/Crypto.cs) class to DNX. On DNX the new ASP.NET 5 Data Protection stack is used. Where as classic .NET 4.0 and 4.5 applications will use `Rfc2898DeriveBytes`
1313

1414
<hr>
1515

16-
#### [Download CryptoHelper on NuGet](https://www.nuget.org/packages/CryptoHelper)
16+
## Installation
17+
18+
#### Add the [CryptoHelper NuGet package](https://www.nuget.org/packages/CryptoHelper) to your project
19+
Add this to your `project.json`:
20+
```json
21+
"dependencies": {
22+
"CryptoHelper": "1.0.0-rc1-*"
23+
}
24+
```
1725

1826
--
1927

20-
#### Download using the NuGet Package Manager Console:
28+
#### Download using the NuGet Package Manager Console
2129
```
2230
Install-Package CryptoHelper
2331
```
32+
33+
<hr>
34+
35+
## Usage
36+
```csharp
37+
using CryptoHelper;
38+
39+
// ...
40+
41+
public string HashPassword(string password)
42+
{
43+
return Crypto.HashPassword(password);
44+
}
45+
46+
public bool VerifyPassword(string hash, string password)
47+
{
48+
return Crypto.HashPassword(hash, password);
49+
}
50+
```

0 commit comments

Comments
 (0)