bcrypt_elixir | Bcrypt password hashing for Elixir | Hashing library
kandi X-RAY | bcrypt_elixir Summary
kandi X-RAY | bcrypt_elixir Summary
Bcrypt password hashing for Elixir
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bcrypt_elixir
bcrypt_elixir Key Features
bcrypt_elixir Examples and Code Snippets
Community Discussions
Trending Discussions on bcrypt_elixir
QUESTION
I was wondering if anyone has seen this error before and if so what can be done about it.
...ANSWER
Answered 2020-Aug-05 at 18:31For some reason, the C compiler ends up not understanding code following the C99 standard; in particular it doesn't permit variable declarations after the first statement in a function.
Since bcrypt_elixir has a Makefile.win
file, suggesting that it has compiled successfully on Windows before, I don't quite understand why this is happening, but in any case you should be able to fix this by modifying bcrypt_nif.c
, changing this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bcrypt_elixir
Add :bcrypt_elixir to the deps section of your mix.exs file: If you are using Erlang >20: def deps do [ {:bcrypt_elixir, "~> 3.0"} ] end If you are using Erlang 19 or below: def deps do [ {:bcrypt_elixir, "~> 0.12"} ] end
Make sure you have a C compiler installed. See the Comeonin wiki for details.
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 :bcrypt_elixir, :log_rounds, 4
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page