Pepperminty Wiki Module API

feature-user-table.php

Table of Contents

generate_password()  : string
Generates a new (cryptographically secure) random password that's also readable (i.e. consonant-vowel-consonant).

Functions

generate_password()

Generates a new (cryptographically secure) random password that's also readable (i.e. consonant-vowel-consonant).

generate_password(string $length) : string

This implementation may be changed in the future to use random dictionary words instead - ref https://xkcd.com/936/

Parameters
$length : string

The length of password to generate.

Return values
string

The generated random password.

Search results