Solved

Using .NET for PGP encrypted query string

Posted on 2004-09-01
3
498 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
With the rising number of cyber attacks in recent years, keeping your personal data safe has become more important than ever. The tips outlined in this article will help you keep your identitfy safe.
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 …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

622 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