sue
01-10-2005, 02:44 PM
Message Encrypter
http://www.dynamicdrive.com/dynamicindex9/msgencrypter.htm
I am writing some code for a school in php that requires a password. My problem is that I need the person to log on with their password and then need to pass this password to other programs without them having to log in again on every screen. If I pass it as a parameter, then it appears in the address line. Sometimes I can pass it hidden in a form but it is still showing if someone views the source. What I would like to do is encrypt the password before sending it and unscramble it the other end. The message encrypter script seems to do what I want except that I do not know java and can't work out how to extract what I need from it. I would like a script that I can use by the first program: This script uses a password and code for encrypting it which I give it in my php code (not by asking the user). I then need a script for the receiving program that also knows the code to unscramble the encrypted password passed to it.
I don't know if this makes sense or if it is possible to interact between java and php this way. Perhaps there is another way of protecting passwords that is better. Any help you can give would be greatly appreciated.
Sue
http://www.dynamicdrive.com/dynamicindex9/msgencrypter.htm
I am writing some code for a school in php that requires a password. My problem is that I need the person to log on with their password and then need to pass this password to other programs without them having to log in again on every screen. If I pass it as a parameter, then it appears in the address line. Sometimes I can pass it hidden in a form but it is still showing if someone views the source. What I would like to do is encrypt the password before sending it and unscramble it the other end. The message encrypter script seems to do what I want except that I do not know java and can't work out how to extract what I need from it. I would like a script that I can use by the first program: This script uses a password and code for encrypting it which I give it in my php code (not by asking the user). I then need a script for the receiving program that also knows the code to unscramble the encrypted password passed to it.
I don't know if this makes sense or if it is possible to interact between java and php this way. Perhaps there is another way of protecting passwords that is better. Any help you can give would be greatly appreciated.
Sue