summaryrefslogtreecommitdiffstats
path: root/rescue/genpasswd
blob: 328ced265b0ede141814d348b4d800d362728a42 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl

system "stty -echo";
print STDERR "Give a password: ";
chomp($word = <STDIN>);
print STDERR "\n";
system "stty echo";

print crypt($word, join('', ('.', '/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64]));
print "\n";