severndigital Posted October 29, 2007 Share Posted October 29, 2007 Any ideas where to start on this?? I basically want to be able to encrypt a file before transmission and then send it securely then decrypt it on the other side. thanks, Chris Link to comment https://forums.phpfreaks.com/topic/75253-scp-like-file-encryption/ Share on other sites More sharing options...
mainewoods Posted October 30, 2007 Share Posted October 30, 2007 transmit it from where to where? Javascript has no built in encryption functions, but php does: --traditional method, uses the same key to encrypt/decrypt http://www.php.net/manual/en/ref.mcrypt.php --or use openSSL, the modern private/public key encryption system, uses different keys to encrypt/decrypt http://www.php.net/manual/en/ref.openssl.php free winzip has encryption built in, so you could winzip encrypt it and then upload it or send it as an email attachment, just send the password separately. Link to comment https://forums.phpfreaks.com/topic/75253-scp-like-file-encryption/#findComment-381186 Share on other sites More sharing options...
severndigital Posted October 30, 2007 Author Share Posted October 30, 2007 basically I want to transfer a file from the client to the server. I wanted to use some type of encryption to deter packet sniffers. I also wanted to bypass the need for an SSL key and keep the user at the http:// instead of https:// We use SCP to transfer between servers, I was hope to incorporate the same security into the client/server model. I was hoping for a prewritten ajax and or PHP class/function that would handle this. thanks, chris Link to comment https://forums.phpfreaks.com/topic/75253-scp-like-file-encryption/#findComment-381431 Share on other sites More sharing options...
mainewoods Posted October 31, 2007 Share Posted October 31, 2007 there's no php function that can encrypt a file on the client before uploading it. Ajax is actually a part of javascript and predefined functions in javascript are few. As well, javascript has no power to access a file on the client(big security problem if it could do that), and therefore could not 'convert' it. The only solution left would be have the person encrypt the file himself using some program on his local machine before upload. Link to comment https://forums.phpfreaks.com/topic/75253-scp-like-file-encryption/#findComment-381605 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.