diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | package.xml | 2 | ||||
-rw-r--r-- | xpass.c | 5 |
3 files changed, 8 insertions, 3 deletions
@@ -44,6 +44,10 @@ From the sources tree php > var_dump(password_verify("secret", $hash)); bool(true) +## supported options + +* `cost` controls the CPU time cost of the hash. If `cost` is 0, a low default cost will be selected. + # LICENSE Author: Remi Collet diff --git a/package.xml b/package.xml index 0dca32d..a4f9d1e 100644 --- a/package.xml +++ b/package.xml @@ -5,7 +5,7 @@ <summary>Extended password extension</summary> <description> This extension provides password hashing algorithms used by Linux -distributions, using extended crypt library (libxcrypt). +distributions, using extended crypt library (libxcrypt): * sha512 provided for legacy as used on some old distributions * yescrypt used on modern distributions @@ -41,9 +41,10 @@ PHP_RINIT_FUNCTION(xpass) PHP_MINFO_FUNCTION(xpass) { php_info_print_table_start(); - php_info_print_table_header(2, "xpass support", "enabled"); + php_info_print_table_header(2, "Extended password support", "enabled"); php_info_print_table_row(2, "Extension version", PHP_XPASS_VERSION); - php_info_print_table_row(2, "Author", PHP_XPASS_VERSION); + php_info_print_table_row(2, "libxcrypt version", XCRYPT_VERSION_STR); + php_info_print_table_row(2, "Author", PHP_XPASS_AUTHOR); php_info_print_table_row(2, "License", PHP_XPASS_LICENSE); #ifdef HAVE_CRYPT_SHA512 php_info_print_table_row(2, "sha512 hash", "yes"); |