danielberkompas / cloak_ecto

Encrypted fields for Ecto
MIT License
197 stars 31 forks source link

Remove pbkdf2 optional dependency, update instructions #25

Closed danielberkompas closed 3 years ago

danielberkompas commented 3 years ago

It isn't possible to publish a package to Hex.pm with a dependency on a Github fork which is not also hosted on Hex.pm. The current version of pbkdf2 is not compatible with Erlang 24. To use it, you'll need a forked version, see #24.

For this reason, I needed to make the pbkdf2 a :dev, :test dependency instead of an :optional dependency for cloak_ecto. If you add it to your mix dependencies in your project, cloak_ecto should still detect it; it shouldn't need to be listed as an optional dependency.

I updated the instructions in the module doc for Cloak.Ecto.PBKDF2 to reflect this information.