Language Selection

English French German Italian Portuguese Spanish

How to create a command-line password locker

Filed under
HowTos

Like many people, I have too many passwords to remember. To keep them straight, I wrote a simple password locker script using dialog and GnuPG (GNU Privacy Guard). The script prompts the user for a master password using a dialog box, unencrypts a file that holds a list of passwords, and opens the file in a text editor. When the editor is closed, the script re-encrypts the password file.

Dialog is an ncurses-based utility for providing text-based message and input boxes. GnuPG is a free implementation of the OpenPGP standard. Both applications are available as binary packages on Debian-based systems.

First, I had to create an encryption key using the command gpg --gen-key. I was prompted for the type of key I wanted to generate. Some keys were labeled "sign only," but I needed to use my key to encrypt data, so I selected "DSA and Elgamal" (which wasn't marked sign only). The only other important thing about the questions that followed was that I needed to remember what I typed when prompted for the "Real Name," because it is used when you encrypt.

Once I successfully generated my key, I needed to create a password file and encrypt it.

Full Story.

More in Tux Machines

Dutch share code and concepts of base registry

The Dutch government has made available as open source a catalogue of data and concepts used in the country’s ‘System of Basic Registrations’. The aim is to provide users and suppliers a comprehensive view of the system, and to make it available for reuse. Read more

​Canonical and Juniper team up on carrier-grade OpenStack SDN

Everyone loves clouds these days. But telecomm companies are understandably cautious about entrusting their technology to the cloud. Wouldn't you be if a failure mean dropping phone or data services to millions of customers? Still, Juniper Networks and Canonical, Ubuntu Linux's parent company are certain they can devise a carrier-grade OpenStack cloud for virtualizing core networks and network functions. Read more

Ubuntu Kylin 15.04 Makes It Easier for Windows Users to Adapt to the Unity Interface

The Ubuntu Kylin 15.04 Beta 1 (Vivid Vervet) operating system has also been released alongside the Kubuntu, Xubuntu, Lubuntu, Ubuntu GNOME, and Ubuntu MATE distributions, bringing a wide range of improvements, numerous updated components, as well as the usual bug fixes. We took the distribution for a test drive and created a nice screenshot tour for all users of the Chinese Ubuntu community. Read more

PlayOnLinux Reached To 4.2.6, Install Windows Apps And Games In Ubuntu Linux


playonlinux 4.2.6 released, install windows games on ubuntu linux

PlayOnLinux is a software designed to installWindows applications and games on Linux. The team released PlayOnLinux 4.2.6 recently with several improvements and bug fixes that makes it more stable and useful. Let's install it on Ubuntu and other Ubuntu derivatives.
 

Read At LinuxAndUbuntu