I tried it with my BOOT. Of course it stops at line 480. What should have come out of it?
Original:
Changed with the program:
Knoware.no
Re: Knoware.no
This is because you do something I never do: Use unquoted file names!RalfR wrote: Wed Feb 19, 2025 3:25 pm I tried it with my BOOT. Of course it stops at line 480. What should have come out of it?
Original:
bt_02.jpg
Changed with the program:
bt_01.jpg
EW now thinks that V34 is a file name which, of course it isnt. I havent catered for this kind of thing. It should be simple enough to fix it manually. All of your LRESPRes are going to go the same way!
This is not something I intend to "fix". As I write in the "manual", Obfuscate is a working POC. It is designed for you to play with.
Using unquoted file names is wasteful in compiled programs, because it means that the Name table has to be included in the compiled program. In boot programs I guess it doesnt matter much.
What bothers me more is that the hex on line 480 is supposed to be converted to a normal float. I'll have to look into that when I next have time.
Thanks for trying it out and reporting back! We all have to be beta testers these days..
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Re: Knoware.no
I uploaded a new version (still V0.01) to fix the hex issue.
Any returning visitors to Knoware.no should refresh their browsers due to the change of venue!
Any returning visitors to Knoware.no should refresh their browsers due to the change of venue!
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Re: Knoware.no
OK, I've put the names in quotes, but I don't really see the point (at the moment
). Is it primarily about encoding the variable names and to delete the REMarks?

7000 4E75
Re: Knoware.no
Well, there's not much point in obfuscating a BOOT program as they tend to be relatively straightforward and linear (or is there a point in obfuscating any QL program at all these days?). But once you have a more substantial program with loops, procedures and functions, you can turn it into illegible gibberish that no-one can decode. It's a way to protect your programs.RalfR wrote: Wed Feb 19, 2025 4:33 pm OK, I've put the names in quotes, but I don't really see the point (at the moment). Is it primarily about encoding the variable names and to delete the REMarks?
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: Knoware.no
Well, that wasnt an ideal program to try it onRalfR wrote: Wed Feb 19, 2025 4:33 pm OK, I've put the names in quotes, but I don't really see the point (at the moment). Is it primarily about encoding the variable names?
bt_03.jpg

Youve seen the Q_Liberator sources. Imagine if there had been sensible variable names, remarks and a proper, indented, program structure. Wed have a much better chance of figuring out how the program worked. Right? Well, Obfuscater tries to do the opposite, to throw sand in the eyes of anyone trying to understand our program.
As mentioned, one could do more. For example any ad hoc toolkit commands could be given obscure names. The basic language itself can, of course not be obscured if you still want a working program.
Compiling a program these days is not as sure a way of hiding ones IP (or shame) as it used to be, as it can "easily" be decompiled. But the decompiled result can still be hard to understand in a complex program. So that is another way to obfuscate: Compile your program and then decompile it again!
PS: No criticism was intended, Ralf. Billions of QLers all over the galaxy dont quote their file names! Its perfectly ok and "legal". However, I think the option was offered as a concession. After all there werent as many typists among us then as there are today, and anything to shave off a few repetitive keystrokes was seen as a Very Good Thing.
I my case, the confusion between what was a "name" and a "string" cost me a few hours of extreme frustration that first day when I brought home my new QL! I guess the experience has left its mark 'til this day.
Luckily ALTKEY and later HOT_KEY solved the typing problem for me, as Ive mentioned elsewhere on the forum.
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Re: Knoware.no
That's what I did in my editor. My extensions are just called "EXTx". At first, no one knows what to do with thatpjw wrote: Wed Feb 19, 2025 4:54 pmFor example any ad hoc toolkit commands could be given obscure names.

Well, no one would be able to do anything with a procedure like this (if it were more extensive). At least not immediately.
- Attachments
-
- bt_04.jpg (13.89 KiB) Viewed 460 times
Last edited by RalfR on Wed Feb 19, 2025 5:03 pm, edited 1 time in total.
7000 4E75
Re: Knoware.no
You said it all, tofro, and in a fraction of the space I took to say more of less the same 

Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Re: Knoware.no
If you had described in more detail in your text what the program actually does, it would have been clear from the start.
7000 4E75
Re: Knoware.no
PreciselyRalfR wrote: Wed Feb 19, 2025 5:01 pmThat's what I did in my editor. My extensions are just called "EXTx". At first, no one knows what to do with thatpjw wrote: Wed Feb 19, 2025 4:54 pmFor example any ad hoc toolkit commands could be given obscure names..
Well, no one would be able to do anything with a procedure like this (if it were more extensive). At least not immediately.


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen