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

  • Home
  • SEARCH
  • 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 6074261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:21:46+00:00 2026-05-23T10:21:46+00:00

My software is using AES Rijndael. I am using a SHA-256 hash to generate

  • 0

My software is using AES Rijndael.

I am using a SHA-256 hash to generate a key from a string with an arbitrary length, and then passing this as both the private and public key since in this instance I do not need to differentiate between the two.

How do I protect my key from being hacked out of the executable?

I know not to use a literal but instead generate the key at runtime with some predetermined steps, but all the same the key will still be in memory right before its sent on to the AES initialization function and so can quite easily be retrieved then.

AES is obviously very secure, but what good does that do me if someone breaks the executable instead?

Is there some common practise when solving this problem?

  • 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-23T10:21:46+00:00Added an answer on May 23, 2026 at 10:21 am

    This can’t be done. This is the basic problem with e.g. DRM scheme’s on PC’s: they need to have the key in memory, so it can be extracted. You can maybe obscure it while it is not in use, but that’s about it. And if your application is popular and distributed, then somebody will crack you delicious scheme. That’s why some companies use dongles or TPM chips for high value applications.

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

Sidebar

Related Questions

Is there any way to force an update of software using RunOnce, without having
I'm automating some source control software functionality using a dot bat script but given
I'm using Windows Xp and i'm looking for a software where I can see
I'm working on some production software, using C# on the .NET framework. I really
I have very little experience building software for Windows, and zero experience using the
Usually, when using Windows Authentication, the software (eg Internet Explorer) tries to use Windows
Our software manages a lot of data feeds from various sources: real time replicated
I'm writing a piece of software using RealBASIC 2011r3 and need a reliable, cross-platform
I have constructed my first piece of software using QT and C++, which is
i am keeping a log of activities in my software using qtextedit. later when

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.