Jump to content

SCP like file encryption


severndigital

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.