PHP Classes

This is a good class and useful for security in data transmis...

Recommend this page to a friend!

      Encryption Class  >  All threads  >  This is a good class and useful for...  >  (Un) Subscribe thread alerts  
Subject:This is a good class and useful for...
Summary:Package rating comment
Messages:10
Author:Josť Filipe Lopes Santos
Date:2008-10-29 13:20:56
Update:2009-05-28 15:33:31
 

Josť Filipe Lopes Santos rated this package as follows:

Utility: Good
Consistency: Sufficient
Examples: Good

  1. This is a good class and useful for...   Reply   Report abuse  
Picture of Josť Filipe Lopes Santos 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 ... !!

  2. Re: This is a good class and useful for...   Reply   Report abuse  
Picture of krem lopez krem lopez - 2009-05-23 20:03:37 - In reply to message 1 from Josť Filipe Lopes Santos
Hola Jose,

Do you know exactly how to implement it in my form? And ho does the client decrypt the information on his end?

  3. Re: This is a good class and useful for...   Reply   Report abuse  
Picture of Josť Filipe Lopes Santos Josť Filipe Lopes Santos - 2009-05-25 17:50:52 - In reply to message 2 from krem lopez
Hi !!

Its too simple ... !! loool

To encript:
$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))];

// encript
$enc_key = crypt($key)


To decrypt:
// 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 ??

Bye

  4. Re: This is a good class and useful for...   Reply   Report abuse  
Picture of krem lopez krem lopez - 2009-05-25 18:19:30 - In reply to message 3 from Josť Filipe Lopes Santos
Hello Jose,

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! :)

k.

  5. Re: This is a good class and useful for...   Reply   Report abuse  
Picture of Josť Filipe Lopes Santos Josť Filipe Lopes Santos - 2009-05-26 12:18:42 - In reply to message 4 from krem lopez
See section documentation
pt.php.net/manual/en/book.session.p ...

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 ??

Bye

  6. Re: This is a good class and useful for...   Reply   Report abuse  
Picture of krem lopez krem lopez - 2009-05-26 18:36:57 - In reply to message 5 from Josť Filipe Lopes Santos
Hello there,

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.

Take care,

k.

  7. Re: This is a good class and useful for...   Reply   Report abuse  
Picture of Josť Filipe Lopes Santos 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
devzone.zend.com/article/1265

  8. Encryption Procedure   Reply   Report abuse  
Picture of krem lopez krem lopez - 2009-05-27 16:07:43 - In reply to message 7 from Josť Filipe Lopes Santos
Hello there,

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,

k.


  9. Re: This is a good class and useful for...   Reply   Report abuse  
Picture of Josť Filipe Lopes Santos Josť Filipe Lopes Santos - 2009-05-28 11:44:11 - In reply to message 8 from krem lopez
Hi !

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

  10. Thank you!   Reply   Report abuse  
Picture of krem lopez 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.

Take care,

k.

 
For more information send a message to info at phpclasses dot org.