warzi Posted May 26, 2004 Share Posted May 26, 2004 hello ,j'ai un petit problème avec la fonction crypt() de php quand je fais crypt($pswd,$pseudo), il me renvoie une valeur mais lorsque je lui envoie un pswd et un pseudo différent, il me renvoie exactement la même valeur ... Que devrais-je faire contre cela? merci. Link to comment Share on other sites More sharing options...
FilouLeHibou Posted May 26, 2004 Share Posted May 26, 2004 T'as essayé de crypter que le password? Parcequ'il me semble que crypt ne prend qu'un argument! Link to comment Share on other sites More sharing options...
warzi Posted May 26, 2004 Author Share Posted May 26, 2004 si tu ne donnes qu'un argument, il fera un random sur le second et tu auras tous des trucs différents... Link to comment Share on other sites More sharing options...
FilouLeHibou Posted May 26, 2004 Share Posted May 26, 2004 Ben oui, mais même si ton cryptage est aléatoire, le mot crypté correspond quand même au mot de passe! C'est ça qui est bien Link to comment Share on other sites More sharing options...
warzi Posted May 26, 2004 Author Share Posted May 26, 2004 oui mais après tu ne sais pas verifier si deux mots de passe cryptés de manière différentes sont identiques ou non ... c'est quand même cela le but du mot de passe Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.