Digital signing suggestions

J

Joe

I want "sign" some files with company information but not necessarily all
files will be signed.
I came up with 2 options: 1 - sign the file itself or 2 - place an encrypted
hashtable or key/value pairs in the file and try to read it.

The file will only be signed by one person and the receiving person
(application) needs to read the signature information.

Also, what sort of decompiling risks are there?

If there are any examples around that would be great!

Thanks for any input,
Joe
 
P

Peter Huang [MSFT]

Hi Joe,

Here is a link about digital signing a file.
You may have a look.
Digitally Sign a PDF or Other Files
http://www.example-code.com/csharp/csSignPdf.asp

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Joe

Hi Peter,

The example in that link in based on a control. I was looking for some
actual code.

-Joe
 
P

Peter Huang [MSFT]

Hi Joe,

Sorry for any confusion.
Based on research, there is no such complete source code and solution
public.
Commonly we can use the .NET code as below to generate and verify
signatures. But for a mature solution, I suggest you use commercial
software.

Generating Signatures
http://msdn2.microsoft.com/en-us/library/6yxzeb7e(VS.80).aspx

Verifying Signatures
http://msdn2.microsoft.com/en-us/library/201yh4c4(VS.80).aspx

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top