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.
Last edited by Felipe; 09-01-2011 at 05:59 PM.
|