Proca.Users.StrongPassword (proca v3.0.2)

Password generator for users

Link to this section Summary

Functions

Generate random password

RandomPassword generated module info.

Link to this section Functions

Generate random password

Example

defmodule(Passwd, do: use(RandomPassword, alpha: 16, decimal: 4, symbol: 2))

Passwd.generate()
"vwt8FauEN+spr5{m1Rhso7"

RandomPassword generated module info.

Example

defmodule(Password, do: use(RandomPassword, alpha: 16, decimal: 2, symbol: 1))

Password.info()
    %RandomPassword.Info{
      alpha: 16,
      decimal: 2,
      entropy_bits: 102.66,
      symbol: 1,
      symbols: "!#$%&()*+,-./:;<=>?@[]^_{|}~"
    }