问题标签 [pgp]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
security - PGP 和 SMIME 的区别
我想知道为什么需要两个安全的电子邮件标准。如果我没有完全错的话,现在 PGP 和 SMIME 基本上提供了或多或少相同的功能。
过去,不同之处在于 PGP 建立在信任网络之上,而 SMIME 始终使用第三方受信任方。但与此同时,我认为您也可以使用 CA 配置 PGP。此外,PGP 旨在仅加密普通邮件消息,而 SMIME 还可以解密附件。但与此同时,我确信 PGP 也可以做到这一点。
所以问题是:这两种协议有什么区别吗?
非常感谢,安德鲁
security - IPSec vs OpenSSL vs PGP
IPSec is employed at the IP level, SSL at the transport level and PGP at the application level. In some lecture not it says:
IPSEC: Most general solution but least flexible SSL: Still very general and some flexibility PGP: Least general but very flexibel.
I guess the general refers to what kind of protocol I can secure. With IPSEC I can secure everything that uses TCP or UDP. PGP is the least general because it just encrypts emails and is therefore very specific. Is that understanding right?
However I have no idea for what the flexibilty refers in this context, anyone an idea? Has this to do with extensibility?
Thanks
package - 使用文件打包应用程序
我目前正在开发一个应用程序,该应用程序将使用 C# 中的 bouncy castle api 进行加密/解密,我已经完成了所有公共/私有和密码短语密钥加密/解密工作,但还需要能够创建加密的自我解密档案,我读过最好的方法是使用我编写的密码加密文件加密文件并创建一个轻量级表单应用程序来解密文件,我已经这样做了,但我的问题是现在如何将表单应用程序与文件打包,以便我可以自动将文件保存在某处,启动传递文件位置的表单应用程序,以便用户指定他们想要保存解密文件的位置并输入他们的密码?
提前谢谢了
encryption - 使用 gpg 就地加密
是否可以强制 gpg 进行就地加密?换句话说,用加密数据覆盖源(未加密)文件?
这就是 ccrypt(1) 默认的操作方式。
encryption - PGP Decrypt using ANT
We have an ant build file that needs to encrypt/decrypt a bunch of files using a PGP Public Key.
Is there a native (or library) ant task to do so. I really would like to avoid solutions that involve the use of <exec>
(unless ther is no other way around).
Much obliged
pgp - 我可以使用 PGP 桌面加密文件并使用 OpenPG 或 GPG4Win 解密它吗?反之亦然
我想知道是否可以使用 PGP Desktop 加密和使用 GPG4Win 或 Vice Versa 解密,或者我是否必须对加密和解密这两个过程使用相同的客户端?
java - 如何使用 BouncyCastle 生成没有密码的 OpenPGP KeyPair?
我正在开发一个需要为公钥加密生成 GPG 密钥的项目。我选择的语言是 Scala,加密的库是BouncyCastle
密钥生成工作正常,但我找不到没有密码短语来生成密钥的方法。在 BounceyCastle 中生成密钥的每个类和每种方式都需要一个密码。
使用空密码短语会导致 gpg 在解密/签名时仍然要求我输入它,传递 null 会在密钥生成时引发异常。
这是我正在使用的代码(已删除导入):
c# - Bouncycastle PGP 解密期间的 PartialInputStream
我正在尝试解密我刚刚使用 bouncycastle 加密的文件,但我得到了这个异常:
我正在使用来自 bouncycastle 的示例代码并且没有改变任何东西。
当我使用此代码进行加密时,我得到了这个:
我认为这与PgpLiteralDataGenerator
. 但我需要使用它,因为我想加密来自字节数组的数据,而不是来自文件。还有其他方法可以做到这一点吗?
command-line - 如何从 PGP 命令行代码中获取返回码
我正在使用 McAfee E-Business Server v8.6,我想从命令行的加密/解密命令中获取返回码。我从 PowerBuilder 运行上述代码。我想从配置中设置的日志文件中获取返回码。有人知道该怎么做吗?谢谢。
c# - PGP 加密 & PGP 解密
我在使用 BouncyCastle OpenPGP API 解密文件时遇到问题。我按照这篇文章:http ://rafayal.blogspot.com/2009/06/pgp-decryption-with-c.html来解密文件。但是,我收到一个错误,指出每当我实例化 PGPDecrypt 对象时 KeyID 不能为空。
我正在使用 Gpg4Win 工具集上的 Kleopatra 创建密钥。
在 PGPDecrypt 类中,当 PGPKeys 对象被实例化(特别是 PgpPublicKey 对象)时,我收到指出 KeyID 不能为空的错误。可以请一些人帮忙。
太感谢了。