Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hello World Obfuscation
#6
My 15 minutes of wasted downtime Blush
Code: (Select All)
CONST s = "++++++++,-----,------------,------------,---------------,,+++++++++++++++++++++++,---------------,------------------,------------,----"
CONST n = _CEIL(_PI * 10)

DIM AS INTEGER sl, sl2, i
DIM c AS STRING * 1

sl = LEN(s)
i = 0

WHILE sl > 0
    sl2 = sl
    c = MID$(s, i, 1)
    IF c = "+" THEN
        WHILE MID$(s, i, 1) = "+"
            sl = sl - 1
            i = i + 1
        WEND
        PRINT CHR$(sl2 - sl + _SHL(n, 1));
    ELSEIF c$ = "-" THEN
        WHILE MID$(s, i, 1) = "-"
            sl = sl - 1
            i = i + 1
        WEND
        PRINT CHR$(sl2 - sl + _SHL(n, 1) + n);
    ELSE
        PRINT CHR$(n);
        sl = sl - 1
        i = i + 1
    END IF
WEND
Reply


Messages In This Thread
Hello World Obfuscation - by Unseen Machine - 12-21-2025, 05:54 AM
RE: Hello World Obfuscation - by Pete - 12-21-2025, 06:58 AM
RE: Hello World Obfuscation - by SMcNeill - 12-21-2025, 09:32 AM
RE: Hello World Obfuscation - by SMcNeill - 12-21-2025, 09:38 AM
RE: Hello World Obfuscation - by Dav - 12-21-2025, 11:38 AM
RE: Hello World Obfuscation - by tantalus - 12-21-2025, 12:01 PM
RE: Hello World Obfuscation - by Unseen Machine - 12-22-2025, 12:48 PM
RE: Hello World Obfuscation - by Dav - 12-21-2025, 12:13 PM
RE: Hello World Obfuscation - by ChiaPet - 12-22-2025, 04:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)