I have old legacy code on .net 1.1 c#
Byte[] clearBytes = new
UnicodeEncoding().GetBytes(cleanString);
Byte[] hashedBytes = ((HashAlgorithm)
CryptoConfig.CreateFromName("MD5")).ComputeHash(clearBytes);
return BitConverter.ToString(hashedBytes);
how convert it into perl?
i trying this:
use utf8;
use Digest::MD5 qw ( md5 md5_hex md5_base64);
return uc(md5_hex(unpack("U*",$pass)))
but hash differs.
also trying unpack("H*"...
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/