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

Android Leftovers

Mining cryptocurrency with Raspberry Pi and Storj

I'm always looking for ways to map hot technologies to fun, educational classroom use. One of the most interesting, and potentially disruptive, technologies over the past few years is cryptocurrencies. In the early days, one could profitably mine some of the most popular cryptocurrencies, like Bitcoin, using a home PC. But as cryptocurrency mining has become more popular, thanks in part to dedicated mining hardware, the algorithms governing it have boosted computational complexity, making home PC mining often impractical, unprofitable, and environmentally unwise. Read more

Latest Openwashing and Attacks on FOSS

Systemd, Devuan, and Debian; FOSS at the Back End

  • Systemd, Devuan, and Debian
  • Devuan ASCII sprint -- 15-16-17 Dec. 2017
  • This open-source, multicloud serverless framework claims faster-than-bare-metal speed
    The move toward fast, serverless computing technology got a boost this month from Iguazio Systems Ltd. The data platform company (named from the Iguazu waterfalls in South America) announced the release of Nuclio, an open-source, multicloud serverless framework that claims faster-than-bare-metal speed. “We provide one platform, all the data services that Amazon has, or at least the ones that are interesting, serverless functions, which are 100 times faster, and a few more tricks that they don’t have,” said Yaron Haviv (pictured), founder and chief technology officer of Iguazio Systems. “We do fewer services, but each one kicks ass; each one is much faster and better engineered.”
  • CORD Says It’s the De Facto Choice for Edge Computing
    The Open Networking Foundation (ONF) today released 4.1 of its Central Office Re-architected as a Data Center (CORD) code. CORD has only been around as an independent project within ONF for about a year and a half, but with this release a couple of things have gelled for the project. First, it has merged its residential-CORD, mobile-CORD, and enterprise-CORD into one overarching project. Secondly, the ONF has realized CORD’s relevance in edge computing and edge cloud data centers.