Use str_hash() and str_equal().