Qbasicnews.com

Full Version: Challenge: Write an algo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Write an algo to decrypt this:
J#hmlt#tkbw#zlv$qf#wkjmhjmd-#Gjg#kf#ejqf#pj{#pklwp#lq#lmoz#ejuf<#Tfoo/#wl#wfoo#zlv#wkf#wqvwk/#jm#boo#wkjp#f{`jwfnfmw/#J$uf#hjmgb#olpw#wqb`h#nzpfoe-#Avw#afjmd#bp#wkjp#jp#b#-77#Nbdmvn#---#zlv$uf#dlw#wl#bph#zlvqpfoe#lmf#rvfpwjlm9#$Gl#J#effo#ov`hz<$#Tfoo/#gl#zb#svmh<
Your score will increase if:
1) You actually manage to decrypt it
2) How readable the code is.
[EDIT]Actually, that isn't going to work since there might be some unprintable chars there...here's a text file with the same thing, pure ASCII: http://www.thegeekery.org/ciph.txt [/EDIT]
Code:
' I saw the # that looked spaces. ASC("#")=35, so it was SPACE+3
' I figured out that you XORed something to encode this, as I cheated
' seeing your latest subroutines ;) So I tried...

OPEN "ciph.txt" FOR INPUT AS #1
LINE INPUT #1, ciphered$
CLOSE #1

deciphered$ = ""

FOR i% = 1 TO LEN(ciphered$)
   current$ = MID$(ciphered$, i%, 1)
   dec% = ASC(current$) XOR 3
   deciphered$ = deciphered$ + CHR$(dec%)
NEXT i%

PRINT deciphered$
Very good, Nath!
5 points for code readability, and 3 for just figuring it out.
You should have PMed me the result, now nobody else can try.

I might make another challenge, more secure algo.
yes, please do. i wanna try
Aw sorry about that - Now I realize I should've PMed you...

My apollogies. :oops:
Quote:Very good, Nath!
5 points for code readability, and 3 for just figuring it out.
You should have PMed me the result, now nobody else can try.

I might make another challenge, more secure algo.
Hehe. lol. I already saw it was some kind of practical example of your new-discovered encryption... where the decryption and encryption routines are the same Wink I don't mind that I can't enter anything. :roll:

Anonymous

in the spirit of password-less encryption, i give you this. This is my feeble newbie attempt at encryption from 3 yrs ago. The algo is something pretty neat though... i dont know if anyone has ever done anything like this before. Mad props if you can do it! Wink

EDIT: Note: You must open this in qbasic to see all the characters properly... i think
dead link.

Anonymous

my apologies... it should be this
EDIT:This one should work... finally lol sorry
my bad.
And how do you decryipt in the first place? I mean, the stuff Nathan just did is like magic to me.
Pages: 1 2