Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xor_str = function(s,K)
- {
- c = '';
- for(i=0; i<str.length; i++) {
- for(ik=0; ik<K.length; ik++){
- c += String.fromCharCode(str[i].charCodeAt(0).toString(10) ^ key.charCodeAt(0).toString(10)); // XORing with letter 'K'
- }
- }
- return c;
- }
Add Comment
Please, Sign In to add comment