Go Back   FlashFXP Forums > Community Chatter > Programming

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread
Old 12-10-2003, 10:45 PM   #1
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default Password in UserFile.h

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 ?
Mouton is offline  
Old 12-10-2003, 11:08 PM   #2
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

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]);
darkone is offline  
Old 12-11-2003, 05:32 AM   #3
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

Working in seconds
Thx very much.
Mouton is offline  
Closed Thread
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 12:17 PM.