hpg: a simple password generator

[ program, security ] [ Propose Tags ]

hpg is a free, open source password generator. It's design is pretty simple and it generates random passwords between 1 and 2^16 -1 characters.

[Skip to Readme]
Versions [faq] 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8
Dependencies base (>=4.8 && <4.11), random (==1.1.*), unix (>= && <2.8) [details]
License ISC
Author Fritjof Bornebusch
Maintainer fritjof@alokat.org
Category Security
Home page https://darcs.alokat.org/hpg
Source repo head: darcs get https://darcs.alokat.org/hpg
Uploaded by fritjof at Thu Jan 4 22:12:13 UTC 2018
Distributions NixOS:0.8
Executables hpg
Downloads 3037 total (201 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
Last success reported on 2018-01-04 [all 3 reports]



treat warnings as errors


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for hpg-0.8

[back to package description]

HPG(1) - General Commands Manual


hpg - simple password generator


hpg [-N] [-lnsu] [-x length]


The hpg utility creates passwords of different sizes, between 1 and 2^16 -1 characters. Please note that a length of <8 is not very secure and should be avoided. For this reason the default password length is 16 if the command is called without any options. The default entropy contains lower and upper case letters as well as numbers.


Enables lower case letters.


Disables the printing of the trailing newline character.


Enables numbers.


Enables special characters.


Enables upper case letters.

-x length

Selects the length of the password.


The hpg utility exits 0 on success, and >0 if an error occurs.


Create a new random password:

$ hpg -lnsu -x 32


Fritjof Bornebusch <fritjof@alokat.org>