Get account data programatically from id-manager

Gergely Polonkai
Nov 18, 2016 :: 13:43

I recently started using id-manager. It is a nice little package that can store your passwords, encrypting them with GPG. My original reason was to store my GitHub access token for github-notifier, but it soon turned out, it’s not that easy.

id-manager is a nice package when it comes to storing your password, and retrieving them for your own eyes. But it cannot retrieve account data programatically. Taking a look into its source code, I came up with this solution:

I currently need only the account ID (ie. the username) and the password, but it’s pretty easy to add a macro to get the memo or update-time fields, too.

comments powered by Disqus

Gergely Polonkai is a systems engineer of a telco company, and also a freelancer self- and software developer.

He is learning about different IT subjects since the late 1990s. These include web development, application building, systems engineering, IT security and many others. He also dug his nose deeply into free software, dealing with different types of Linux and its applications, while also writing and contributing to some open source projects.

On this site he is writing posts about different stuff he faces during work (oh my, yet another IT solutions blog), hoping they can help others with their job, or just to get along with their brand new netbook that shipped with Linux.

“I believe one can only achieve success if they follow their own instincts and listen to, but not bend under others’ opinions. If you change your course just because someone says so, you are following their instincts, not yours.”