in reply to Re: md5_base64 encryption?
in thread md5_bas64 encryption?
how can i use md5_hex in the above exampleour $user = $q->param('user'); $pass = $q->param('pass'); open my $fh, "<Passwrdschar.pwd" or die $!; while(<$fh>){ my ($one, $two, $three, $four, $five, $six) = split /\ñ/, $_; if(my_crypt($pass, $one) eq $two){ &main_s; exit; }else{ print "<center><img src='wow3.png'></center><hr color=red>"; print "<body background='Solar4.jpg'>"; print "<u><h2><font color=red>Access denied</font></h2>.</u><br> +<br></h2>"; print "<input type='button' value='Back to main' onClick='window +.history.back();'>"; } close($fh); } sub my_crypt{ my ($pass, $user) = @_; my $salt = md5_base64($user); return md5_base64($salt.$pass); }
|
|---|