Documentation

PasswordHasher
in package

Table of Contents

Constants

MAX_PASSWORD_LENGTH  = 255

Methods

hashPassword()  : string
Create a password hash from a given string by a specific algorithm.

Constants

Methods

hashPassword()

Create a password hash from a given string by a specific algorithm.

public static hashPassword(string $password[, string $algorithm = '' ][, string $salt = '' ][, int $spinCount = 10000 ]) : string

2.4.2.4 ISO Write Protection Method

Parameters
$password : string

Password to hash

$algorithm : string = ''

Hash algorithm used to compute the password hash value

$salt : string = ''

Pseudorandom string

$spinCount : int = 10000

Number of times to iterate on a hash of a password

Tags
see
https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-offcrypto/1357ea58-646e-4483-92ef-95d718079d6f
Return values
string

Hashed password


        
On this page

Search results