在 Delphi 中使用 Sha-1 和证书签署 S/Mime 消息
上下文:Delphi 2007
我将要发送一条 S/MIME 消息。有一个证书用于对消息进行签名。还有一个证书,我猜其中包含进行签名所需的密钥。应该使用 Sha1
我已经看过一些 sha1 代码示例,以及一些处理证书/密钥的示例,但实际上并不是一个很好的组合它们的示例。
我自己看到了一些很好又简单的东西,比如下面的代码
someObj = new SomeObj("key/cert", "sha-1");
hashedMessage = so.Hash("orignal message");
Context: Delphi 2007
I am about to send an S/MIME message. There is a certificate which shall be used to sign the message. Also have a certificate which I guess includes the key(s) needed to do the signing. Sha1 should be used
I have seen some sha1 code examples, and a few examples that deals with certs/keys but not really a good one combining them.
I see for myself something nice and easy like the code below
someObj = new SomeObj("key/cert", "sha-1");
hashedMessage = so.Hash("orignal message");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论