.\"Copyright (c) 2017 Fritjof Bornebusch .\" .\"Permission to use, copy, modify, and distribute this software for any .\"purpose with or without fee is hereby granted, provided that the above .\"copyright notice and this permission notice appear in all copies. .\" .\"THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\"WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\"MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\"ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\"WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\"ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\"OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .Dd $Mdocdate: March 21 2017 $ .Dt HPG 1 .Os .Sh NAME .Nm hpg .Nd simple password generator .Sh SYNOPSIS .Nm hpg .Op Fl N .Op Fl lnsu .Op Fl x Ar length .Sh DESCRIPTION The .Nm 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. .Bl -tag -width Dsssigfile .It Fl l Enables lower case letters. .It Fl N Disables the printing of the trailing newline character. .It Fl n Enables numbers. .It Fl s Enables special characters. .It Fl u Enables upper case letters. .It Fl x Ar length Selects the length of the password. .Sh EXIT STATUS .Ex -std hpg .Sh EXAMPLES Create a new random password: .Dl $ hpg -lnsu -x 32 .Sh AUTHORS .An -nosplit .An Fritjof Bornebusch Aq Mt fritjof@alokat.org