|
1 year ago | |
---|---|---|
t | 1 year ago | |
.gitignore | 2 years ago | |
.travis.yml | 2 years ago | |
COPYING | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
password | 1 year ago |
generate cryptographically secure passwords
password [--length] <int>
[--version]
[--help] [--man]
--length how long you want the password (defaults to 12)
--version print the version and exit
--help print this dialogue
--man display the full documentation
password generates cryptographically secure random passwords, using alphanumeric characters with case variation.
The logic can be used directly as a script or used as a module.
Get a 12 character length password
password
Get a 32 character length password
password --length 32
Get a 12 character length password
require 'password';
my $object = password->new( length => 12 );
print $object->generate() . "\n";
Constructor for the password object.
The length of the password to be generated.
Must be a positive integer.
The password object.
This exception is thrown when verification of the length argument doesn't pass.
Generates the password based on the length as defined through the constructor.
None.
The generated password string.
Blaine Motsinger, blaine@renderorange.com
This software is available under the MIT license.
Copyright (c) 2018 Blaine Motsinger