php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
password.c File Reference
#include <stdlib.h>
#include "php.h"
#include "fcntl.h"
#include "php_password.h"
#include "php_crypt.h"
#include "base64.h"
#include "zend_interfaces.h"
#include "info.h"
#include "ext/random/php_random_csprng.h"
#include "password_arginfo.h"

Go to the source code of this file.

Functions

int php_password_algo_register (const char *ident, const php_password_algo *algo)
 
void php_password_algo_unregister (const char *ident)
 
 register_password_symbols (module_number)
 
 if (FAILURE==php_password_algo_register("2y", &php_password_algo_bcrypt))
 
const php_password_algophp_password_algo_default (void)
 
const php_password_algophp_password_algo_find (const zend_string *ident)
 
zend_stringphp_password_algo_extract_ident (const zend_string *hash)
 
const php_password_algophp_password_algo_identify_ex (const zend_string *hash, const php_password_algo *default_algo)
 
 PHP_FUNCTION (password_get_info)
 
 PHP_FUNCTION (password_needs_rehash)
 
 PHP_FUNCTION (password_verify)
 
 PHP_FUNCTION (password_hash)
 
 PHP_FUNCTION (password_algos)
 

Variables

const php_password_algo php_password_algo_bcrypt
 
return SUCCESS
 

Function Documentation

◆ if()

Definition at line 426 of file password.c.

◆ PHP_FUNCTION() [1/5]

PHP_FUNCTION ( password_algos )

Definition at line 663 of file password.c.

◆ PHP_FUNCTION() [2/5]

PHP_FUNCTION ( password_get_info )

Definition at line 542 of file password.c.

◆ PHP_FUNCTION() [3/5]

PHP_FUNCTION ( password_hash )

Definition at line 628 of file password.c.

◆ PHP_FUNCTION() [4/5]

PHP_FUNCTION ( password_needs_rehash )

}}}

Definition at line 579 of file password.c.

◆ PHP_FUNCTION() [5/5]

PHP_FUNCTION ( password_verify )

Definition at line 612 of file password.c.

◆ php_password_algo_default()

const php_password_algo * php_password_algo_default ( void )

Definition at line 455 of file password.c.

◆ php_password_algo_extract_ident()

zend_string * php_password_algo_extract_ident ( const zend_string * hash)

Definition at line 510 of file password.c.

◆ php_password_algo_find()

const php_password_algo * php_password_algo_find ( const zend_string * ident)

Definition at line 459 of file password.c.

◆ php_password_algo_identify_ex()

const php_password_algo * php_password_algo_identify_ex ( const zend_string * hash,
const php_password_algo * default_algo )

Definition at line 528 of file password.c.

◆ php_password_algo_register()

int php_password_algo_register ( const char * ident,
const php_password_algo * algo )

Definition at line 40 of file password.c.

◆ php_password_algo_unregister()

void php_password_algo_unregister ( const char * ident)

Definition at line 45 of file password.c.

◆ register_password_symbols()

register_password_symbols ( module_number )

Variable Documentation

◆ php_password_algo_bcrypt

const php_password_algo php_password_algo_bcrypt
Initial value:
= {
"bcrypt",
php_password_bcrypt_hash,
php_password_bcrypt_verify,
php_password_bcrypt_needs_rehash,
php_password_bcrypt_get_info,
php_password_bcrypt_valid,
}

Definition at line 224 of file password.c.

◆ SUCCESS

return SUCCESS
Initial value:
{
zend_hash_destroy(&php_password_algos)
ZEND_API void ZEND_FASTCALL zend_hash_destroy(HashTable *ht)
Definition zend_hash.c:1727

Definition at line 439 of file password.c.