View Source erlPass
An OTP library to generate passwords.
installation
Installation
rebar3
Rebar3
erlPass is built using rebar3,
if this library is used with rebar3 simply put it in your rebar.config file:
{deps, [
erlPass
]}.
other
Other
If you don't use rebar3 it's possibly to get the latest version from github.
build
Build
$ rebar3 compile
test
Test
To run the tests call eunit via rebar3
$ rebar3 eunit
usage
Usage
Call generate/1 specifying the length of the password or to specify the attributes of the generated password, use generate/2
example
Example
1> erlPass:generate(10, [upper,{number,3},symbol]).
"4A0LE6\\_W@"
2> erlPass:generate(5).
"iM{37"
3>Note that erlPass:generate(10, [upper, lower]). is the same as erlPass:generate(10, [{upper, 10}, {lower, 10}]).
and erlPass:generate(10, [{upper, 0}]). is the same as erlPass:generate(10, [])..