this post was submitted on 01 Apr 2024
45 points (95.9% liked)

Game Development

2814 readers
7 users here now

Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.

Community Wiki

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Aux 19 points 8 months ago (13 children)

Anti viruses won't care as it won't be injecting executable code. But the whole idea won't work. To decrypt AES you need some sort of a secret key or certificate. So the game will have to have it bundled. Thus anyone with enough skill will be able to extract such key or certificate and decode resources themselves. Encryption will not provide any protection.

[–] [email protected] 4 points 8 months ago (2 children)

Anti viruses won’t care as it won’t be injecting executable code.

How do you know parts of the encrypted stuff isn't executable code? Like is he has secret levels with secret functionalities then part of whats encrypted might get executed, or interpreted and executed or something like that.

If he's going out of his way to hide and encrypt secrets, I wouldn't be surprised if parts of his gameloop are obfuscated as well. And if Anti viruses detect high levels of obfuscation, that just raises flags as probabilistic malware

[–] Aux -1 points 8 months ago (1 children)

Modern CPUs and operating systems have distinction between data and code in memory. Usually only privileged processes have the right to make data executable. If you load some random stuff into memory and tell your CPU to execute it as a code, you'll get nuked by OS.

[–] uis 1 points 7 months ago

Usually only privileged processes have the right to make data executable.

Not true. Only kernel can mark memory page as executable, but any process can request to kernel to do so. This is why JIT compilers work.

load more comments (10 replies)