Sponsored By
DataConverter
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Home >> Scripting >> Java Script >> encode the password by javascript
Author Post

Varun Agrawal


Total Post: 3
Member Since: 3/18/2011
Points: 15
encode the password by javascript
Posted On: 3/29/2011 6:48:42 AM
How to encode and decode the password by javascript.
please give the syntax of this problem.
Author Post

Amit Singh


Total Post: 104
Member Since: 8/8/2010
Points: 702
Re: encode the password by javascript
Posted On: 3/29/2011 7:33:38 AM
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>
Report Abuse Form
Reason:    
 
Total Online Users: 2588
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2013MindStick. All Rights Reserved.