From b30fb0d7e1b16d60a769fa4c5d8053420cf06774 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 31 Dec 2010 05:57:21 +0100 Subject: remove .pl filename extension --- fripost-mkpass | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 fripost-mkpass (limited to 'fripost-mkpass') diff --git a/fripost-mkpass b/fripost-mkpass new file mode 100755 index 0000000..83a58ac --- /dev/null +++ b/fripost-mkpass @@ -0,0 +1,47 @@ +#!/usr/bin/perl + +use 5.010_000; +use warnings; +use strict; + +=head1 NAME + +fripost-mkpass.pl - Create a random new password + +=cut + +use FindBin qw($Bin); +use lib "$Bin/lib"; + +our $VERSION = '0.01'; + +use Fripost::Password; +use String::MkPasswd qw/mkpasswd/; + +# Generate password +my $password = $ARGV[0]; + +$password //= mkpasswd( + -length => 20, + -minnum => 5, + -minspecial => 3 +); + +# Show the information that will be inserted +say "Password: $password"; +say "Salted MD5: " . smd5($password); + +=head1 AUTHOR + +Stefan Kangas C<< >> + +=head1 COPYRIGHT + +Copyright 2010 Stefan Kangas. + +=head1 LICENSE + +This program is free software; you can redistribute it and/or modify it +under the same terms as perl itself. + +=cut -- cgit v1.2.3