Hide the code from prying eyes

New to FreeBASIC? Post your questions here.
Post Reply
gerry
Posts: 70
Joined: Oct 04, 2021 7:29

Hide the code from prying eyes

Post by gerry »

Hello!

The fact is that I'm not working at the computer alone, is it possible to somehow confuse the source code so that no one understands what it does?

Example:

Code: Select all

Sub Example()
Print "Hello World!"
End Sub

Example
Let's change "Sub" to "Hide" and process as

Code: Select all

Hide Example()
Print "Hello World!"
End Hide

Example
Confuse strings and so on
marcov
Posts: 3462
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: Hide the code from prying eyes

Post by marcov »

No, if you have the source it must be quite complex before you can't figure it out without single stepping through it, so usually that is a waste of time.

Most code obfuscation ways counter extracting sources from e.g. C# or Java programs where due to introspection there is a lot of identifiers in the binary.
gerry
Posts: 70
Joined: Oct 04, 2021 7:29

Re: Hide the code from prying eyes

Post by gerry »

marcov wrote: Aug 20, 2022 11:10 No, if you have the source it must be quite complex before you can't figure it out without single stepping through it, so usually that is a waste of time.

Most code obfuscation ways counter extracting sources from e.g. C# or Java programs where due to introspection there is a lot of identifiers in the binary.
Thanks :)
deltarho[1859]
Posts: 4305
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: Hide the code from prying eyes

Post by deltarho[1859] »

@gerry

Assuming that you are handing the machine over to someone else, why not simply encrypt the source code and then delete the plaintext.

When you come back to the machine, decrypt the ciphertext.

Or am I missing something?
bfuller
Posts: 362
Joined: Jun 02, 2007 12:35
Location: Sydney, Australia

Re: Hide the code from prying eyes

Post by bfuller »

Only put the source on a thumb drive and keep it in your pocket?
Post Reply