Packages

Set of Ecto.Changeset functions to validate passwords against NIST guidelines. (https://pages.nist.gov/800-63-3/sp800-63b.html#sec5)

Current section

Files

Jump to
ex_nist lib ex_nist words.ex
Raw

lib/ex_nist/words.ex

defmodule ExNist.Words do
@moduledoc false
def words do
File.stream!("static/words.txt")
|> Enum.map(fn word -> word |> String.trim() |> String.downcase() end)
end
end