security - C: Simple way to input and store string securely in console? -


i creating console application store sensitive strings in memory, sent other client. in case secure messenger (a few% insecurity acceptable), although not complex.

would accepting user input (a function accept 1 letter @ time processing purposes such finding key letters) in portion of memory allocated unsecure, in terms of not being protected other processes may spy?

i tempted encode each character before sending off string, although seems bit silly. there methods "lock" access malloc (at least trivial attempts @ memory viewing) or similar techniques secure string in memory?

thank you.

i open many ideas, planning.

if want true security in terms of preventing seeing have stored in memory encrypting (or @ least, obfuscating) each character read way go. otherwise there little can prevent determined attacker viewing plaintext data in memory. in fact, believe blu-ray master key cracked due device loaded unencrypted representation of key memory.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -