Date: 01/08/01
- Next message: cynic <email protected>: "[PHP-DEV] PHP 4.0 Bug #8589 Updated: drwatson32 make a dump when stop apache service"
- Previous message: Stanislav Malyshev: "Re: [PHP-DEV] Pretty mammoth security issue with safe_mode_exec"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>]
Sent: Monday, January 08, 2001 9:37 AM
To: php-dev <email protected>
Cc: php-general <email protected>; php-pear <email protected>
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: cynic <email protected>: "[PHP-DEV] PHP 4.0 Bug #8589 Updated: drwatson32 make a dump when stop apache service"
- Previous message: Stanislav Malyshev: "Re: [PHP-DEV] Pretty mammoth security issue with safe_mode_exec"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

