开发者

Signing a hash using MSVC++

开发者 https://www.devze.com 2023-02-02 10:58 出处:网络
My program which is written in MSVC++need to sign a h开发者_运维技巧ash. I\'ve found an example from msdn

My program which is written in MSVC++ need to sign a h开发者_运维技巧ash. I've found an example from msdn

Can any one please tell how can i use my custom private key to sign the hash. In the example i could not see it accepting a user defined key/text.

Also, please tell me if it is good to store a public key in a text file.

Thank you, John


Within the Example C Program: Encrypting a File session key derived from a password is used to encrypt data. Of course you have to know the password otherwise you can not be sure who decrypted (or signed in your case).

It's mandatory to make the public part of the key available to everyone otherwise verifying the signature is not possible to someone else. A text file is also ok.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号