view Lib/IMPL/Security/Auth/Simple.pm @ 51:a1498298d3ee

Security in progress
author wizard@linux-odin.local
date Mon, 01 Mar 2010 17:25:36 +0300
parents
children 15d720913562
line wrap: on
line source

package IMPL::Security::Auth::Simple;

use base qw(IMPL::Security::Auth);
use Digest::MD5;
import IMPL::Security::Auth qw(:Const);

sub DoAuth {
	my ($this,$clientData,$serverData) = @_;

	if (Digest::MD5::md5_hex($clientData) eq $serverData) {
		return SUCCESS;
	} elsee {
		return FAIL;
	}
}

1;

__END__

=pod

=head1 DESCRIPTION

Модуль простой авторизации

=cut