Fonction md5() en C

Fonction md5() en C - C - Programmation

Marsh Posté le 08-02-2009 à 12:53:41    

Salut à vous,
 
savez-vous s'il existe une fonction md5 en C comme en PHP ? Si oui, pouvez-vous m'indiquer sa syntaxe svp.
 
Merci d'avance :)

Reply

Marsh Posté le 08-02-2009 à 12:53:41   

Reply

Marsh Posté le 08-02-2009 à 13:18:07    

OpenSSL implémente MD5.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 08-02-2009 à 13:28:32    

http://www.gnupg.org/documentation [...] ml#Hashing
gcry_md_hash_buffer


Message édité par sligor le 08-02-2009 à 13:30:32
Reply

Marsh Posté le 08-02-2009 à 14:09:59    

ou sinon...
http://www.faqs.org/rfcs/rfc1321.html

Message cité 1 fois
Message édité par jagstang le 08-02-2009 à 14:10:06

---------------
What if I were smiling and running into your arms? Would you see then what I see now?  
Reply

Marsh Posté le 08-02-2009 à 14:23:58    


Sauf en cas de contraintes fortes et si les implémentations existantes ne satisfont pas ces contraintes, un algo de crypto ne devrait jamais être réimplémenté quand on ne connait pas le domaine, il est trop facile de faire une erreur qui va flinguer tout le truc.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 08-02-2009 à 14:28:55    

tout dépend en effet si c'est à but pédagogique ou pas. Bien que dans le cas de MD65, une erreur d'implémentation se voit assez vite.


---------------
What if I were smiling and running into your arms? Would you see then what I see now?  
Reply

Marsh Posté le 08-02-2009 à 14:41:40    

jagstang a écrit :

tout dépend en effet si c'est à but pédagogique ou pas.


Il demande une fonction, pas la tête de l'algo, donc je suis pas persuadé

jagstang a écrit :

Bien que dans le cas de MD5, une erreur d'implémentation se voit assez vite.


Je sais pas, ça se voit sûrement rapidement dans certains cas mais je suis pas persuadé que tu puisses pas avoir des bugs un peu merdiques planqués


Message édité par masklinn le 08-02-2009 à 14:42:16

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 08-02-2009 à 15:49:45    

sans doute


---------------
What if I were smiling and running into your arms? Would you see then what I see now?  
Reply

Marsh Posté le 08-02-2009 à 21:57:21    

il y a crypto++ aussi : http://www.cryptopp.com/
l'algo MD5 est classé dans la catégorie "obsolète" cependant (problème de sécurité j'imagine, j'ai entendu dire que SHA-1 était mieux mais je ne vais pas m'avancer dans ce domaine)

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed