首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更好的密码管理?

更好的密码管理?
EN

Unix & Linux用户
提问于 2017-12-29 21:43:42
回答 1查看 298关注 0票数 3

我使用KeePass管理我的大部分密码,但我目前仍在一些不太习惯的地方用明文存储密码:+ .muttrc中的smtp凭据+ .offlineimaprc中的imap凭据+ .vdirsyncer/config中的caldav /cardav的Nextcloud凭据

vdirsyncer文档为使用经过钥匙圈提供了一些建议,但我进入了Keyring设置过程的几个步骤,并意识到为了使其正常工作,我必须做一些故障排除(我正在使用Gnome,它默认为KDE钱包…)。在我进入兔子洞之前,我想知道是否有一个可靠的解决方案,可以满足所有三个需求。

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2018-01-03 18:29:36

最后我和pass一起去了--

我的.vdirsyncer/config使用password.fetch = ["command","pass","Nextcloud/user"]检索密码。

.offlineimaprc

代码语言:javascript
复制
[general]
accounts = Example
pythonfile = ~/.offlineimap/pass.py

[Repository ExRemote]
type = IMAP
remotehost = ...
cert_fingerprint = ...
remoteuser = user@example.com
remotepasseval = get_pass("user")
ssl = yes 

然后.offlineimap/pass.py包括以下内容:

代码语言:javascript
复制
#! /usr/bin/env python2
from subprocess import check_output

def get_pass(account):
    return check_output("pass Example/" + account, shell=True).splitlines()[0]

我仍然在微调我的.muttrc设置。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/413728

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档