Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cryptogram!
#1
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.
Reply
#2
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
Reply
#3
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!

Tongue .... Few minutes in FBIde changing the letters around as they fitted.. :mrgreen:
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#4
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... Big Grin
Reply
#5
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... Confusedhifty:
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#6
Quote:I was thinking a-s-s for a bit, but then I saw I hadn't swapped the S's yet... Confusedhifty:
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... Big Grin

Thnx Tongue

This was a fun challenge. Make another crypto plz Tongue
Reply
#7
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.
Reply
#8
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ꘉ×)ljø@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!



...
Reply
#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
#10
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)