Commit 6cb70eed by Mark Garrett

Try to get Markdown right

parent 9ee1ef9e
......@@ -41,8 +41,7 @@ Usage
### Hash a password
:::php
<?php
use ModDev\Password\Scrypt;
$scrypt = new Scrypt();
......@@ -50,8 +49,7 @@ Usage
### Check the hashed password against an user input
:::php
<?php
use ModDev\Password\Scrypt;
$scrypt = new Scrypt();
......@@ -66,8 +64,7 @@ Usage
### Optional Parameters
```php
<?php
use ModDev\Password\Scrypt;
$scrypt = new Scrypt(array(
......@@ -76,22 +73,19 @@ Usage
'parallelDifficulty' => 1, //The parallel difficulty. Also called "p" in scrypt documentation.
'keyLength' => 32, //The key length. Must be greater or equal to 16.
));
```
### Return the hash algorithm
```php
### Return the hash algorithm
<?php
use ModDev\Password\Scrypt;
$scrypt = new Scrypt();
$passwordhashType = $scrypt->getHashType($hashedPassword);
```
### Check if the password needs rehashing
```php
### Check if the password needs rehashing
<?php
use ModDev\Password\Scrypt;
$scrypt = new Scrypt();
echo $scrypt->needsRehash($hashedPassword);
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment