View Source Upgrading to version 5

In version 5 of Comeonin, in most cases, you will not call Comeonin directly, and so you will be able to remove it from your app.

Follow the instructions below to upgrade:

  1. Remove :comeonin from the deps function in your mix.exs file.
  2. Update :argon2_elixir to version 2.0, :bcrypt_elixir to version 2.0, or :pbkdf2_elixir to version 1.0.
  3. Using the conversion tables below, edit the hashing functions.
Comeonin v4Comeonin v5
Comeonin.Argon2.add_hashArgon2.add_hash
Comeonin.Argon2.check_passArgon2.check_pass
Comeonin.Argon2.hashpwsaltArgon2.hash_pwd_salt
Comeonin.Argon2.checkpwArgon2.verify_pass
Comeonin.Argon2.dummy_checkpwArgon2.no_user_verify
Comeonin v4Comeonin v5
Comeonin.Bcrypt.add_hashBcrypt.add_hash
Comeonin.Bcrypt.check_passBcrypt.check_pass
Comeonin.Bcrypt.hashpwsaltBcrypt.hash_pwd_salt
Comeonin.Bcrypt.checkpwBcrypt.verify_pass
Comeonin.Bcrypt.dummy_checkpwBcrypt.no_user_verify
Comeonin v4Comeonin v5
Comeonin.Pbkdf2.add_hashPbkdf2.add_hash
Comeonin.Pbkdf2.check_passPbkdf2.check_pass
Comeonin.Pbkdf2.hashpwsaltPbkdf2.hash_pwd_salt
Comeonin.Pbkdf2.checkpwPbkdf2.verify_pass
Comeonin.Pbkdf2.dummy_checkpwPbkdf2.no_user_verify