gpt4 book ai didi

python - python 中有独立的 pgp 实现吗?

转载 作者:太空宇宙 更新时间:2023-11-03 19:22:10 26 4
gpt4 key购买 nike

我所说的“独立”是指一个模块,它允许我的应用程序管理自己的 key 数据库,而不是将资源分配给与其运行的操作系统的用户帐户关联的数据库?

我红色了 python-gnupg 的文档,如果我理解正确的话,它依赖于用户本地 key 数据库。

我很高兴有一个可以在 Linux 上运行的解决方案。目前对其他平台的支持的优先级较低。

最佳答案

当您使用python-gnupg时您可以将其 GPG() 构造函数与 keyring 参数一起使用:

keyring (defaults to None) If specified, the value is used as the name of the keyring file. The default keyring is not used.

关于python - python 中有独立的 pgp 实现吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9335408/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com