Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-01-2011, 06:46 PM   #1
Registered: Oct 2006
Posts: 295

Rep: Reputation: 31
How can i send a text and its sign in a url?


I want to send a text and it's sign in a url.
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...


Last edited by Felipe; 09-01-2011 at 06:59 PM.
Old 09-02-2011, 11:56 AM   #2
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
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.
Old 09-02-2011, 12:01 PM   #3
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
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.


encode, md5sum, signing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl script to parse url from xml URL Freaksta Linux - General 1 01-20-2011 08:46 PM
Cannot Redirect URL to another URL when the link is down with Squid marx_long Linux - Newbie 1 06-13-2010 09:59 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 11:40 PM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 10:51 AM
send an XML doc from perl to an URL... kdowney Programming 1 10-30-2003 09:30 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration