Go Back   FlashFXP Forums > >

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

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 12-10-2003, 11:45 PM   #1
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
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-11-2003, 12:08 AM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
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, 06:32 AM   #3
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Working in seconds
Thx very much.
Mouton is offline  
Closed Thread

Tags
convert, puserfile, saved, someting, struct

Thread Tools
Display Modes 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

Forum Jump


All times are GMT -5. The time now is 09:02 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)