取得私人&Lotus Domino中邮件加密和解密的公钥 [英] Get Private & Public Key For Encryption and Decryption of Mails in Lotus Domino

查看:61
本文介绍了取得私人&Lotus Domino中邮件加密和解密的公钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 id 文件包含私钥和公钥.公钥位于ID文件下的证书中,而私钥位于ID文件中,但不在证书中.问题是我怎么能通过我的java代码获得那些密钥.我需要加密和解密邮件.

I know id file contains Private and Public Key. Public Key is inside Certificate under Id File and Private Key is inside id file but not in the certificate. The Question is how can i get those keys through my java code . I need to encrypt and decrypt mails .

推荐答案

可以在Domino目录中找到公钥.您无需执行任何特殊操作即可加密电子邮件.Notes API会自动为您完成此操作.

Public keys can be found in the Domino Directory. You don't need to do anything special to encrypt emails. The Notes APIs will do that for you automatically.

解密是另一回事.私钥的全部要点是它是 private .输入密码后,您即可使用当前ID文件中的私钥,但是您无法访问任何其他私钥.私钥是使用密码派生的密钥加密的,如果有任何方法可以避免这种加密,那么它将不是私密的!

Decryption is another story. The whole point of a private key is that it is private. The private key in your current ID file is available to you after you type in your password, but you can't access any other private key. Private keys are encrypted using a password-derived key and if there was any way to get around that encryption, it would not be private!

因此,如果您尝试解密发送给用户的消息,那么唯一的方法是使用该用户的密码将当前ID切换为该用户的ID文件.

So, if you are trying to decrypt messages sent to users, the only way to do that is to switch the current ID to that user's ID file, using that user's password.

这篇关于取得私人&Lotus Domino中邮件加密和解密的公钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