{"id":4847,"date":"2014-03-30T16:06:06","date_gmt":"2014-03-30T16:06:06","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/const-readonly-vs-programs-like-cheat-engine-collection-of-common-programming-errors\/"},"modified":"2014-03-30T16:06:06","modified_gmt":"2014-03-30T16:06:06","slug":"const-readonly-vs-programs-like-cheat-engine-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/const-readonly-vs-programs-like-cheat-engine-collection-of-common-programming-errors\/","title":{"rendered":"const\/readonly vs. programs like Cheat Engine-Collection of common programming errors"},"content":{"rendered":"<p>If the software and user credentials are running on the user&#8217;s machine, <strong>it is impossible<\/strong> to stop the user from changing values.<\/p>\n<p>If credentials and access are stored on a remote server, you can use that server and have the user only store a hashed token that expires after an arbitrary period of time. Use that token as a lookup to retrieve the user&#8217;s profile information from the server.<\/p>\n<p>You&#8217;ll still run into issues because anything that is done client-side can be manipulated\/hacked. If you keep all of your logic on a central server, you can be more confident that things won&#8217;t be cracked, however your system&#8217;s performance will suffer.<\/p>\n<p>You need to weigh the pros and cons of a central server for security and performance and choose a balance that fits best for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If the software and user credentials are running on the user&#8217;s machine, it is impossible to stop the user from changing values. If credentials and access are stored on a remote server, you can use that server and have the user only store a hashed token that expires after an arbitrary period of time. Use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4847","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4847"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4847\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}