Solved

Using .NET for PGP encrypted query string

Posted on 2004-09-01
3
490 Views
Last Modified: 2010-04-11
I need to pass two params to a URL (black box). I am being told that as long as I concatenate the string of params (similar to "param1=A#param2=B"), I can then encrypt the string using PGP and pass that encrypted string as a single param to where it needs to go. I have been provided the target's public key.

According to documentation I have found, PGP needs to have a file to read from. Is there a way I can make this happen without writing to a file? I absolutely must use PGP and their public key to perform this encrypted query string method. I am using .NET on WinTel platform, VB or C# independent.
0
Comment
Question by:PDubs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Accepted Solution

by:
rsriprac earned 250 total points
ID: 11960846
If you are collaing GnuPGP, then you have to write to file or pipe it in via stdin.  This is because GnuPGP is a separate program.  This article might clear up some details:

http://www.codeproject.com/csharp/gnupgdotnet.asp

I would recommend using the wrapper class they provide

-Ram
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11982556
silly question:
  why do you encrypt params when everyone on world can easyly decrypt it with the public key?
  sounds like a useless use of encryption ...

PGP/GPG can either read the data or the public key from STDIN, some versions of PGP can also read from a previously opend file  handle (AFAIK up to PGP 6.5.3), both, GPG and PGP also support a --batch option for that purpose.
0
 

Author Comment

by:PDubs
ID: 12019869
Ram -- Good suggestion. It works like a charm.

Hoffmann -- I am limited to the requirements given to me, that's why.
0

Featured Post

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of you may be aware of the recent Google Docs scam emails that have been floating around coming from various people that you know. Here's a guide on identifying How To Identify the Scam Email You will see an email from someone you’ve had co…
The conference as a whole was very interesting, although if one has to make a choice between this one and some others, you may want to check out the others.  This conference is aimed mainly at government agencies.  So it addresses the various compli…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question