tonyg/js-nacl

Reevaluate libsodium

fproulx-pbox opened this issue · 3 comments

Hi,

Do you plan on reevaluting using libsodium instead of NaCL. The community is gathering around it. There is much more activity. Another thing I really like is that they improve on some issues with the original API. I hate the thing about adding / removing zerobytes manually. They added crypto_box_easy crypto_secretbox_easy which simply wraps that operation so you don't forget / make mistakes.

https://github.com/jedisct1/libsodium/blob/master/src/libsodium/crypto_box/crypto_box_easy.c

Thanks,

Hi François,

Switching to libsodium would make things simpler in some ways, notably integration with autoconf and other tooling, but I don't know whether there would be problems in other areas. I haven't looked into it recently. Would you like to look into it further, and perhaps try it out, to see if it's worth a switch?

The API problems you mention are not a problem in js-nacl, though: the padding is always done for you. See the documentation and examples.

OK. I've never played with emscripten. I guess I'll give it a try and let you know.

Thanks!