Add the Comeonin library to your mix.exs file and run mix deps.get to fetch the dependencies: defp deps do [ {:comeonin, "~> 5.3"} ] end In your Elixir module, you can use the Comeonin.Bcrypt module to hash passwords: # Import the Comeonin.Bcrypt module import Comeonin.Bcrypt # Hash a password password = "my_password" hash = hashpwsalt(password) # Verify a password is_valid = checkpw(password, hash) In the example above, hashpwsalt/1 function is used to hash the password with a random salt, and checkpw/2 function is used to verify if a given password matches the hashed password.