Faker v0.12.0 Faker.String View Source
Function for generating Strings
Link to this section Summary
Functions
Returns a random base64 String
Link to this section Functions
Link to this function
base64(length \\ 8)
View Source
base64(length \\ 8)
View Source
base64(pos_integer()) :: String.t()
base64(pos_integer()) :: String.t()
Returns a random base64 String
Examples
iex> Faker.String.base64()
"1tmLiMhm"
iex> Faker.String.base64()
"29Tee6SN"
iex> Faker.String.base64(5)
"Kfp7+"
iex> Faker.String.base64(100)
"KLJyZ7xbfJZPMy3J7dAsyfOB3vnZIqFGv4VQil8D/xh1C/Nj9K7xJk47zJtcKsy5mjpJk61Wt3jcJu3bfgwuScTmOOYt4ykzvDUl"