A very flexible random password generator based on a regexp-like pattern, written in Golang
LGPL-3.0 License
2021.10.21
)repassgen -entropy '([a-z]{8}|[0-9]{8})'
showed entropy 27 or 38 depending on which of two patterns ([a-z]{8}
or [0-9]{8}
) were chosen. Now it always shows 27 as entropy.$byte()
and $BYTE()
functions which return hex[:byte:]
character class (which returned binary and was a problem in text context)$base64
$base64url
$base32
$BASE32
$base32std
$bip39encode
$pyhex
function (takes hex-encoded input like above)github.com/spf13/cast
from dependenciesPublished by ilius about 3 years ago
2021.01.22
)[:punct:]
character set(a|bc|123)
$hex2dec
to convert hex number to decimal numberPublished by ilius over 3 years ago
[\u00e0-\u00ef]{5}
and \U0001F603
\1
, \2
, etc
$escape(...)
Escape unicode characters, non-printable characters and double quote$?(...)
Randomly include or omit the string/pattern (%50 chance, adds 1 bit to entropy)$date(2000,2020,-)
Generate a random date in the given year range$space(...)
Adds spaces between each two characters of string (generated from given pattern)$expand(|...)
Adds |
(for example) between each two characters (similar to $space
)$rjust(PATTERN,N,X)
Justify to right, N
is width (N>=1), X
is the character to fill$ljust(PATTERN,N,X)
Justify to left, similar to $rjust
$center(PATTERN,N,X)
Justify to center, similar to $rjust
$romaji(...)
Converts Japanese hiragana/katakana string to Latin$shuffle(...)
Shuffle characters of string or generated password.
Published by ilius almost 5 years ago
[]
-entropy
flag)Published by ilius over 5 years ago
Initial release
All features are listed in README.md