usa md5 o sha1 e ci aggiungi un salt solo a te noto

Codice PHP:
$id 3;
$salt "x_&F2Dd";
$hash md5($id $salt); 
A database la query andrà a cercare l'hash

Codice PHP:
$query "SELECT * FROM table WHERE md5(id.".$salt.") = '".$hash."'"