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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.