|Subject:||This is a good class and useful for...|
|Summary:||Package rating comment|
|Author:||Josť Filipe Lopes Santos|
Josť Filipe Lopes Santos rated this package as follows:
Josť Filipe Lopes Santos - 2008-10-29 13:20:56
This is a good class and useful for security in data transmission between client and server ... !! loool
But i think if the key is random (generated randomly), it is most secure ... !!
krem lopez - 2009-05-23 20:03:37 - In reply to message 1 from Josť Filipe Lopes Santos
Do you know exactly how to implement it in my form? And ho does the client decrypt the information on his end?
Josť Filipe Lopes Santos - 2009-05-25 17:50:52 - In reply to message 2 from krem lopez
Its too simple ... !! loool
$string = "abcdefghijklmnopqrstuvwxyz";
$key_length = 30;
$key = "";
// generates random positions of $string array, and append this char
for ($i = 0; $i <= $key_length; i ++)
$key .= $string[rand(0,strlen($string))];
$enc_key = crypt($key)
// compare if the password entered is equal to password encrypted
if (crypt($user_input,$enc_key) == $enc_key)
echo "password is ok";
Do you understand ??
krem lopez - 2009-05-25 18:19:30 - In reply to message 3 from Josť Filipe Lopes Santos
Unfortunately I'm not a PHP programmer. I do understand, however, how PHP works and I work with it all the time.
I create a form which works under a SSL cert. Now, do I add the first code to the PHP file that processes the form? And, to decrypt once I get the form email, what do I exactly do?
I know it is simple, yet I'm not a programmer and I need some basic instructions.
THANK YOU, for all your help! :)
Josť Filipe Lopes Santos - 2009-05-26 12:18:42 - In reply to message 4 from krem lopez
See section documentation
When the user enters in the register form, saves the encrypted password generated automaticaly (first section of the code encrypt), and send a confirmation link by email ... !!
Whe this user enters in login form, this enters these login and password, and to see if the password is valid, use second section, to compare if the introduced password is equal to encrypted password ... !!
Do you understand ??
krem lopez - 2009-05-26 18:36:57 - In reply to message 5 from Josť Filipe Lopes Santos
You explain how it works pretty well. Yet I understand that perfectly. But, it is not a registration form. It is a patient form that will be sent to an email address. It needs to be encrypted as it travels to the email address. Then, when my client opens the email he needs to be able to decrypt it. Do you understand?
Now, how do I do this with the class? I would like to get some instructions, not merely how it works.
Josť Filipe Lopes Santos - 2009-05-27 11:38:19 - In reply to message 6 from krem lopez
Well, this is more dificult ... !!
And i dont have experience with this case ... !!
But see this good article about this
krem lopez - 2009-05-27 16:07:43 - In reply to message 7 from Josť Filipe Lopes Santos
You have done a lot, and I thank you for that. What I don;t understand is that you have no experience yet you were able to tell me all you said?..
Take care and I will take a look at the info you sent.
Have a great day,
Josť Filipe Lopes Santos - 2009-05-28 11:44:11 - In reply to message 8 from krem lopez
I've a very experience with php ... !!
But with so mutch experience i have, i dont know all, as all the php professionals ... !!
And in the very specific areas as these to send encrypted mail to patients, i dont need anyone this, because if i need this, in this moment i know mutch about this and help better you ... !!
Seach in google
Google is your best friend !! loool
Have a good day
krem lopez - 2009-05-28 15:33:32 - In reply to message 9 from Josť Filipe Lopes Santos
Hello there and thank you for your help. I will find out a way to use it and perhaps post it in here.