Skip to content

Instantly share code, notes, and snippets.

@kobeBigs
Created February 8, 2024 14:11
Show Gist options
  • Save kobeBigs/aa823efeb4fb6f64ba8071c2a2fc5c30 to your computer and use it in GitHub Desktop.
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)
#!/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'..'F');
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