Add hash_encode