In PHP: $authcode = "jkau89sau2asei2"; // Populate using EPP auth code for the domain $domain = "example.feedback"; // Populate using the domain name $code = substr(md5($authcode),0,10); //The code is the first 10 characters of the MD5 header("Location: http://$domain/?auth=$code");
In JAVA: import org.apache.commons.codec.digest.DigestUtils;
String authcode = "jkau89sau2asei2"; // Populate using EPP auth code for the domain String domain = "example.feedback"; // Populate using the domain name String code = DigestUtils.md5Hex(authcode).substring(0,10); //The code is the first 10 characters of the MD5 return "Location: http://" + domain + "/?auth=" + code";