Commit 9ee1ef9e by Mark Garrett

Try to get Markdown right

parent 435cd2c8
...@@ -66,7 +66,7 @@ Usage ...@@ -66,7 +66,7 @@ Usage
### Optional Parameters ### Optional Parameters
:::php ```php
use ModDev\Password\Scrypt; use ModDev\Password\Scrypt;
...@@ -76,21 +76,22 @@ Usage ...@@ -76,21 +76,22 @@ Usage
'parallelDifficulty' => 1, //The parallel difficulty. Also called "p" in scrypt documentation. 'parallelDifficulty' => 1, //The parallel difficulty. Also called "p" in scrypt documentation.
'keyLength' => 32, //The key length. Must be greater or equal to 16. 'keyLength' => 32, //The key length. Must be greater or equal to 16.
)); ));
```
### Return the hash algorithm ### Return the hash algorithm
:::php ```php
use ModDev\Password\Scrypt; use ModDev\Password\Scrypt;
$scrypt = new Scrypt(); $scrypt = new Scrypt();
$passwordhashType = $scrypt->getHashType($hashedPassword); $passwordhashType = $scrypt->getHashType($hashedPassword);
```
### Check if the password needs rehashing ### Check if the password needs rehashing
:::php ```php
use ModDev\Password\Scrypt; use ModDev\Password\Scrypt;
$scrypt = new Scrypt(); $scrypt = new Scrypt();
echo $scrypt->needsRehash($hashedPassword); 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