Click here to Skip to main content
15,887,444 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
harold aptroot18-Nov-20 10:06
harold aptroot18-Nov-20 10:06 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Greg Utas18-Nov-20 10:18
professionalGreg Utas18-Nov-20 10:18 
GeneralRe:C# Pin
etkid8419-Nov-20 4:22
etkid8419-Nov-20 4:22 
GeneralRe:C# Pin
harold aptroot19-Nov-20 5:27
harold aptroot19-Nov-20 5:27 
GeneralRe:C# Pin
TheGreatAndPowerfulOz19-Nov-20 10:25
TheGreatAndPowerfulOz19-Nov-20 10:25 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
W Balboos, GHB18-Nov-20 8:21
W Balboos, GHB18-Nov-20 8:21 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch18-Nov-20 8:38
mvahoney the codewitch18-Nov-20 8:38 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
W Balboos, GHB19-Nov-20 1:52
W Balboos, GHB19-Nov-20 1:52 
I really liked being able to cast nearly anything to anything.

For a cheap and easy (and not too secure) 'encryption' I'd just do something like:
C++
union {
  char  * readable;
  ulong * notSoMuch;
}
and then you can trivially make a string unreadable by storing the int array in a text file (lots of options there, too, spaced or other-delimiters? left-zero-filled?

Decryption is obvious - and really no overhead as all - I always though of it as the string and its encrypted version coexisting in different planes of their little universe.
Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch19-Nov-20 2:19
mvahoney the codewitch19-Nov-20 2:19 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
den2k8818-Nov-20 9:43
professionalden2k8818-Nov-20 9:43 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
David O'Neil18-Nov-20 11:05
professionalDavid O'Neil18-Nov-20 11:05 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
TheGreatAndPowerfulOz18-Nov-20 11:07
TheGreatAndPowerfulOz18-Nov-20 11:07 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Greg Utas18-Nov-20 11:43
professionalGreg Utas18-Nov-20 11:43 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
TheGreatAndPowerfulOz18-Nov-20 15:38
TheGreatAndPowerfulOz18-Nov-20 15:38 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Greg Utas18-Nov-20 11:45
professionalGreg Utas18-Nov-20 11:45 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
David O'Neil18-Nov-20 15:34
professionalDavid O'Neil18-Nov-20 15:34 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
den2k8818-Nov-20 21:53
professionalden2k8818-Nov-20 21:53 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
David O'Neil19-Nov-20 3:18
professionalDavid O'Neil19-Nov-20 3:18 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
rjmoses19-Nov-20 12:51
professionalrjmoses19-Nov-20 12:51 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
David O'Neil19-Nov-20 13:13
professionalDavid O'Neil19-Nov-20 13:13 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
rjmoses20-Nov-20 3:09
professionalrjmoses20-Nov-20 3:09 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Rick York18-Nov-20 9:53
mveRick York18-Nov-20 9:53 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch18-Nov-20 10:29
mvahoney the codewitch18-Nov-20 10:29 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
TheGreatAndPowerfulOz18-Nov-20 10:16
TheGreatAndPowerfulOz18-Nov-20 10:16 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch18-Nov-20 10:30
mvahoney the codewitch18-Nov-20 10:30 

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.