GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Zedruc/cpass-linux: A command-line password generator written in C. Uses `getrandom(2)` for cryptographically secure randomness.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 

Repository files navigation

cpass

A command-line password generator written in C. Uses getrandom(2) for cryptographically secure randomness.

Building

make        # production build (-O2)
make dev    # debug build (-g -O0)

Requires GCC and a Linux system (uses getrandom syscall).

Installation

sudo make install            # installs to /usr/local/bin
make install PREFIX=~/.local # installs to ~/.local/bin
sudo make uninstall          # removes installed binary

Usage

cpass [options]

Running with no arguments outputs a bare 16-character password to stdout (suitable for piping). Use -v / --verbose for decorated output with warnings and info messages.

Options

Flag Description
-l <length> Set password length (default: 16)
-e <flags> Exclude character sets (see below)
-s Save generated password to pass.txt
-r Delete pass.txt
-v / --verbose Verbose output (decorated password, warnings, info messages)
-h Show help

Exclusion flags (-e)

Combine any of the following letters after -e:

Flag Effect
u Exclude uppercase A-Z
l Exclude lowercase a-z
n Exclude numbers 0-9
s Exclude special characters

Examples

# Default 16-character password
cpass

# 32-character password
cpass -l 32

# No special characters, no uppercase
cpass -e su

# 24-character password, numbers only
cpass -l 24 -e uls

# Save to pass.txt
cpass -s

# Pipe the password to clipboard (default bare output)
cpass | xclip -selection clipboard

# Verbose output with decorations and warnings
cpass -v -l 8

# Reset saved passwords
cpass -r

Notes

  • Passwords shorter than 12 characters trigger a safety warning.
  • pass.txt is append-only — -s never overwrites existing entries.
  • All character sets must not be simultaneously excluded.

About

A command-line password generator written in C. Uses `getrandom(2)` for cryptographically secure randomness.

Topics

cclicli-toolcommand-linecommand-line-toolcryptographically-securecryptographyentropygcgetrandomlinuxmakefilepassgenpasswordpassword-generatorsecuritysecurity-toolsunix

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.