Click here to Skip to main content
15,921,989 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTransparent control Pin
MemLeak23-May-03 2:46
MemLeak23-May-03 2:46 
GeneralRe: Transparent control Pin
Rage23-May-03 3:00
professionalRage23-May-03 3:00 
GeneralRe: Transparent control Pin
MemLeak23-May-03 3:11
MemLeak23-May-03 3:11 
GeneralRe: Transparent control Pin
basementman23-May-03 4:02
basementman23-May-03 4:02 
GeneralRe: Transparent control Pin
MemLeak23-May-03 4:53
MemLeak23-May-03 4:53 
GeneralAny link to a Free ebook about Drivers Pin
Fad B23-May-03 2:40
Fad B23-May-03 2:40 
GeneralHide passwords... Pin
rohit.dhamija23-May-03 2:11
rohit.dhamija23-May-03 2:11 
GeneralRe: Hide passwords... Pin
G. Steudtel23-May-03 3:12
G. Steudtel23-May-03 3:12 
Hi,

storing passwords is never a good idea. And most passwords are so short, that even the best encryption must fail.

One method I use, is not to store the password, but doing three to five different calculations with the password and the user name, and store these results.

When the user logs in, the computation is done again, and the results are compared with the stored values.

If you do the calculation with non commutative operators like -(minus) or matrix multiplications, you can't tell the the password. Never.
Care must be taken, to avoid that similiar passwords create similiar results.

for instance:

Make all inputs the same length by repeating the input/password till all spaces are filled. Then XOR all characters with a given string. Now do adding and substracting of the characters like : result += (3*XORinput[i] -5*XORpassword[i] + 7*somestring[i]), where i is running from 0 to the string length minus 1.

By exchanging the operators(+/-) and constant factors(3,5,7) you get different results, some positve and negative. Store these results. And only when all results match, the identification is verified.

G. Steudtel



GeneralRe: Hide passwords... Pin
jhwurmbach23-May-03 3:34
jhwurmbach23-May-03 3:34 
Generalerrors! Pin
flora_k23-May-03 0:59
flora_k23-May-03 0:59 
GeneralRe: errors! Pin
jhwurmbach23-May-03 1:05
jhwurmbach23-May-03 1:05 
GeneralRe: errors! Pin
flora_k23-May-03 1:09
flora_k23-May-03 1:09 
GeneralRe: errors! Pin
jhwurmbach23-May-03 1:38
jhwurmbach23-May-03 1:38 
GeneralRe: errors! Pin
Rage23-May-03 1:47
professionalRage23-May-03 1:47 
GeneralRe: errors! Pin
flora_k23-May-03 2:59
flora_k23-May-03 2:59 
GeneralRe: errors! [modified] Pin
Rage23-May-03 3:09
professionalRage23-May-03 3:09 
GeneralRe: errors! Pin
Rage23-May-03 1:27
professionalRage23-May-03 1:27 
GeneralRecordSets && DataSets Pin
NHM23-May-03 0:14
NHM23-May-03 0:14 
GeneralRe: RecordSets && DataSets Pin
Alexandru Savescu23-May-03 6:05
Alexandru Savescu23-May-03 6:05 
Generalhelp! Pin
flora_k22-May-03 23:56
flora_k22-May-03 23:56 
GeneralRe: help! Pin
Rage23-May-03 1:42
professionalRage23-May-03 1:42 
Questionwhat have I deleted? :=< Pin
ilavl22-May-03 23:33
ilavl22-May-03 23:33 
AnswerRe: what have I deleted? :=< Pin
Rickard Andersson2023-May-03 0:04
Rickard Andersson2023-May-03 0:04 
GeneralDisabled mini-bar in Developer Studio Pin
JensB22-May-03 23:31
JensB22-May-03 23:31 
QuestionCan Anyone Help me on OLE Drag&Drop In MFC Pin
ccdai22-May-03 23:15
ccdai22-May-03 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.