The Gregory Jay Blog



My Password Manager

The first real password manager I used was lastpass and it worked really well, stored usernames, passwords and comments etc. But after using lastpass for a while I read about a security breach they had (though I don't think any sensitive information was taken.) It was at this time that I started doing regular exports of my lastpass data and where better to save them but in a truecrypt container (this was way before it stopped being maintained.) Exporting my data made me feel somewhat safer, if there was another breach and details got stolen or data got wiped, I just needed to use my backup to go to each site and change my passwords. I didn't think much more of it until I read about lastpass being sold to another company, LogMeIn.

This was around the time that I was reevaluating and reassessing who I wanted to be storing and getting their hands on my data. I was working in the IT department of a Biotech company in Beijing and so security was something I was constantly thinking about at work, it got to a point that I had start applying the same ideas to my personal data. I had previously been using dropbox, google drive, onedrive, evernote etc. And so I started the process of 'degoogleing' myself - But thats for another post...

My first idea was to import the .xml file from lastpass into a spreadsheet and keep that in a truecrypt container but it was far too clunky a process to get a password; opening the container, opening the spreadsheet finding the website and login details then copying and pasted as needed.

I realised I needed to find another program with similar functionality and so I made a list of requirements in order of priority, which looked something like this:

The only other program I seriously considered using was Keepassx which fulfills all of the requirements however I just didnt find it quick enough. Coming from lastpass which would log me in automatically or at least have my password pasted and ready for me to log in, having to open keepass just seemed to be too much of a stall to my workflow. So I thought I'd just have to build something myself that would better do what I wanted.

I decided to use sqlite for my database as I've used it before and am fairly familiar with it, its simple enough and the database file can be easily synced. As I use the BASH shell on all my machines I decided to write my script in bash, though I'd make it posix compliant if anyone wanted it. And as long as I have the container file I can still manually decrypt it and query the database if I ever needed to. DMenu is used for selecting the password wanted which is brought up instantly from a keybinding and copies the password straight to my clipboard using xclip ready to be pasted. The script has gone through many iterations, I now use it to add, delete and get passwords rather than having 3 seperate scripts as I was before. I'm still using Truecrypt now as I don't really see a need to move to veracrypt or an alternative but as far as I'm aware this would still work on veracrypt.

I have now been using this script as my only password manager for over 5 years and I'm quite happy with it. I use a key file on a USB stick to decrypt the Truecrypt file container, as having a long password was slowing me down a little, I think this is a good compromise.

It doesn't meet all the requirements (It doesn't generate passwords, yet.) But I'm happy enough with it.

The script can be found on my github.

Greg is a true Sinophile, fluent in Chinese and proficient in Tibetan he is a homeschooling Dad that also consults on the side. You'll often find him cigar in mouth, book in hand, waiting for someone to finish their work or for the coffee to brew.

17.04.2021  

Homeschool Redesign

Education

Since moving into our new house we never really settled on where we should be doing all of our homeschooling and sometimes we've lost momentum because of it. It's time I redesigned our homeschool!


14.04.2021  

Dharamsala

Album

Photos of Dharamsala


14.04.2021  

Tan Zhe Temple

Album

Photos of Tan Zhe Temple


11.04.2021  

Keto in China is easy!

Blog

I have been doing keto here in China for over 3 years now and I'm convinced it's easier here than anywhere else.


09.04.2021  

Tianjin TV Tower

Album

Photos of the Tianjin TV Tower


03.04.2021  

Why we use the Classical Model

Education

I was recently asked why ew use the classical model for homeschooling our son - this is what I meant to say.


03.04.2021  

Cigars - The Best Medicine

Blog

Having been a cigar smoker for well over a decade now, I see that it really is the solution for all of life's woes. Well maybe I wouldn't go quite that far but I always feel positive and energised after a good cigar, and maybe not for the reason you think.


19.03.2021  

New Tab Perfection

Linux

Having more control over what shows up when I open a new tab and the way it shows up is a part of my workflow that I had been overlooking. I've recently brought it in line with Unix philosophy of 'do one thing and do it well.'


17.02.2021  

Getting Things Done

Blog

A Rambly blog about how I use GTD and how my system has changed over the years.


17.02.2021  

Winter 2020

Album

Us over Christmas and winter 2020


04.02.2021  

The Crumpet Business

Blog

I managed to to start a crumpet business almost by accident, but it's going well and orders are still coming in daily!


03.01.2021  

Deciding on a New Year's Resolution

Blog

This year I had trouble trying do think of a New Year's resolution, not that I necessarliy need one but it is good to give the year some direction and to have something to focus on. I think I might have found something now though


06.12.2020  

My Password Manager

Linux

Long ago I gave up using someone else's password manager, hoping that they would keep my most sensitive data safe and protected and decided to create my own.


05.12.2020  

Why We Homeschool Part 1

Education

This post ended up longer than I had intended so I have split it up into two sections. This is the first. Why we homeschool: Problems with the education system.


05.12.2020  

November 2020 Album

Album

This post ended up longer than I had intended so I have split it up into two sections. This is the first. Why we homeschool: Problems with the education system.


23.11.2020  

DWM is configured!

Linux

The process of setting up DWM has really brought me round to the 'suckless way' of patching rather than configuring, this is a post about me going through the process of setup, patching and configuration of my nice new window manager.


20.11.2020  

Building an History Curriculum

Education

I am currently in the throws of creating a new history curriculum, from scratch, for my homeschooler. In this post I talk about the reasons why I have decided to do such athing and the problems that I have already hit even though I haven't even started yet.


19.11.2020  

Productive Procrastination, Well Kinda...

Blog

After deciding to start updating my website a little more regularly I, instead of actually doing it, procrastinated for a week or so, productively I assure you!


18.11.2020  

Configuring DWM

Linux

After installing DWM, I am undecided as to whether to stick with it or not. I though i'd use this blog post as a way to think through the decision.


13.11.2020  

A new wm (Window Manager)

Linux

I'm a list maker! Almost every decision I make requires me to make a list. Here I make a list on what I don't like about i3, my current window manager and what I want out of a new one, hopefully I'll choose one after this!


05.12.2020  

The Train Tracks 2020 Album

Album

This post ended up longer than I had intended so I have split it up into two sections. This is the first. Why we homeschool: Problems with the education system.


05.12.2020  

Lockdown! 2020 Album

Album

This post ended up longer than I had intended so I have split it up into two sections. This is the first. Why we homeschool: Problems with the education system.


05.12.2020  

Back to Normal! Album

Album

This post ended up longer than I had intended so I have split it up into two sections. This is the first. Why we homeschool: Problems with the education system.


05.12.2020  

Summer 2020 Album

Album

This post ended up longer than I had intended so I have split it up into two sections. This is the first. Why we homeschool: Problems with the education system.


05.12.2020  

October 2020 Album

Album

This post ended up longer than I had intended so I have split it up into two sections. This is the first. Why we homeschool: Problems with the education system.