Project

pass

0.0
Low commit activity in last 3 years
No release in over a year
gem pass - Password Generator (CLI)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 12.0
~> 3.0
 Project Readme

pass

Gem Version Testing workflow

Description

The 'pass' command generates random passwords.

Installation

All you have to do is to install the gem

$ gem install pass

Usage

You can just run 'pass' to get one random password. Every time you run it, you will get a different password.

Each password has 20 characters and does not include ambiguous characters l o I O 1 " ' ` |. As default, a password consists of upper case letters, lower case letters, and numbers.

$ pass
phxeaYZm7wUF8ACRjuSP

$ pass
Vm8ukJsPfeZXvCASUYTM

If you need more passwords, you can specify the number of passwords.

$ pass 3
jMtfmQhXbFSJ2TpVrBey
48UKdpNLf6sxatmq2JzP
5JYuhCbSHqZatVwA8B97

You can specify the password length with -l or --length option.

$ pass -l 30
7wkxqiWXSYpPLnNsAyTeuU59dgmJFC

$ pass --length 50

You can use -s or --symbols option to include symbols in passwords.

$ pass -s
uV=#v3,Z9Hd^$B?DKt%P

$ pass --symbols

You can specify certain characters you don't want to put in passwords with -e or --exclude option.

$ pass -e 'ABCD678'
$ pass --symbols --exclude '*[]{}/\'

Options

-c [NUMBER]                      (deprecated) specify password length
-l, --length [NUMBER]            specify password length
-s, --symbols                    include symbols
-e, --exclude [CHARACTERS]       exclude characters
-v, --version                    show version

License

The gem is available as open source under the terms of the MIT License.