I am using following javascript code to pass an id to url in php. I am using codeigniter as framework. But after I submit url I should get decrypted id to do further work in. I know there is no way to decrypt md5(). so if you have any idea to solve this problem please help me.
My javascript code is
function comdelete(id) {
var result = confirm("Do you want to delete ?");
var myvar = "<?php echo md5(id); ?>";
if (result) {
window.location.href = "http://localhost/oxford/site/dcat?id=" + myvar;
}
}