I know if you transfer over SSL or SSH the connection is secure, but I was wondering if theres a way to have data on the server have some kinda encrytion on it, and through some auth script.. a user is privleaged enough to beable to download it, but instead of the user downloading the file in encrypted form.. is there a way to have a script decrypt the file as it is being sent to the user?
having tried it out yet, but using something like
umm..
load up the file data in $data
<blah blah blah binary header inclusion>
echo decrypt($data);
that should decrypt the data that the user is downloading right?
ummm, let me make sure I understand the question
Can I store encrypted data and then decrypt it before I send it out?
The answer is yes but you have to use a reversible form of encryption.
Yeah, like mcrypt.. but am I right.. that you do the decryption methods right after the binary inclusion header??