Last active
November 13, 2024 20:21
-
-
Save kobeBigs/aa823efeb4fb6f64ba8071c2a2fc5c30 to your computer and use it in GitHub Desktop.
A simple perl program that creates random 16 character password strings from alphanumeric characters (0-9, a-z, A-Z)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
=pod | |
A simple perl program that creates random 16 char password strings from alphanumeric characters (0-9, a-z, A-Z) | |
=cut | |
use strict; | |
use warnings; | |
my @ranstr = ('0'..'9', 'a'..'z', 'A'..'Z'); | |
my $pwdstr = join '' => map $ranstr[rand @ranstr], 0 .. 15; | |
print "Here you go >> $pwdstr\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment