Giter Club home page Giter Club logo

ocaml-argon2's People

Contributors

dra27 avatar gasche avatar khady avatar ozanmakes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ocaml-argon2's Issues

Support macOS

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

Some questions regarding the API

I have some questions regarding the API:

  • The API exposes modules D, I, and ID with generic functions. It seems redundant. Why not just have generic functions?
  • Considering the lack of conversion functions from string to encoded or hash, it seems that modules D, I or ID seems not usable in practice.
  • For the generic functions, Why does the hash function return both a hash and an encoded datatype? It seems only the second one can be used with verify.
  • More generally, what are the differences between a hash and encoded? Why not just use one datatype?
  • I am wondering why the 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?

Upgrade the version in opam

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.