in reply to (Golf) Cryptographer's Tool #1
sub crypto{ ($_,$a,%h,$h)=@_;s/./chr($h{$&}||=vec$a,$h++,8)/gse;$_ } [download]