Un article qui t'expliquera tout :
http://guillaume-affringue.developpez.com/securite/chiffrement/