"Sputnik" help  
Sputnik Help
PasswordAlgos()

Description

Lists all available password hashing algorithms supported by the PasswordHash function.

Parameters

None.

Return Value

Success: Returns an associative array containing the names of available password hashing algorithms the key is the @ macro name.
Failure: Returns an empty array.

Remarks

The PasswordAlgos function provides a convenient way to retrieve the list of supported password hashing algorithms for use with the PasswordHash function. It is essential for choosing a suitable algorithm when securing passwords.

Related

PasswordHash, PasswordInfo, PasswordNeedsRehash, PasswordVerify

Example

Example of usage:

printr PasswordAlgos();
// PRINTS
// Array
// (
//     [PasswordDefault] =>
//     [PasswordBCrypt] => 2y
//     [PasswordArgon2I] => argon2i
//     [PasswordArgon2Id] => argon2id
// )

 


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