password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 5afc207d28f290936dca8fcdcab3157d3056379a
parent 7ff656179de5ab3b526dbf5a372ecdfcb0d7fab6
Author: Von Welch <von@vwelch.com>
Date:   Mon, 11 Feb 2013 22:08:30 -0500

keepassx2pass.py should handle empty passwords and entry names containing slash ('/') characters

Diffstat:
Mcontrib/keepassx2pass.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/keepassx2pass.py b/contrib/keepassx2pass.py @@ -11,13 +11,14 @@ from xml.etree import ElementTree def path_for(element, path=''): """ Generate path name from elements title and current path """ - title = element.find('title').text + title = element.find('title').text.replace("/", "|") return '/'.join([path, title]) def password_data(element): """ Return password data and additional info if available from password entry element. """ - ret = element.find('password').text + "\n" + passwd = element.find('password').text + ret = passwd + "\n" if passwd else "\n" for field in ['username', 'url', 'comment']: fel = element.find(field) if fel.text is not None: