Proca.Confirm.SimpleCode (proca v3.4.1)

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: "!#$%&()*+,-./:;<=>?@[]^_{|}~"
    }