encode the password by javascript

Total Post:3

Points:21

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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.