Skip to content

How to use argon2id (usage example) ? #17

@nelsonic

Description

@nelsonic

Hi @riverrun, thanks for making this package!

Quick question: how can we use argon2id to hash_password ?

from /lib/argon2.ex:

defp argon2_type("$argon2id" <> _), do: 2

it's apparent that it's possible to use the argon2id but there is no usage example in the docs (readme) or in the tests /test/argon2_test.exs

I tried to add the following lines to config.exs:

config :argon2_elixir,
  argon2_type: 2

I'm keen to use argon2id because of:
https://crypto.stackexchange.com/questions/48935/why-use-argon2i-or-argon2d-if-argon2id-exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions