?
Solved

How to make a 64 byte signed hash of a string with .pfx file in .NET

Posted on 2006-06-05
4
Medium Priority
?
468 Views
Last Modified: 2009-03-31
Hello,

I am using .NET.
I need an example code, that I can use to sign a hash of a string with a certificate in .pfx file, and then to verify it. The signed hash must be 64 bytes. I can't use CAPICOM, because it generates a signature that includes the certificate in it, so it becomes too long.

Thanks,
Alex
0
Comment
Question by:Alex7777qq
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
tnapolitano earned 1000 total points
ID: 16847965
I see that your requirement is not to use CAPICOM, but have you tried "Sign Tool" (SignTool.exe).

SignTool
http://msdn2.microsoft.com/en-us/library/8s9b9yaz.aspx

How sign the code by own certificate and install the certificate on device
http://www.codeproject.com/useritems/signcode.asp

0
 

Author Comment

by:Alex7777qq
ID: 16924051
I would like to do the signing with code, not manually.
0
 
LVL 3

Expert Comment

by:tnapolitano
ID: 16927362

Am I missing something, Alex? SignTool.exe is a command line tool. That means it CAN be scripted. In fact the whole Code Project article pretty much shows you how to do it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

864 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