LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-01-2011, 05:46 PM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Rep: Reputation: 31
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.
 
Old 09-02-2011, 10:56 AM   #2
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 111Reputation: 111
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, 11:01 AM   #3
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

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


Reply

Tags
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 07:46 PM
Cannot Redirect URL to another URL when the link is down with Squid marx_long Linux - Newbie 1 06-13-2010 08:59 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 09:51 AM
send an XML doc from perl to an URL... kdowney Programming 1 10-30-2003 08:30 AM


All times are GMT -5. The time now is 04:49 AM.

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