Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Decrypt this:
#11
This challenge isn't challenging no more. Here is my original proggie:

Code:
DECLARE FUNCTION decript$ (a$)
DECLARE FUNCTION encript$ (a$)
a$ = "HELLO WORLD"
PRINT a$
b$ = encript$(a$)
PRINT b$
c$ = decript$(b$)
PRINT c$

FUNCTION decript$ (a$)
   c% = VAL(a$): res$ = CHR$(c%)
   o$ = RIGHT$(a$, LEN(a$) - LEN(LTRIM$(STR$(VAL(a$)))))
   WHILE o$ <> ""
      m$ = LEFT$(o$, 1)
      o$ = RIGHT$(o$, LEN(o$) - 1)
      IF m$ = "<" THEN c% = c% - VAL(o$) ELSE IF m$ = ">" THEN c% = c% + VAL(o$)
      IF m$ <> "=" THEN o$ = RIGHT$(o$, LEN(o$) - LEN(LTRIM$(STR$(VAL(o$)))))
      res$ = res$ + CHR$(c%)
   WEND
   decript$ = res$
END FUNCTION

FUNCTION encript$ (a$)
   a% = ASC(LEFT$(a$, 1)): out$ = LTRIM$(STR$(a%))
   FOR i% = 2 TO LEN(a$)
      m% = ASC(MID$(a$, i%, 1))
      IF m% = a% THEN
         out$ = out$ + "="
      ELSEIF m% < a% THEN
         out$ = out$ + "<" + LTRIM$(STR$(a% - m%))
      ELSE
         out$ = out$ + ">" + LTRIM$(STR$(m% - a%))
      END IF
      a% = m%
   NEXT i%
   encript$ = out$
END FUNCTION

I've invented another encryptation algo. The output was:

Code:
35520781707917087370403237390843093082270089242032262084180723599073160833251033

Now crack this one.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Messages In This Thread
Decrypt this: - by na_th_an - 02-09-2004, 03:54 AM
Decrypt this: - by whitetiger0990 - 02-09-2004, 04:46 AM
Decrypt this: - by na_th_an - 02-09-2004, 05:18 AM
Decrypt this: - by whitetiger0990 - 02-09-2004, 05:21 AM
Decrypt this: - by na_th_an - 02-10-2004, 04:28 PM
::roll:: - by Meg - 02-10-2004, 05:24 PM
Decrypt this: - by KiZ - 02-10-2004, 05:45 PM
Re: ::roll:: - by na_th_an - 02-10-2004, 06:43 PM
Decrypt this: - by Rokkuman - 02-10-2004, 07:59 PM
Decrypt this: - by KiZ - 02-10-2004, 09:11 PM
Decrypt this: - by na_th_an - 02-10-2004, 10:03 PM
Decrypt this: - by KiZ - 02-11-2004, 12:38 AM
Decrypt this: - by Zack - 02-11-2004, 03:28 AM
Decrypt this: - by na_th_an - 02-11-2004, 05:49 PM
Decrypt this: - by KiZ - 02-11-2004, 06:02 PM
Decrypt this: - by na_th_an - 02-11-2004, 07:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)