Discuss Scratch

PPPDUD
Scratcher
1000+ posts

Manually obfuscated coding

Share manually obfuscated codes here! Here's one in Python that counts from 0 to 5 with a one second delay:
from time import time
class Timer:
    def __init__(self, duration):
         self.unixtime = time()
         self.duration = duration
    def getStatus(self):
        return time() - self.unixtime > self.duration
timer = Timer(5)
while not timer.getStatus():
    print(int(time()) - int(timer.unixtime), "..")
    seconds = Timer(1)
    while not seconds.getStatus():
        pass
print("Five seconds!")
All submissions should not be humanly unreadable or automatically generated, but should still attempt to break the rules found in the Zen of Python.
BreadcatGames
Scratcher
1000+ posts

Manually obfuscated coding

PPPDUD wrote:

Share manually obfuscated codes here! Here's one in Python that counts from 0 to 5 with a one second delay:
from time import time
class Timer:
    def __init__(self, duration):
         self.unixtime = time()
         self.duration = duration
    def getStatus(self):
        return time() - self.unixtime > self.duration
timer = Timer(5)
while not timer.getStatus():
    print(int(time()) - int(timer.unixtime), "..")
    seconds = Timer(1)
    while not seconds.getStatus():
        pass
print("Five seconds!")
All submissions should not be humanly unreadable or automatically generated, but should still attempt to break the rules found in the Zen of Python.
Obfuscated code is human-unreadable, so change the topic to hard-to-read python code
PPPDUD
Scratcher
1000+ posts

Manually obfuscated coding

BreadcatGames wrote:

PPPDUD wrote:

Share manually obfuscated codes here! Here's one in Python that counts from 0 to 5 with a one second delay:
from time import time
class Timer:
    def __init__(self, duration):
         self.unixtime = time()
         self.duration = duration
    def getStatus(self):
        return time() - self.unixtime > self.duration
timer = Timer(5)
while not timer.getStatus():
    print(int(time()) - int(timer.unixtime), "..")
    seconds = Timer(1)
    while not seconds.getStatus():
        pass
print("Five seconds!")
All submissions should not be humanly unreadable or automatically generated, but should still attempt to break the rules found in the Zen of Python.
Obfuscated code is human-unreadable, so change the topic to hard-to-read python code
Just don't go ridiculously unreadable.
Caroix
New Scratcher
500+ posts

Manually obfuscated coding

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
PPPDUD
Scratcher
1000+ posts

Manually obfuscated coding

Caroix wrote:

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
What does this thing do?
Caroix
New Scratcher
500+ posts

Manually obfuscated coding

PPPDUD wrote:

Caroix wrote:

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
What does this thing do?
Run it, you mean a wife?!?!?! /ej
BreadcatGames
Scratcher
1000+ posts

Manually obfuscated coding

Caroix wrote:

PPPDUD wrote:

Caroix wrote:

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
What does this thing do?
Run it, you mean a wife?!?!?! /ej
What the heck is a /ej
Caroix
New Scratcher
500+ posts

Manually obfuscated coding

BreadcatGames wrote:

Caroix wrote:

PPPDUD wrote:

Caroix wrote:

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
What does this thing do?
Run it, you mean a wife?!?!?! /ej
What the heck is a /ej
/Enthusiastically Joking (/ej)
BreadcatGames
Scratcher
1000+ posts

Manually obfuscated coding

Caroix wrote:

BreadcatGames wrote:

Caroix wrote:

PPPDUD wrote:

Caroix wrote:

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
What does this thing do?
Run it, you mean a wife?!?!?! /ej
What the heck is a /ej
/Enthusiastically Joking (/ej)
Please stop making up tone tags, they won’t catch on and are just cringe
Caroix
New Scratcher
500+ posts

Manually obfuscated coding

BreadcatGames wrote:

Caroix wrote:

BreadcatGames wrote:

Caroix wrote:

PPPDUD wrote:

