| | |
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 ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box browser calendar captchaformproblem cart close codes column css date debugger decimal dependent design dom download dropdown element embed enter error events firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe image() index java javascript javascripthelp2020 jawascriptruntimeerror jquery jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 onerror onmouseover paypal php player position post problem programming prototype rating redirect regex safari scale scriptlets search security select software sql starrating synchronous text textarea toggle unicode validation variables w3c webservice website window windowofwords windowsxp xml





