| | |
encrypt/decrypt
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi, using a snippet I found on here I have this code:
But I want to make pass1 harder to see so I want to encrypt it and use that as the var. Then I want to decrypt it at the if so that it is harder to be used to access secure information. How would I go about doing this?
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
var password; var pass1="PASSWORD-HERE"; password=prompt('Whats The Magic Word?',' '); if (password==pass1) alert('That Is Correct!'); else { window.location="SITE-LINK"; }
don't judge me because I'm a year 8!
'it is better to fight for something than to live for nothing'General George S Patton
'it is better to fight for something than to live for nothing'General George S Patton
0
#2 Oct 21st, 2009
•
•
•
•
Hi, using a snippet I found on here I have this code:
But I want to make pass1 harder to see so I want to encrypt it and use that as the var. Then I want to decrypt it at the if so that it is harder to be used to access secure information. How would I go about doing this?JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
var password; var pass1="PASSWORD-HERE"; password=prompt('Whats The Magic Word?',' '); if (password==pass1) alert('That Is Correct!'); else { window.location="SITE-LINK"; }
You keep going, have a Nice day!
Henry.
Before printing this message, make sure is necessary.
Henry.
Before printing this message, make sure is necessary.
![]() |
Similar Threads
- Code Snippet: Encrypt and Decrypt (Visual Basic 4 / 5 / 6)
- Encrypt and decrypt an existing column (MySQL)
- Encrypt/Decrypt a string (C++)
- How to Encrypt and Decrypt using C# in window base programme (C#)
- How to encrypt and decrypt a password? (JSP)
- MembershipProvider encrypt/decrypt methods (ASP.NET)
- encrypt and decrypt query string (VB.NET)
- Need help to encrypt and decrypt password in VB (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: IE selection() issue
- Next Thread: Enable/Disable Button using Ajax?
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array beta box browser captchaformproblem cart child close codes column css date debugger decimal dependent design disablefirebug dom download element embed engine enter error events ext file firefox focus form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html ie7 ie8 iframe index java javascript javascripthelp2020 jquery jsp jump libcurl listbox maps masterpage math media menu microsoft mimic mp4 onerror onmouseoutdivproblem onmouseover onreadystatechange paypal pdf php position post problem programming prototype rated rating redirect safari scale scriptlets scroll search security select software star starrating synchronous toggle unicode variables w3c web webservice window windowofwords xml \n





