SHA1 is available in the emulator, but SHA256 and SHA512 (and SHA384 and SHA224) are not.
From looking at:
https://github.com/espruino/Espruino/blob/3875b8d3916399196f413074f653318138760534/libs/crypto/jswrap_crypto.c#L143
it looks like the Bangle is just getting the JS version of SHA1.
What are the chances of getting SHA256 and SHA512? I'm looking into developing a 2FA app for my Bangle 2 and would like to support all the options.
@andrewg_oz started
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.
SHA1 is available in the emulator, but SHA256 and SHA512 (and SHA384 and SHA224) are not.
From looking at:
https://github.com/espruino/Espruino/blob/3875b8d3916399196f413074f653318138760534/libs/crypto/jswrap_crypto.c#L143
it looks like the Bangle is just getting the JS version of SHA1.
What are the chances of getting SHA256 and SHA512? I'm looking into developing a 2FA app for my Bangle 2 and would like to support all the options.