Maybe a regex:
$string =~ s/^\d{12}/'*' x 12/e; # ************5678 [download]
In reply to Re: Golf: Replacing part of a string with "*" by explorer in thread Golf: Replacing part of a string with "*" by kwaping