Posts: 3,616
Threads: 287
Joined: Jan 2003
Code: GY QSS ZIT YGKXD DTDWTKL ITKT, DQFN QKT ESTCTK TFGXUI ZG YOUXKT ZIOL GXZ. QUQDTDFXL OL HQKZOEXSQKSN UGGR QZ ZIOL LGKZ GY ZIOFU, QFR LG O'D WTZZOFU ZIQZ IT VOSS VOF ZIOL EGDHG. UGGR SXEA ZG QSS, QFR OY NGX QKT ZIOL YQK QSGFU, EGFUKQZL, NGX IQCT OZ!
Reveal what each letter stands for then substitute - the result is a cute little message. If nobody gets it then I'll post the source code that generated it.
Hint: a shortcut is right under your nose.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 476
Threads: 35
Joined: May 2006
Now I'm no genius, but basics of cryptography is to try the simplist methods first. For anyone who's interested, here you go. Use UNDO as the input_string to undo something, and ESC to quit:
Turn Write_To_File = true to write your decrypt to file.
NOTE: This does not support switching more than one character in one move. I'm pretty sure you'd want to use MID for that and I don't use MID.
Code: Const false = 0, true = not false
'Dim your Variables Here:
dim counter = 0
dim write_to_file as integer 'If this is true, then it will write the text to a file:
write_to_file = true
dim a as string
dim b(0 to 25) as string
'Put the Crytext into a string:
A = "GY QSS ZIT YGKXD DTDWTKL ITKT, DQFN QKT ESTCTK TFGXUI ZG YOUXKT ZIOL GXZ. QUQDTDFXL OL HQKZOEXSQKSN UGGR QZ ZIOL LGKZ GY ZIOFU, QFR LG O'D WTZZOFU ZIQZ IT VOSS VOF ZIOL EGDHG. UGGR SXEA ZG QSS, QFR OY NGX QKT ZIOL YQK QSGFU, EGFUKQZL, NGX IQCT OZ!"
B(0) = A
dim a_save(0 to len(a)) as integer
'The Variables for the Input and Replace:
Dim Input_String as string
Dim Replace_String as String
do
'Clear the Screen and Print the text:
cls
Print A
'Input, the string you want to replace:
Input "Which letter will you replace? ", Input_String
'If the string is UNDO then undo:
if ucase$(input_string) = "UNDO" then
'If it's legal to do so, go back one step:
if counter > 0 then
counter -= 1
end if
A = B(counter)
'If the String isn't undo, then add to the changes made:
else
If ucase$(Input_String) = "ESC" then
If write_to_file = true then
open "Cryptext.txt" for output as #1
Print #1, A
Close #1
end if
end
end if
counter += 1
'What do you want to replace your string with?
Input "Replace With What? ", Replace_String
'Replace all characters of Input_string with your Replace_String
for do_text = 0 to len(a) - 1
'If A, character do_text is equivalent to Input_String, replace with ReplaceString:
if a[do_text] = asc(input_string) then
if a_save(do_text) = false then
a[do_text] = asc(Replace_string)
a_save(do_text) = true
end if
end if
next
end if
'Make the undo_string = A:
B(counter) = A
If write_to_file = true then
open "Cryptext.txt" for output as #1
Print #1, A
Close #1
end if
loop
Posts: 2,404
Threads: 153
Joined: Jan 2005
Code: 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 it you are this far
along, congrats, you have it!
.... Few minutes in FBIde changing the letters around as they fitted.. :mrgreen:
Kevin ( x.t.r.GRAPHICS)
Posts: 476
Threads: 35
Joined: May 2006
I was wondering what 3 letter word has two letters that are the same...That would make sense.
How on earth could I have missed the world, "All"? That's normally the simplist one to figure out... ^_^;;
EDIT: Updated program to know whether you have switched a letter already or not. No more problems with switching H to I, then I to whatever...
Posts: 2,404
Threads: 153
Joined: Jan 2005
Quote:I was wondering what 3 letter word has two letters that are the same...That would make sense.
How on earth could I have missed the world, "All"?
I was thinking a-s-s for a bit, but then I saw I hadn't swapped the S's yet... hifty:
Kevin ( x.t.r.GRAPHICS)
Posts: 476
Threads: 35
Joined: May 2006
Quote:I was thinking a-s-s for a bit, but then I saw I hadn't swapped the S's yet... hifty:
Well you gave me a good idea: Updated program to know whether you have switched a letter already or not. No more problems with switching H to I, then I to whatever...
Thnx
This was a fun challenge. Make another crypto plz
Posts: 544
Threads: 27
Joined: Jan 2005
My answer:
OF ALL THE FORUM MEMBERS HERE, MANY ARE CLEVER ENOUGH TO FIGURE
GY QSS ZIT YGKXD DTDWTKL ITKT, DQFN QKT ESTCTK TFGXUI ZG YOUXKT
THIS OUT AGAMEMNUS IS PARTICULARLY GOOD AT THIS SORT OF THING,
ZIOL GXZ. QUQDTDFXL OL HQKZOEXSQKSN UGGR QZ ZIOL LGKZ GY ZIOFU,
AND SO IâM BETTING THAT HE WILL WIN THIS COMPO. GOOD LUCK TO ALL,
QFR LG O'D WTZZOFU ZIQZ IT VOSS VOF ZIOL EGDHG. UGGR SXEA ZG QSS,
AND IF YOU ARE THIS FAR ALONG, CONGRATS, YOU HAVE IT!
QFR OY NGX QKT ZIOL YQK QSGFU, EGFUKQZL, NGX IQCT OZ!
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Posts: 3,522
Threads: 189
Joined: Dec 2003
Here's a more interessting one:
Code: eôâ°Ã°[^_]øpé|ÿÿÿâ¹Mèâ°Ãâ¦Ãâ¦Ã¿Ã¿Ã¿Â·7éÿÿÿÂÂÂÂÂÂÂÂÂÂÂÂÂUâ°Ã¥WVSÆìLâ¹Eâ¹]â¹0â¹~ â¹Vâ¦Ã¿â°UÃâ¦m
ÆùuÃÂeô¸ÿÿÿÿ[^_]öÃfÆûXâ°Mèv7â°Ã¸Eu
â¹Eìâ¦ÃâÃUâ°Ã¥SÆìâ¹]â¹Âà Ã
@â¹UÃâ¹MÃfâ°UèÃù¿Uîfâ°EêËâ°Ã)Ãâ°Ã¸@1ÿ9Ã}BÂ<â°U÷F1ÃÃEä ÂUèâ°L$â¹MÃfâ°EæÂEäâ°D$â¹EÃâ°T$â°$â°D$è6ÿÂE¸â°EËâ¹ÂLÿÿÿâ¹â¢\ÿÿÿÃEÂà H@Âeô[^_]Ãâ°|$1ÃÂâ¦dÿÿÿâ°L$â°D$â°\$¡Ãþ@
Enjoy!
...
Posts: 3,616
Threads: 287
Joined: Jan 2003
@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.
Posts: 3,522
Threads: 189
Joined: Dec 2003
Quote:@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.
I'm sure.
Well, provided you have a ISO standard charset enabled on your computer, which you should have.
|