encode the password by javascript

Total Post:3

Points:21
 2105  View(s)
Ratings:
Rate this:
How to encode and decode the password by javascript.
please give the syntax of this problem.
  1. 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>

      Modified On Mar-29-2018 04:00:14 AM

Answer