summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/README.md b/README.md
index a33ed23..1dcd51b 100644
--- a/README.md
+++ b/README.md
@@ -1,19 +1,25 @@
# xpass extension for PHP
-This extension provides password hashing algorithms used in Linux distributions.
+This extension provides password hashing algorithms used by Linux distributions.
* **sha512** (`$6$`) provided for legacy as used on some old distributions (ex: RHEL-8)
* **yescrypt** (`$y$`) used on modern distributions
-----
+Notices: these are fast, don't expect high security level.
+
+**Computation time**
+
+* bcrypt: 0.33"
+* argon2i: 0.53"
+* argon2id: 0.55"
+* sha512: 0.01"
+* yescrypt: 0,08"
# Sources
* Official git repository: https://git.remirepo.net/cgit/tools/php-xpass.git/
* Mirror on github for contributors: https://github.com/remicollet/php-xpass
-----
-
# Build
You need the Extended crypt library development files (libxcrypt-devel)
@@ -25,11 +31,9 @@ From the sources tree
$ make
$ make test
-----
-
# Usage
-## password hashing
+## password hashing and verifying
$ php -a
php > var_dump($hash = password_hash("secret", PASSWORD_YESCRYPT));
@@ -37,16 +41,12 @@ From the sources tree
php > var_dump(password_verify("secret", $hash));
bool(true)
-----
-
# LICENSE
Author: Remi Collet
This extension is licensed under [The PHP License, version 3.01](http://www.php.net/license/3_01.txt)
------
-
# History
Created on user request