ENCODE THE PASSWORD BY JAVASCRIPT

Varun Agrawal

Total Post:3

Points:21
Posted by  Varun Agrawal
 1730  View(s)
Ratings:
Rate this:
How to encode and decode the password by javascript.
please give the syntax of this problem.
  1. Amit Singh

    Post:103

    Points:721
    Re: encode the password by javascript

    hello varun,
    In javascript, we encode the password or any string by using the escape() method and decrypt the string by used unescape() methods.

    for example
    <script type="text/javascript">
      var strValue = "this is the new password";
     var strvalue1=document.writeln(escape(strValue));
     document.write(unescape(strvalue1));
    </script>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!