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 8342679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:50:30+00:00 2026-06-09T05:50:30+00:00

How can i protect my molecule class variables values such as bond length and

  • 0

How can i protect my molecule class variables values such as bond length and inversion probability of NH3 from people like cheat-engine users (without slowing much)?

Does this protect from outer-effects?

class molecule
{
public:
    molecule()
    {
    ...
    }
protected:
    int *bond_length;
    int *probability;
}

Is this safer?

class molecule
{
...
private:
    int *bond_length;
    int *probability;
}

If all above are vulnerable against cheat-engine-like softwares, then can below be logical?

class molecule
{
public:
    molecule(){... ... ...}
...
...
    //still public
    int *bond_length_fake;
    int *bond_length;
    int *prob_fake;
    int *prob;
}
...
//somewhere in the program
void thread_real_to_fake(void * molecule_parameters)
{
    int bond_length_backup;
    molecule * param=(molecule *)molecule_parameters;
    while(working)
    {
        if((param->bond_length_fake)!=(param->bond_length))
        {
            param->bond_length_fake=param->bond_length;
        }
    }
    _endthread();

}

Okay, this protects the fake by making it equal to real one always. But how to protect real one? Can I use random-pointer to get the real value? If yes, how can I?

  • 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-06-09T05:50:31+00:00Added an answer on June 9, 2026 at 5:50 am

    You cannot protect your computer against running software. If someone is in control of the machine, they can manipulate it at will, and this includes modifying the state of a running program.

    The safest thing you could do is run the program on a separate, inaccessible server and forward the I/O through the network (e.g. to a browser window).

    Edit: As an alternative, you could run the engine part of your program as a service that runs as a separate user. This provides a certain amount of protection. The engine would have to check that the submitted user input (e.g. key strokes) come in at a reasonable rate. This allows you to enforce rules to a certain degree, but doesn’t prevent for example the user from seeing through walls by manipulating the graphics rendering in the client.

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

Sidebar

Related Questions

How can I protect my variables from this kind of attack: MyClass.__dict__ = {}
To my knowledge Nginx can only password protect directories from within the configuration file(s).
I would like to seal and protect my WAR file, especially the JSP/JSF from
How can I protect my C# app from someone killing its process via taskman
Possible Duplicate: How prepared statements can protect from SQL injection attacks? If I'm using
How can I protect my background images like in this fiddle: http://jsfiddle.net/johniehjelm/eECc6/ ?
How can i protect my IL from reverse engineering ? Any Obsfuscator tool is
How can I protect from accidental definition of non-inherited method where inherited definition is
I know that we can protect .Net applications from decompiling by using obfuscators. But
How can I protect my application's APK from decompilation using proguard ?

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.