You may use crypto-js (i didn't test it personally but should work) and there are tons of JavaScript implementation of the cryptographic algorithms out there on the net.
if your only concern is username/password, hash the password (with a seed) and send it to server. I think sha1 is the smallest/lightest hashing implementation.
Or if you want to spend less memory and have less security, check this XOR String Example, I just wrote for you.
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.
You may use crypto-js (i didn't test it personally but should work) and there are tons of JavaScript implementation of the cryptographic algorithms out there on the net.
if your only concern is username/password, hash the password (with a seed) and send it to server. I think sha1 is the smallest/lightest hashing implementation.
Or if you want to spend less memory and have less security, check this XOR String Example, I just wrote for you.