"Sputnik" help  
Sputnik Help
PasswordInfo(<hash>)

Description

Retrieves information about the password hash, such as the algorithm used and any associated parameters.

Parameters

<hash> The password hash to retrieve info for.

Return Value

Success: Returns associative array containing information about the password hash.
Failure: Returns an empty array.

Remarks

The PasswordInfo function is useful for obtaining details about a stored password hash. It returns an array with information such as the hashing algorithm used, allowing for proper verification and management of password hashes.

Related

PasswordAlgos, PasswordHash, PasswordNeedsRehash, PasswordVerify

Example

Example of usage:

my $hash = PasswordHash("secret password", @PasswordDefault);;
printr PasswordInfo($hash);
// Array
// (
//     [algo] => 2y
//     [algoName] => bcrypt
//     [options] => Array
//         (
//             [cost] => 10
//         )
// )

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org