Changeset 128 for locker/bin/webaccess
- Timestamp:
- Jan 28, 2007, 4:34:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/bin/webaccess
r127 r128 47 47 chmod(0777, ".htaccess"); 48 48 49 my $salt = substr($username, 0, 2);50 $password = crypt($password, $salt);49 my $salt = join '', ('.', '/', 0..9, 'A'..'Z', 'a'..'z') [rand 64, rand 64, rand 64, rand 64, rand 64, rand 64, rand 64, rand 64]; 50 $password = crypt($password, '$1$'.$salt); 51 51 52 52 open(HTPASSWD, ">>.htpasswd");
Note: See TracChangeset
for help on using the changeset viewer.