You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-6
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,31 @@ Note, this library is still quite new (2021/07/02). It's quite likely to have ma
7
7
8
8
## Example usage
9
9
10
+
The main functionality reflects legacy behaviour in PostfixAdmin with a 'pacrypt' function, which when given ...
11
+
12
+
* one argument - clear text password -> returns a hash.
13
+
* two arguments - clear text password and stored hash -> if the return value matches the stored hash, then the clear text password was a match for the hash we have.
14
+
10
15
```PHP
11
-
$tool = new \PostfixAdmin\PasswordHashing\Crypt();
16
+
$tool = new \PostfixAdmin\PasswordHashing\Crypt('ARGON2I');
12
17
13
18
// should output something to indicate what your system supports (may be dependent on PHP variant, PHP modules etc)
14
-
var_dump($tool->supportedMechanisms()); // e.g. MD5, SHA1, ARGON2I.
0 commit comments