Click here to Skip to main content
16,005,437 members
Home / Discussions / Web Development
   

Web Development

 
GeneralAbt html drop down combo Pin
Anita Mistry20-Aug-05 2:22
Anita Mistry20-Aug-05 2:22 
GeneralRe: Abt html drop down combo Pin
Vasudevan Deepak Kumar23-Aug-05 0:49
Vasudevan Deepak Kumar23-Aug-05 0:49 
GeneralRe: Abt html drop down combo Pin
Vasudevan Deepak Kumar23-Aug-05 0:52
Vasudevan Deepak Kumar23-Aug-05 0:52 
QuestionHow to use Shockwave Flash Object?? Pin
zhouyinhui19-Aug-05 18:34
zhouyinhui19-Aug-05 18:34 
AnswerRe: How to use Shockwave Flash Object?? Pin
code-frog19-Aug-05 19:11
professionalcode-frog19-Aug-05 19:11 
Generalencrypt and decrypt Pin
GeordieWebProgrammer19-Aug-05 4:57
GeordieWebProgrammer19-Aug-05 4:57 
GeneralRe: encrypt and decrypt Pin
Guffa19-Aug-05 22:36
Guffa19-Aug-05 22:36 
GeneralRe: encrypt and decrypt Pin
alex.barylski21-Aug-05 10:00
alex.barylski21-Aug-05 10:00 
So basically your looking for a poor man's SSL??? Smile | :)

It is possible, but it's not easy...

You will need to find an encryption algorithm (ie: blowfish, RSA, etc) written in both Javascript and ASP.

I think: Using Javascript you will can capture the onsubmit() and call your encryption function passing it the string you want to encrypt.

Here is the tricky part:

Most easy to use encryption algorithms like RSA, Blowfish, etc are private-key encryption algorithms, which means you use the same password for both encryption and decryption.

This makes for an interesting problem:

How do you encrypt your data on the client side using the same password you will use to decrypt it on the server side of things??? You need to store the password in Javascript somewhere in order to encrypt properly...

If a password is stored in Javascript...you just lost all security Frown | :(

There is the caveat in encrypting/decrypting data over an HTTP connection. You can do it, but there is almost no point...

However, I have considered the following technique in the past to circumvent this problem.

You have the user enter the password in a FORM password element and encrypt/decrypt using this dynamically provided password instead of hardcoded passwords visible to anyone who knows how to save a web page to their harddrive.

Again a problem arises: Can you request a user to enter a password each and every time you submit the encrypted string?

Cheers Smile | :)

It's frustrating being a genius and living the life of a moron!!!
GeneralRe: encrypt and decrypt Pin
Vasudevan Deepak Kumar23-Aug-05 0:40
Vasudevan Deepak Kumar23-Aug-05 0:40 
GeneralOn-click events for dynamically created buttons Pin
wpcolleen19-Aug-05 4:20
wpcolleen19-Aug-05 4:20 
GeneralRe: On-click events for dynamically created buttons Pin
Diep-Virezer20-Aug-05 9:35
Diep-Virezer20-Aug-05 9:35 
Generalwebservice Pin
WDI18-Aug-05 20:46
WDI18-Aug-05 20:46 
GeneralRe: webservice Pin
Guffa18-Aug-05 22:01
Guffa18-Aug-05 22:01 
GeneralXML-RPC from PHP Pin
progman18-Aug-05 12:22
progman18-Aug-05 12:22 
GeneralJavascript: Cursor position in Textare Pin
bin_bin118-Aug-05 9:33
bin_bin118-Aug-05 9:33 
GeneralRe: javascript Cursor position in Textare Pin
alex.barylski21-Aug-05 10:17
alex.barylski21-Aug-05 10:17 
GeneralSMTP Question Pin
sweep12318-Aug-05 5:55
sweep12318-Aug-05 5:55 
GeneralRe: SMTP Question Pin
Guffa18-Aug-05 9:16
Guffa18-Aug-05 9:16 
GeneralRe: SMTP Question Pin
Grahamfff18-Aug-05 10:47
Grahamfff18-Aug-05 10:47 
QuestionIs there way to save complete web page? Pin
AlKoltsov17-Aug-05 22:50
AlKoltsov17-Aug-05 22:50 
AnswerRe: Is there way to save complete web page? Pin
Andy Brummer18-Aug-05 13:14
sitebuilderAndy Brummer18-Aug-05 13:14 
Generalsplash screen Pin
raj_marthy17-Aug-05 17:57
raj_marthy17-Aug-05 17:57 
GeneralRe: splash screen Pin
Christian Graus17-Aug-05 17:58
protectorChristian Graus17-Aug-05 17:58 
GeneralRe: splash screen Pin
MoustafaS18-Aug-05 9:32
MoustafaS18-Aug-05 9:32 
Generaljavascript textarea problem. Pin
bin_bin117-Aug-05 13:13
bin_bin117-Aug-05 13:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.