PDA

View Full Version : Password in UserFile.h


Mouton
12-10-2003, 11:45 PM
How's is the pwd saved in the PUSERFILE struct ?

printf("%s\n",password);
echos:
200-ï»·r˜áûØujNü5¹wÉ=à ‚®

How can i get someting like EF0EBBB77658E1FBD81F756A4FAC35B977C93DAE ?
or convert that string to the format saved in PUSERFILE struct ?

darkone
12-11-2003, 12:08 AM
It's in binary form, to convert it to ascii use sprintf; Size of cbuf is 41chars.

for (n = 0;n < 20;n++) sprintf(&cbuf[n * 2], "%02X", (DWORD)pUserFile->Password[n]);

Mouton
12-11-2003, 06:32 AM
Working in seconds :)
Thx very much.