There's definitely SHA1 in Puck.js (at least on recent firmware) - you just use require("crypto").SHA1("your data"), however there was no AES built in.
Looking at it, there is space for it so I just added it. If you use one of the latest 'travis' builds from http://www.espruino.com/binaries/travis/master/ then it should now have require("crypto").AES in (or it'll be in the 1v97 release).
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.
Hi,
There's definitely SHA1 in Puck.js (at least on recent firmware) - you just use
require("crypto").SHA1("your data")
, however there was no AES built in.Looking at it, there is space for it so I just added it. If you use one of the latest 'travis' builds from http://www.espruino.com/binaries/travis/master/ then it should now have
require("crypto").AES
in (or it'll be in the 1v97 release).