Skip to content

riverrun/pbkdf2_elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pbkdf2

Build Status Module Version Hex Docs Total Download License Last Updated Join the chat at https://gitter.im/comeonin/Lobby

Pbkdf2 password hashing library for Elixir.

Pbkdf2 is a well-tested password-based key derivation function that can be configured to remain slow and resistant to brute-force attacks even as computational power increases.

Comparison with the Plug.Crypto version of Pbkdf2

If you want the Pbkdf2 output to be in binary (raw) or hex format, you might find Plug.Crypto.KeyGenerator more convenient.

Installation

  1. Add :pbkdf2_elixir to the deps section of your mix.exs file:

    def deps do
      [
        {:pbkdf2_elixir, "~> 2.0"}
      ]
    end
  2. Optional: during tests (and tests only), you may want to reduce the number of rounds so it does not slow down your test suite. If you have a config/test.exs, you should add:

    config :pbkdf2_elixir, :rounds, 1

Comeonin wiki

See the Comeonin wiki for more information on the following topics:

Contributing

There are many ways you can contribute to the development of this library, including:

  • Reporting issues
  • Improving documentation
  • Sharing your experiences with others

Copyright and License

Copyright (c) 2014-2021 David Whitlock (alovedalongthe@gmail.com)

This software is licensed under the BSD-3-Clause license.

About

Pbkdf2 password hashing for Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages