Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function rot13(s) {
  2.   return s.replace(/[a-zA-Z]/g, function(c) {
  3.     return String.fromCharCode((c<="Z" ? 90 : 122) >= (c=c.charCodeAt()+13) ? c : c-26);
  4.   });
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement