Light weight (<3kb) reversible encryption library for JQuery.
Limit encryption usage to OTP or include a nonce with the key to prevent known security vulnerability of RC4 (same as WEP).
key: null
method: "encrypt"
Decrypt all element text for class using key "ThisIsAGreatKey"
$(".EncryptedText").rc4({"key":"ThisIsAGreatKey","method":"decrypt"});
Encrypt all input value for class using key "ThisIsAGreatKey"
$(".SecureInput").rc4({"key":"ThisIsAGreatKey"}); //encrypting is the default method
Encrypt a string and store to variable
var jsonMSG = {"to":"johndoe@fakeemail.com","msg": $.rc4Encrypt($('#plainTextInput').val(),$('#key').val())};
Tested with UTF-8 encoding