Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct library class name #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ Use the default bcrypt adapter:
```php
<?php
// Default configuration - bcrypt adapter, 2^12 (4,096) iterations
$phpassHash = new \Phpass\Hash;
$phpassHash = new \PHPassLib\Hash;
```

Use the PBKDF2 adapter:

```php
<?php
// Customize hash adapter - PBKDF2 adapter, 15,000 iterations
$adapter = new \Phpass\Hash\Adapter\Pbkdf2(array (
$adapter = new \PHPassLib\Hash\Adapter\Pbkdf2(array (
'iterationCount' => 15000
));
$phpassHash = new \Phpass\Hash($adapter);
$phpassHash = new \PHPassLib\Hash($adapter);
```

Create and verify a password hash:
Expand All @@ -92,7 +92,7 @@ Calculate a password's entropy using [NIST recommendations](http://en.wikipedia.
```php
<?php
// Default configuration (NIST recommendations)
$phpassStrength = new \Phpass\Strength;
$phpassStrength = new \PHPassLib\Strength;

// Returns 30
$passwordEntropy = $phpassStrength->calculate('MySecretPassword');
Expand All @@ -103,9 +103,9 @@ Calculate a password's entropy using [Wolfram Alpha's algorithm](http://www.wolf
```php
<?php
// Custom strength adapter (Wolfram algorithm)
$adapter = new \Phpass\Strength\Adapter\Wolfram;
$phpassStrength = new \Phpass\Strength($adapter);
$adapter = new \PHPassLib\Strength\Adapter\Wolfram;
$phpassStrength = new \PHPassLib\Strength($adapter);

// Returns 59
$passwordEntropy = $phpassStrength->calculate('MySecretPassword');
```
```