Ok, so I had this idea that what if we tried to take some of the simplest ti-basic programs and obfuscated them as best and uniquely as possible. Maybe this idea won't get very far, but I was bored so I thought I might as well try.

Using a bunch of scrambled Lbls and Gotos was one of my first idea for this honestly, but using too much gets to be a boring method of obfuscation.

This here is a simple homescreen movement program, which runs good, but is not the most obfuscated it could be. Perhaps you could do worse (without affecting the size and speed too much)? If you want you could also try obfuscating your own favorite simple programs.


Code:
For(I,4,~1+int(1.59154943092*pi
End
I+BROWN/int([e]->I%
not(Ans->|N
Goto E
Lbl C
If |N=2MedGray+1
Goto E
If sum(|N={DarkGray,25,2Magenta,2Navy,2MedGray+1
Then
   Output(I,I%," "
   I+(|N=2Navy)(I<Blue)-(|N=Gray+2)(I>1->I
   I%+(|N=2Magenta)(I%<2Magenta)-(|N=DarkGray)(I%>1->I%
End
Lbl S
Output(I,I%,"X"
For(theta,int(~|E9rand),0
   getKey->|N
   If Ans
   1->theta
End
Goto C
Lbl E
ClrHome
If not(|N
Goto S
Couldn't you just do a JavaScript-style obfuscation and put everything on one line separated by colons like this?

Code:
For(I,4,~1+int(1.59154943092*pi:End:I+BROWN/int([e]->I%:not(Ans->|N:Goto E:Lbl C:If |N=2MedGray+1:Goto E:If sum(|N={DarkGray,25,2Magenta,2Navy,2MedGray+1:Then:Output(I,I%," ":I+(|N=2Navy)(I<Blue)-(|N=Gray+2)(I>1->I:I%+(|N=2Magenta)(I%<2Magenta)-(|N=DarkGray)(I%>1->I%:End:Lbl S:Output(I,I%,"X":For(theta,int(~|E9rand),0:getKey->|N:If Ans:1->theta:End:Goto C:Lbl E:ClrHome:If not(|N:Goto S
calclover2514 wrote:
Couldn't you just do a JavaScript-style obfuscation and put everything on one line separated by colons like this?

(Code)

Indeed you could!

However just because you're putting things all on one line doesn't mean the user can't still read it.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement