查看.gpg文件内容

发布于 2024-10-09 03:45:48 字数 215 浏览 0 评论 0原文

我正在编写一个 C 应用程序,我想知道是否有办法查看 .gpg 文件内容(然后是加密内容)。有问题的 .gpg 文件涉及我加密的一个简单的 .txt 文件。 我了解一点GPGME,它的功能可能吗?或者其他方式...

编辑:我想一件事:如果我的应用程序使用“--armor”选项,我有一个 ASCII 模式的 .gpg 文件而不是二进制...所以 .gpg 文件可以简单地读取,真的?最简单的方法...

I'm writing a C application and I wanna know if there is a way to view .gpg file content (then the encrypted content). The .gpg file in question concerns a simple .txt file that I encrypted.
I know a bit GPGME, it's possible with its function? Or other ways...

EDIT: I thought one thing: if my application use "--armor" option, I've a .gpg file in ASCII mode and not binary...so the .gpg file can be read simply, true? The easiest way...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

微暖i 2024-10-16 03:45:48

libgcrypt

这是一个通用目的
基于的密码库
来自 GnuPG 的代码。它提供的功能
对于所有密码构建块:
对称密码(AES、DES、Blowfish、
CAST5、Twofish、Arcfour)、哈希
算法(MD4、MD5、RIPE-MD160、
SHA-1、TIGER-192)、MAC(适用于所有 HMAC)
哈希算法)、公钥
算法(RSA、ElGamal、DSA)、大型
整数函数、随机数和
很多支持功能。

libgcrypt

This is a general purpose
cryptographic library based on the
code from GnuPG. It provides functions
for all cryptograhic building blocks:
symmetric ciphers (AES, DES, Blowfish,
CAST5, Twofish, Arcfour), hash
algorithms (MD4, MD5, RIPE-MD160,
SHA-1, TIGER-192), MACs (HMAC for all
hash algorithms), public key
algorithms (RSA, ElGamal, DSA), large
integer functions, random numbers and
a lot of supporting functions.

相权↑美人 2024-10-16 03:45:48

您可以使用 GnuPG Made Easy 库,这里是一个 迷你指南 使用它。

You can use GnuPG Made Easy library, here is a mini howto on using it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文