Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cryptogram!
#9
@Z!re: you sure there aren't undisplayed characters in there? There would be if you copied it directly from some sort of bitwise encryption.

Anywho, good job all! Here's the code that generated it - notice how the character correspond. :wink:
Code:
dim as string kb,ol,phrase,temp,c_phrase
dim as integer offset
kb="QWERTYUIOPASDFGHJKLZXCVBNM"
ol="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
phrase="OF ALL THE FORUM MEMBERS HERE, MANY ARE CLEVER ENOUGH TO FIGURE THIS OUT. " + _
        "AGAMEMNUS IS PARTICULARLY GOOD AT THIS SORT OF THING, AND SO I'M BETTING " + _
        "THAT HE WILL WIN THIS COMPO. GOOD LUCK TO ALL, AND IF YOU ARE THIS FAR ALONG, " + _
        "CONGRATS, YOU HAVE IT!"
apos=asc("A")
zpos=asc("Z")
for i=1 to len(phrase)
    temp=mid$(phrase,i,1)
    if asc(temp)>=apos and asc(temp)<=zpos then
        offset=asc(temp)-apos+1
        c_phrase+=mid$(kb,offset,1)
    else
        c_phrase+=temp
    end if
next
print phrase
print c_phrase
sleep
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply


Messages In This Thread
Cryptogram! - by Zack - 05-27-2006, 02:03 AM
Cryptogram! - by TheAdventMaster - 05-27-2006, 03:18 AM
Cryptogram! - by Rattrapmax6 - 05-27-2006, 03:54 AM
Cryptogram! - by TheAdventMaster - 05-27-2006, 03:55 AM
Cryptogram! - by Rattrapmax6 - 05-27-2006, 04:03 AM
Cryptogram! - by TheAdventMaster - 05-27-2006, 04:05 AM
Cryptogram! - by Ralph - 05-27-2006, 06:13 AM
Cryptogram! - by Z!re - 05-27-2006, 04:59 PM
Cryptogram! - by Zack - 05-28-2006, 07:17 AM
Cryptogram! - by Z!re - 05-28-2006, 07:35 PM
Cryptogram! - by Agamemnus - 05-28-2006, 11:14 PM
Cryptogram! - by Skyler - 07-28-2006, 07:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)