Caroix wrote:

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
What does this thing do?
Run it, you mean a wife?!?!?! /ej
What the heck is a /ej
/Enthusiastically Joking (/ej)
Please stop making up tone tags, they won’t catch on and are just cringe
Ok, sorry, no offense /nm /q /ns
INSERT-USER_NAME
Scratcher
1000+ posts

Manually obfuscated coding

Caroix wrote:

BreadcatGames wrote:

Caroix wrote:

BreadcatGames wrote:

Caroix wrote:

PPPDUD wrote:

Caroix wrote:

assign x 1
assign y x+1
assign z x+247/129+x-y*2+x*0.0011
if x > z*0.1124
if y > x
write Successful!
end
end
What does this thing do?
Run it, you mean a wife?!?!?! /ej
What the heck is a /ej
/Enthusiastically Joking (/ej)
Please stop making up tone tags, they won’t catch on and are just cringe
Ok, sorry, no offense /nm /q /ns
ajskateboarder
Scratcher
1000+ posts

Manually obfuscated coding

PPPDUD wrote:

All submissions should not be humanly unreadable
Bro this is the whole point of obfuscation. Here's your example code manually obfuscated
from time \
import time \
as ______
class ____:
    def __init__(self, 
_):
         self.___ = ______(); \
            self.\
            __ =\
            _
    def _____(self):
        return ______() - \
        self.___ \
        >\
        self.__
__ = ____(5)
while \
not \
__.\
_____():
    print\
    (\
    int(______()) - \
    int(__.___\
    ), \
    "..\
    ");
    _ = ____(1);
    while not _._____():pass;
print\
(\
"Five \
sec\
onds!"\
)
jellyfishfisher56
Scratcher
500+ posts

Manually obfuscated coding

I always like doing this..
import time
import math
def
__d
(z,r)
:
x =
abs
(self.
unixtime)
x ±
(r)
return
x
__
=
a__________
while __
==
a___________:
ti__r = __
d
(delay.
unixtime
, 5.4)__)
it's a timer but it looks like someone spammed down every key on their keyboard

Last edited by jellyfishfisher56 (April 14, 2023 07:37:13)

__evelyn
New Scratcher
100+ posts

Manually obfuscated coding

let 
    x
    = 0
if (0==0x0)x
    x++; if (1==0x1)false; console['gol'.split('').reverse().join('')](x);
if (0==0x0)x
    x
        =
x+x; console['gol'.split('').reverse().join('')](x);
if (0==0x0)x
    x =
    x + 
        x; if (1==0x1)false; console['gol'.split('').reverse().join('')](x-1);
if (0==0x0)x
    x; if (1==0x1)false; console['gol'.split('').reverse().join('')](x);
if (0==0x0)x
    x++; if (1==0x1)false; console['gol'.split('').reverse().join('')](x);
if (0==0x0)x
    x
        
        =
        6; if (1==0x1)false; console['gol'.split('').reverse().join('')](x);
ajskateboarder
Scratcher
1000+ posts

Manually obfuscated coding

jellyfishfisher56 wrote:

import time
import math
def
__d
(z,r)
:
x =
abs
(self.
unixtime)
x ±
(r)
return
x
__
=
a__________
while __
==
a___________:
ti__r = __
d
(delay.
unixtime
, 5.4)__)
This code doesn't work
jellyfishfisher56
Scratcher
500+ posts

Manually obfuscated coding

ajskateboarder wrote:

jellyfishfisher56 wrote:

import time
import math
def
__d
(z,r)
:
x =
abs
(self.
unixtime)
x ±
(r)
return
x
__
=
a__________
while __
==
a___________:
ti__r = __
d
(delay.
unixtime
, 5.4)__)
This code doesn't work
It does, try
ajskateboarder
Scratcher
1000+ posts

Manually obfuscated coding

jellyfishfisher56 wrote:

It does, try


Replacing ± with += gives this:

SonicFanX123_321
Scratcher
1000+ posts

Manually obfuscated coding

ajskateboarder wrote:

(#17)

jellyfishfisher56 wrote:

It does, try


Replacing ± with += gives this:


then delete the )

Powered by DjangoBB