Crypt large amount of data in PHP?

Just use SCP or SFTP. They'll use SSL for the actual data transmission, so you'll get the encryption stuff automatically. If you need to STORE the files in a crypted state, then you'll have to use mcrypt and its friends to do the encryption for you.

Just use SCP or SFTP. They'll use SSL for the actual data transmission, so you'll get the encryption stuff automatically. If you need to STORE the files in a crypted state, then you'll have to use mcrypt and its friends to do the encryption for you.As for the "data has to be smaller than the key" only applies in a one-time-pad situation.

Modern ciphers essentially always have keys that are smaller than the data being encrypted.... think of a large RAR or ZIP file - multi-megabytes of data, but a key (password) that's only a few characters in size.

SCP/SFTP is for the transfert, but data have to be crypted if the storage server is compromised. Mcrypt is slower than asymetric keys (but I maybe misuse it). And "data has to be smaller than the key" is still right for the openssl lib used by PHP.Exec() is not always availables on my customers' servers, and I bet GPG/PGP or ZIP/RAR/GZ/BZ2/... crypt data by small chunks, as I do.

If I am completly wrong, please help me to understand how to do this according to my needs. – Cédric Girard Jul 19 '11 at 20:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions