smarkets / erlang-bcrypt

Erlang wrapper for OpenBSD's Blowfish password hashing code
Other
86 stars 47 forks source link

Not support Erlang/OTP 20+ #26

Open HJianBo opened 6 years ago

HJianBo commented 6 years ago

Env: Erlang/OTP 20+

Exec following code

> {ok, Salt} = bcrypt:gen_salt().

exception error:

** exception exit: {{function_clause,[{bcrypt_nif_worker,terminate,
                                                         [{undef,[{crypto,rand_bytes,[16],[]},
                                                                  {bcrypt_nif,gen_salt,1,
                                                                              [{file,"src/bcrypt_nif.erl"},{line,57}]},
                                                                  ...
peffis commented 6 years ago

Is anyone already working on upgrading bcrypt to OTP 20 and above? I would like to upgrade my application to OTP 20+ but a dependency to bcrypt forces me to erlang 19 unfortunately. I can possibly look into it myself if nobody is working on it already.