# License along with this file; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-use MD5;
+use Digest::MD5 qw(md5);
sub check_password () {
my ($pw);
$keyhex =~ m/^[0-9a-f]+$/ or die "$keyhex ?";
$key= pack('H*',$keyhex);
- $digest= MD5->hash("BCP5Registry password 1 $id ".$key);
+ $digest= md5("BCP5Registry password 1 $id ".$key);
return unpack('H20',$digest);
}