Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6113115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:49:19+00:00 2026-05-23T14:49:19+00:00

I am creating a console application that would store some sensitive strings in memory,

  • 0

I am creating a console application that would store some sensitive strings in memory, to be sent to the other client. In this case it is almost like a secure messenger (a few% insecurity would be acceptable), although not as complex.

Would accepting user input with (a function to accept one letter at a time for processing purposes such as finding key letters) in to a portion of memory that is allocated be completely unsecure, in terms of not being protected from other processes that may spy?

I am tempted to encode each character before sending it off to the string, although that seems a bit silly. Are there any methods to “lock” access to that malloc (at least to trivial attempts at memory viewing) or similar techniques to secure the string in memory?

Thank you.

I am open to many ideas, currently am just planning.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:49:20+00:00Added an answer on May 23, 2026 at 2:49 pm

    If you want true security in terms of preventing anyone from seeing what you have stored in memory then encrypting (or at least, obfuscating) each character as you read it is the way to go. Otherwise there is very little you can do to prevent a determined attacker from viewing your plaintext data in memory. In fact, I believe the Blu-ray master key was cracked due to a device that loaded an unencrypted representation of the key into its memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a long-running console-based application Sender that sends simple text to STDOUT using
I have some classes that all implement a certain interface. I want to store
What exactly happens when a .NET console application starts? In the process explorer, when
I am creating a web application using zkoss 5.0.4, Spring 3.0.3, Hibernate 3, and
I'm creating a custom powershell 1.0 cmdlet that will allow me to feed exceptions
I’m writing some IL institutions for creating int and double arrays using System.Reflection.Emit name
Hi I need some help on getting started with creating my first algorithm; I
I am building a universal app that uses a UISplitViewController for the iPad, and
I have an IFilter written in Delphi that I'm trying to get working under
I'm writing C# application which saves picture box screen to JPEG files. One thread

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.