Efficacité fonction de hashage

Fermé
darkchristophetd Messages postés 1100 Date d'inscription mardi 26 février 2008 Statut Contributeur Dernière intervention 14 novembre 2010 - 23 mai 2009 à 08:12
Bonjour,
J'ai codé cette fonction de hashage :

<?php
function trans($v)
{
	$lettres = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
	$remplacement = array('Liom', 'rzd', 'erg', 'opi', 'ihkj', 'rte6', 'opj', 'nbv', 'tfr', 'nhj', 'mlk', 'vgu78', 'îp', 'lom', 'hftrs', 'pomù', '-6y', 'pohsè', 'jnkjn', ':!m', 'ù%m', 'yui', 'poi', 'oiy-', 'ioyhj', '[-]');
	$remplacement = array_map('md5', $remplacement);
	return str_replace($lettres, $remplacement, $v);
}
function hasher($v)
{
	define('PRE', md5('pacfdsgtr6'));
	define('POST', sha1('_èrtougj'));
	echo PRE.trans($v).POST;
	return;
}
hasher('a');
?>


Pouvez vous me dire si elle est efficace ?
Merci.