summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-08-28 16:31:59 +0200
committerRemi Collet <remi@php.net>2024-08-28 16:31:59 +0200
commit74e9e4618200825ddf3dbaa2ed85a32949c89147 (patch)
treebcf949a6ef161c08410b7449502089c260003032
parent80fdfd87f89ddf1640b05c561cae74c6fac51472 (diff)
Release 1.0.0RC1
-rw-r--r--README.md4
-rw-r--r--package.xml2
-rw-r--r--xpass.c5
3 files changed, 8 insertions, 3 deletions
diff --git a/README.md b/README.md
index e503119..c34a19d 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/xpass.c b/xpass.c
index ad21234..bab404a 100644
--- a/xpass.c
+++ b/xpass.c
@@ -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");