Source

webcircos / hash.php

Full commit
<?php
$plain = $_POST['plaintext'];
$token = md5($plain);
echo "<script> 	var dis = document.getElementById('userID');
	dis.type = \"hidden\";
	var token = '$token';
	$(\"#ID\").html(dis.value);
	set_cookie('rcircostoken', token, 14);
	$(\"#cookie\").html(\"<button type='button' onclick='Javascript: forgetCookie();'>Forget Cookie</button>\");";
?>