WeakPassword
Table of Contents
Methods
- createIndex() : bool
- Creates a set of indexed files from one source file.
- exists() : bool
- Checks if a password exists in the database.
Methods
createIndex()
Creates a set of indexed files from one source file.
public
static createIndex(string $dataFile, string $path) : bool
Parameters
- $dataFile : string
-
The absolute path to the source file.
- $path : string
-
The absolute path to the folder which contains the indexed files. If the folder doesn't exist it'll be created.
Return values
boolexists()
Checks if a password exists in the database.
public
static exists(string $password, string $path) : bool
Parameters
- $password : string
-
The password.
- $path : string
-
The absolute path to the folder which contains the indexed files.