View Source erlPass (erlPass v0.1.6)

A password generator.

Link to this section Summary

Functions

Generates a password.

Generates a password.

Link to this section Functions

-spec generate(Len, ListOps) -> Password | {error, Reason}
            when Len :: integer(), ListOps :: list(), Password :: list(), Reason :: atom().

Generates a password.

Instead of taking several arguments generate/2 takes an argument list. The list must contaion atoms upper, lower, number or symbol
Link to this function

generate(Len, Up, Low, Num, Sym)

View Source
This function is deprecated. May be removed at any time.
-spec generate(Len, Up, Low, Num, Sym) -> Pass | {error, Reason}
            when
                Len :: integer(),
                Up :: boolean(),
                Low :: boolean(),
                Num :: boolean(),
                Sym :: boolean(),
                Pass :: list(),
                Reason :: atom().
Generates a password.