md5 -> sha512, escape html