Click here to Skip to main content
16,005,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: try,throw, catch Pin
Joaquín M López Muñoz14-Feb-02 3:20
Joaquín M López Muñoz14-Feb-02 3:20 
GeneralRe: try,throw, catch Pin
Tim Smith14-Feb-02 4:55
Tim Smith14-Feb-02 4:55 
QuestionHow you minimize child window in MDI app ? Pin
14-Feb-02 1:39
suss14-Feb-02 1:39 
AnswerRe: How you minimize child window in MDI app ? Pin
Joaquín M López Muñoz14-Feb-02 2:01
Joaquín M López Muñoz14-Feb-02 2:01 
GeneralI did it that way Pin
14-Feb-02 2:13
suss14-Feb-02 2:13 
GeneralRe: I did it that way Pin
Joaquín M López Muñoz14-Feb-02 4:23
Joaquín M López Muñoz14-Feb-02 4:23 
GeneralText Encryption for text editor on the save button Pin
14-Feb-02 1:33
suss14-Feb-02 1:33 
GeneralRe: Text Encryption for text editor on the save button Pin
Navier15-Feb-02 14:42
Navier15-Feb-02 14:42 
How long is a piece of string? A really easy way to do it is just to take the raw text and XOR each byte with a constant byte value. That turns the text into garbage. Then you check the password. If it matches you XOR each byte of the garbage with the same constant byte and voila your original text is back.

Example:

Encryption - 101 xor 011 = 110
Decryption - 110 xor 011 = 101

This is really insecure but it's dead easy. It depends on what level of security you need. If you're just looking for something to stop casual observers then this will do the trick but if you expect someone to expend some effort in cracking your encrypted text and it's security is important then you need to look for something more significant than this.

There are plenty of industrial strength algorithms about but I'm no expert on current practices. Just google for 'encryption' for details.

The other potential problem with what you propose is that your security model is trivially broken if the password is revealed. Look for 'public key encryption' to avoid this.

HTH

i1.2sqrt(u).bcos(ur)sec(c)
but
b4.isqrt(u).ru/16

Navier
GeneralQuestion about socket programming Pin
cdehelean14-Feb-02 1:00
cdehelean14-Feb-02 1:00 
GeneralRe: Question about socket programming Pin
Navier15-Feb-02 14:47
Navier15-Feb-02 14:47 
GeneralClient Area Pin
Stan the man14-Feb-02 0:50
Stan the man14-Feb-02 0:50 
GeneralRe: Client Area Pin
Joaquín M López Muñoz14-Feb-02 2:07
Joaquín M López Muñoz14-Feb-02 2:07 
QuestionA simple question,can anybody answer me? Pin
Angel Kid14-Feb-02 0:18
Angel Kid14-Feb-02 0:18 
AnswerRe: A simple question,can anybody answer me? Pin
Angel Kid14-Feb-02 0:20
Angel Kid14-Feb-02 0:20 
GeneralRe: A simple question,can anybody answer me? Pin
Nish Nishant14-Feb-02 0:45
sitebuilderNish Nishant14-Feb-02 0:45 
AnswerRe: A simple question,can anybody answer me? Pin
Jon Hulatt14-Feb-02 0:56
Jon Hulatt14-Feb-02 0:56 
GeneralRe: A simple question,can anybody answer me? Pin
Angel Kid14-Feb-02 2:39
Angel Kid14-Feb-02 2:39 
AnswerRe: A simple question,can anybody answer me? Pin
Carlos Antollini14-Feb-02 2:50
Carlos Antollini14-Feb-02 2:50 
AnswerRe:Error spawn... Pin
Atul Dharne14-Feb-02 3:04
Atul Dharne14-Feb-02 3:04 
GeneralRe:Error spawn... Pin
Angel Kid14-Feb-02 4:07
Angel Kid14-Feb-02 4:07 
GeneralOLE automation Pin
Gérald Mercet13-Feb-02 22:54
Gérald Mercet13-Feb-02 22:54 
GeneralTrying to call an ATL Com Object from MFC Pin
Braulio Dez13-Feb-02 22:52
Braulio Dez13-Feb-02 22:52 
GeneralPlease help on Error LNK2001 Pin
DengJW13-Feb-02 22:06
DengJW13-Feb-02 22:06 
GeneralRe: Please help on Error LNK2001 Pin
Paul M Watt13-Feb-02 22:18
mentorPaul M Watt13-Feb-02 22:18 
GeneralRe: Please help on Error LNK2001 Pin
DengJW13-Feb-02 23:03
DengJW13-Feb-02 23:03 

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.