OSDN Git Service
(root)
/
uclinux-h8
/
uClinux-dist.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2013.10.24
[uclinux-h8/uClinux-dist.git]
/
tools
/
crypt.pl
1
#!/usr/bin/perl
2
3
srand();
4
5
@salts = (".", "/", "0".."9", "A".."Z", "a".."z");
6
$salt = $salts[int(rand(64))] . $salts[int(rand(64))];
7
8
my $passwd = shift;
9
my $encrypted = crypt($passwd, $salt);
10
11
print "${encrypted}";