When 1v82 comes out there'll be documentation in the reference page on espruino.com - until then you can build it yourself by running the scripts/build_docs.py script on the Espruino repository on GitHub.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
When 1v82 comes out there'll be documentation in the reference page on espruino.com - until then you can build it yourself by running the
scripts/build_docs.py
script on the Espruino repository on GitHub.There's also some very basic test code at: https://github.com/espruino/Espruino/blob/master/tests/test_crypto.js
Or if you don't want to build the docs, search for occurrences of
JSON
in https://github.com/espruino/Espruino/blob/master/libs/crypto/jswrap_crypto.cYou currently have:
The API is meant to be just like CryprtoJS - but instead of returning a custom class, functions just return ArrayBuffers