Qbasicnews.com
Challenge: Write an algo - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QbasicNews.Com (http://qbasicnews.com/newforum/forum-3.html)
+--- Forum: Challenges (http://qbasicnews.com/newforum/forum-10.html)
+--- Thread: Challenge: Write an algo (/thread-2722.html)

Pages: 1 2


Challenge: Write an algo - Zack - 12-12-2003

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]


Challenge: Write an algo - na_th_an - 12-12-2003

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$



Challenge: Write an algo - Zack - 12-12-2003

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.


Challenge: Write an algo - whitetiger0990 - 12-12-2003

yes, please do. i wanna try


Challenge: Write an algo - na_th_an - 12-13-2003

Aw sorry about that - Now I realize I should've PMed you...

My apollogies. :oops:


Challenge: Write an algo - Neo - 12-15-2003

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:


Challenge: Write an algo - Anonymous - 12-16-2003

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


Challenge: Write an algo - whitetiger0990 - 12-16-2003

dead link.


Challenge: Write an algo - Anonymous - 12-16-2003

my apologies... it should be this
EDIT:This one should work... finally lol sorry
my bad.


Challenge: Write an algo - Lachie Dazdarian - 12-17-2003

And how do you decryipt in the first place? I mean, the stuff Nathan just did is like magic to me.