Encryption

Posted on
  • I'd like to encrypt a string with a secret key, that I can later use to also decrypt the string.

    What options do we have for that on the Pico? Would this work? http://bitwiseshiftleft.github.io/sjcl/

  • Hi Tobbe,

    You can try that library, but I think you'll find that it might be too big for Espruino.

    There was a good forum post on it here: http://forum.espruino.com/conversations/­267841/

    I just realised there wasn't actually a usable implementation there - so if you look at the end I've posted up the JS implementation, tweaked to work with Espruino.

  • Too big in what way? Minified it's 19kb, so storage-wise it'll fit.

    But thanks for your TEA-implementation, I'll use that :)

  • Oh wow, that's great. Sorry - I looked at the GitHub and saw a bunch of files. I didn't realise it minified down so well!

    It'd be really interesting to give that a try actually.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Encryption

Posted by Avatar for Tobbe @Tobbe

Actions