adamneilson / password

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple command line password generator

A simple command line password generator that copies a newly created random password to the pasteboard. Built and used regularly on MacOS. With other OSs YMMV.

Installation

Prerequites

At time of writing I think Jot comes with MacOS as default. if not, you'll need to install that.

Install

Check out this repo to your local host and copy the file password somewhere on your PATH. For example:

cp password /usr/local/bin/password

Make it executable:

chmod 755 /usr/local/bin/password

To run

Open a terminal and run the command

$ password
Password is on your pasteboard

You'll find that you can then paste this nice new password anywhere you like.

Modifications

Password format is 18 characters mixed upper and lowercase, numbers and a few special characters. Some examples: CTupE9lKNfk2LtdnjV, QPAP7Il5g6Y_jwwlpj, lZJHKWCMaaQnJju3IF, Wl_Bz3QwAKr1USTs77 etc. It's pretty simple to change these in the main command. Future versions (who am I kidding... what future versions!!) may take arguments for variable length or conditional character sets.

If you'd like added security, uncomment the section of the password file that will overwrite the pasteboard after 30 seconds.

About


Languages

Language:Shell 100.0%