js加密解密 base64
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>base64加密</title> <script src='http://code.jquery.com/jquery-1.9.1.min.js'></script> <script src='jquery.base64.js'></script> <script type="text/javascript"> var a='Fsss123456asdfafdsf110'; var b = $.base64.btoa(a);//加密 console.log(b); console.log($.base64.atob(b));//解密 </script> </head> <body> </body> </html> //demo for base64: https://github.com/yckart/jquery.base64.js