LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How can i send a text and its sign in a url? (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-send-a-text-and-its-sign-in-a-url-900613/)

Felipe 09-01-2011 05:46 PM

How can i send a text and its sign in a url?
 
Hallo:

I want to send a text and it's sign in a url.
Ex:
Suppose I want to send "This is a text" and it's sign in the way:
wget http://server.domain/process?text=This%20is%20a%20text&sign=TextSign
with TextSign being the sign of the text to send (creating the sign with the privatekey).
As the server has the public key of the client, he can know if that text has been sent by the client.


What I'm doing now is:
- Create the md5sum of "This is a text" (generates a binary file).
- Encode the sign in base64 (generates a text file in base64)

The problem is that some characters are not send in base64 (Ex: +,/) in the url.
Can any tell me how can I sing text (using private key) and send the text and the sign in the url. And of course, how can decode it using the public key...

Thanks.

SL00b 09-02-2011 10:56 AM

You can't sign a URL. That has to be in plain text, or you'll get HTTP 404 - not found.

What you apparently want to do is use the https transport to get a file.

SL00b 09-02-2011 11:01 AM

Also, I think that transmitting both an encrypted message and its key in the same message would pretty much invalidate the entire point of encrypting transmissions.


All times are GMT -5. The time now is 06:45 PM.