-
• #2
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:
- SHA1/224/256/384/512
- PBKDF2
- AES CBC/CFB/CTR/ECB
The API is meant to be just like CryprtoJS - but instead of returning a custom class, functions just return ArrayBuffers
- SHA1/224/256/384/512
I noticed the pico supports mbedtls library :-) I'm interested in using any of the AES algorithms and SHA2. What has been implemented and are there any references/examples/tutorials on how to use the crypto library?