![]() |
The password_get_info() is an inbuilt PHP function where detailed information regarding the given hash will be returned. Syntax: password_get_info(string $hash): array Parameter: This function accepts a single parameter:
Return Values:
Example 1: The following code demonstrates the password_get_info() function. PHP
Output: array(3) { ["algo"]=> string(2) "2y" ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } Example 2: The following code demonstrates the password_get_info() function. PHP
Output: Hash algorithm: 2y Hash strength: bcrypt Reference: https://www.php.net/manual/en/function.password-get-info.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |