[system] / branches / ghe3_dev / webwork2 / lib / WeBWorK / Utils.pm Repository:
ViewVC logotype

Diff of /branches/ghe3_dev/webwork2/lib/WeBWorK/Utils.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1286 Revision 1287
40 ref2string 40 ref2string
41 sortByName 41 sortByName
42 makeTempDirectory 42 makeTempDirectory
43 removeTempDirectory 43 removeTempDirectory
44 pretty_print_rh 44 pretty_print_rh
45 cryptPassword
45); 46);
46 47
47sub runtime_use($) { 48sub runtime_use($) {
48 return unless @_; 49 return unless @_;
49 eval "package Main; require $_[0]; import $_[0]"; 50 eval "package Main; require $_[0]; import $_[0]";
296 foreach my $key (sort keys %{$rh}) { 297 foreach my $key (sort keys %{$rh}) {
297 warn " $key => ",$rh->{$key},"\n"; 298 warn " $key => ",$rh->{$key},"\n";
298 } 299 }
299} 300}
300 301
302sub cryptPassword {
303 my ($clearPassword) = @_;
304 my $salt = join("", ('.','/','0'..'9','A'..'Z','a'..'z')[rand 64, rand 64]);
305 my $cryptPassword = crypt($clearPassword, $salt);
306 return $cryptPassword;
307}
308
3011; 3091;

Legend:
Removed from v.1286  
changed lines
  Added in v.1287

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9