khady / ocaml-argon2 Goto Github PK
View Code? Open in Web Editor NEWOcaml bindings to Argon2
License: MIT License
Ocaml bindings to Argon2
License: MIT License
This library doesn't work on macOS 10.14.6 . argon2 is installed via homebrew.
โ ls /usr/local/lib/ | grep argon2
libargon2.1.dylib
libargon2.a
libargon2.dylib
Changing the Dl.open
call here https://github.com/Khady/ocaml-argon2/blob/master/src/argon2.ml#L5
from libargon2.1.so
to libargon2.1.dylib
fixes the issue.
I'm willing to send a PR to fix this but I'm not sure how to do this. Please advice on the proper fix that works cross-platform
I have some questions regarding the API:
D
, I
, and ID
with generic functions. It seems redundant. Why not just have generic functions?encoded
or hash
, it seems that modules D
, I
or ID
seems not usable in practice.hash
function return both a hash
and an encoded
datatype? It seems only the second one can be used with verify
.hash
and encoded
? Why not just use one datatype?hash
function takes an encoded_len
argument. It seems that this value comes from the function encoded_len
. Wouldn't be simpler to not expose encoded_len
and let the function hash
compute this length by itself?I was having trouble with static linking of this library, due to the symbols not being found at runtime, so I tried switching it over to use stub generation master...joprice:stubs. This got it to work, but while doing so, I noticed that argon2id_verify
calls argon2d_verify
https://github.com/Khady/ocaml-argon2/blob/master/src/argon2.ml#L227.
let argon2id_verify = verify "argon2d_verify"
The current version of this package in OPAM is 0.2, which requires OCaml < "4.06.0".
It seems the current version here on github is not pushed to OPAM.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.