RE: [PHP] Emergency help
| From: | Wacks, David | Date: | Mon, 08 Jan 2001 16:48:26 +0000 |
| Subject: | RE: [PHP] Emergency help | ||
| Groups: | php.dev php.general php.pear | ||
| Request: | Send a blank email to php-dev+get-43401@lists.php.net to get a copy of this message | ||
If I understand correctly, you only want the person that knows the exact
name and date to be able to get the file.
The easiest way is to put it in a DB and encrypt (MD5 is fine) the key.
e.g. take the file name, append the date time so it is one string. encrypt
it and store that with the filename.
Then on a form (SSL if you want to further encrypt) prompt for the same
info. Your PHP cgi will append together, encrypt and compare to the stored
value. If it is correct, redirect to the file. Using an SSL allows this to
be an encrypted download at a slight cost of speed.
--Dave
________________________________
David C.Z. Wacks
Manager Internet Strategy
-----Original Message-----
From: Annie Chou [mailto:zhouzhen7391@hotmail.com]
Sent: Monday, January 08, 2001 9:37 AM
To: php-dev@lists.php.net
Cc: php-general@lists.php.net; php-pear@lists.php.net
Subject: [PHP] Emergency help
Hi ,
I am a PHP beginner. I have some problems to need some helps.
I created an encrypted file that include some sensitive data.
Then I don't want anybody else to decrypt it, the condition is that:
The final file caller must the exactly right caller and the created time is
the original time at which I encrypted file.
For example:
File A call B, B call C, I want to get A's filename and created time. If
they are match, return the decrypted file.
The question is how to get A's filename and created time???
And I don't want anyone see the source code, so I want to add the code as a
module or a binary file to PHP.
How can I get it???
The task is very emergent. Help!!!
If anyone can give me the answer I appreciate very much. Hope to hear you
soon.
Regards!
Annie Zhou
Jan 8, 2001