OwnBlog from DimiG    About    Archive    RSS

UNIX pass under Cygwin

For any IT system administrators and specialists there is a headache to remember a lot of working passwords in daily work. As you probably know is safe to use the different ones for better security. There are many password managers which collect and encrypt your passwords locally or remotely. The best way if your password manager is simple and follow the Unix philosophy. With pass, each password lives inside of a GNU Privacy Guard (GnuPG, GPG) encrypted file whose file name is the title of the website or resource that requires the password.

These encrypted files may be organized into meaningful folder hierarchies, copied from computer to computer and manipulated using standard command line file management utilities.

These advantages of pass bring this utility to higher level compare to competitors. The question only - can we trust gpg encryption algorithm?

Setup this utility on Linux or Mac OS platform is quite easy. Look onto official site. But if you plan to do it on Windows platform you can run into the problems. As a Gygwin geek I had the difficulty to find the right way of pass installation under the Cygwin. So here I’ll give the short info about installation. The pass manual you will find on the official pass site.

First of all you need to setup gpg, git, make, automake, tree and pwgen by Cygwin setup-x86_64.exe. Then create the encryption key for your system by:

$ gpg --gen-key

Don’t forget to protect the key by password and expiration date. More detailed information is in GPG manual.

Next download the password-store from here and extract it to temporary directory inside Cygwin. Change to extracted directory and give the command:

$ make install

This will install pass to /usr/bin/pass within the Cygwin environment.

Now use pass as usual on your system.
If any questions or suggestions write in comments below. Have a good day!