Wrox Programmer Forums
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2004, 01:15 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default pgp file?

Hi,
I have a pgp encrypted file. I need to have a c# component read this file, make a copy of it, and write it out to a folder. In order to keep the pgp file intact so it can still be decrypted, how do I do that? I'm thinking I must specify that the file coming in is in binary format and write it out in binary so I don't screw up the incoming file, but I'm not sure. Can anyone help please?

thanks
Kevin


 
Old July 26th, 2004, 07:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

I'm not sure why you fear that just reading a file would corrupt it.

About the other things, I'm not completely sure about what you are doing but reading a file in binary mode and writing it out in a new file works in almost every situation.

Ankur





Similar Threads
Thread Thread Starter Forum Replies Last Post
Decrypting pgp files with vbscript tonyromero99 VBScript 4 June 4th, 2008 04:09 AM
PGP Encryption everest C# 2005 4 October 28th, 2007 08:20 PM
Identifying a PGP file bnraju1 BOOK: Beginning Cryptography with Java 4 July 13th, 2007 04:05 PM
How to display .tif file, .pdf file and .jpg file phuong171 ASP.NET 1.0 and 1.1 Basics 1 March 13th, 2007 07:29 AM
PGP (GPG) / PHP Help! URGENT!!!!!!!! cmiller PHP How-To 1 July 13th, 2004 06:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.