gen_password/1 is an Erlang function exported by "pam" module.
This function with a single parameter is intended to generate a unique sequence of symbols particularly designed for passwords.
The length of the sequence depends on Length parameter, however, the value must be larger than 8 symbols.
The generated sequence starts always with a letter and may include other digits and upper or lowercase letters. The overall level of entropy is high but balanced so the generated symbols are well intermixed with digits. Some code samples are applied bellow.
|