I have attempted to encrypt this string with MD5:
lolno
I use the module use Digest::MD5 and my output was:
τ;å▌3Gùφ▄♥ H≤Gj╠
I know that this is not MD5 so Id like to ask how I could make this work?Here’s the code I used:
use Digest::MD5;
$ctx = Digest::MD5->new;
$ctx->add($pass);
$digest = $ctx->digest;
print $digest;
I also tried:
use Digest::MD5 qw(md5);
$test = md5($pass);
print $test;
Try
md5_hex(hexdigestfor the first snippet) to see what you seem to expect. This is a binary representation presented as characters.