This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-12-14 14:38:50

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Code-Making and Code-Breaking

So I am very interested in making codes and breaking them and I think it would be an interesting discussion for those of you that do stuff like it.

The purpose of this thread is to make codes, write a simple sentence, encrypt it with your code then post the crypted text with your code and everyone else will try to break it. And to discuss Cryptography in general.

One of mine (that I wrote in Python) is:

Code:

# Asterik Encryption v1.5
# By Magnie
# Credit if used/modified. :D

def crypt(text, key):
    i = 0
    number = ''
    kord = sum([ord(x) for x in key]) * len(key)
    for x in text:
        temp = ord(x) + (kord + ord( key[i] ) * len(text))
        temp %= 255
        temp = str(temp)
        while len(temp) != 3:
            temp = '0'+temp
        number += temp
        i = (i+1) % len(key)
    
    return int(number)

def decrypt(text, key):
    try:
        number = int(text)
    except ValueError:
        return 'Not encrypted.'
    number = []
    kord = sum([ord(x) for x in key]) * len(key)
    temp = ''
    i = 0
    for x in text:
        temp += x
        i = (i+1) % 3
        if i == 0:
            number.append(temp)
            temp = ''
    decrypted = ''
    i = 0
    for x in number:
        decrypt = int(x) - (kord + ord( key[i] ) * len(number))
        while decrypt < 0:
            decrypt += 255
        decrypted += chr(decrypt)
        i = (i+1) % len(key)
    
    return decrypted
            
        

if __name__ == "__main__":
    while True:
        text = raw_input("Text: ")
        key = raw_input("Key: ")
        type = raw_input("(E)ncrypt or (D)ecrypt: ")
        if type.lower() == 'e':
            print crypt(text, key)
        elif type.lower() == 'd':
            print decrypt(text, key)

Crypted Text: 149109060190037230020097102242190106224019166121242184106240020162108056121
If you give up, highlight: Secret.
Notes: I'll see about making a website to encrypt and decrypt it with ( maybe even host other encryptions as well  big_smile  ).

So either discuss cryptography or give some challenges!  big_smile

Notes: I would like it if you added the encryption algorithm that you use to encrypt your text. Please don't just post messages without saying what type of code it is.

Also, no adding cuss words into texts. If you have, please remove it.

If you are posting a challenge, please make sure the text is at least 25 letters long ( plain text must be at least 25 letters long ).

Last edited by Magnie (2011-12-21 13:01:28)

Offline

 

#2 2011-12-14 15:46:46

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: Code-Making and Code-Breaking

abcdefghijklmnopqrstuvwxyz
^Thats for reference

I showed my friends this and they could never crack it. They got all mad.
Try this:
Na ocpi ju cqd

Offline

 

#3 2011-12-14 15:53:51

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

I've got one. It's called Seven. That's your hint. Try to solve this:
hni eac lmk lei oim mse ywn


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#4 2011-12-14 15:55:50

PoDo
Scratcher
Registered: 2009-02-23
Posts: 500+

Re: Code-Making and Code-Breaking

I like caesar codes.
I hid one in a note I gave someone.


http://i1214.photobucket.com/albums/cc498/Rubber_Dawg/Stop%20SOPA%20and%20PIPA/SOPAPIPA2.jpg

Offline

 

#5 2011-12-14 15:57:09

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Code-Making and Code-Breaking

A TBG, me thinks.


Why

Offline

 

#6 2011-12-14 15:57:52

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

RedRocker227 wrote:

A TBG, me thinks.

nt o i t s n o.
Edit-- ii dn ok ns to t h

Last edited by Wickimen (2011-12-14 15:59:03)


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#7 2011-12-14 16:00:52

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

ilkieL silst hkiai oeklm utele lattL dlhhO
New line: umacti necoan tokdlS inseke letiiv schane oremgn

Last edited by Wickimen (2011-12-14 16:04:04)


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#8 2011-12-14 16:03:28

Daroach1
Scratcher
Registered: 2011-09-11
Posts: 1000+

Re: Code-Making and Code-Breaking

ė ೏ğ ì!


http://i47.tinypic.com/v83mhl.png

Offline

 

#9 2011-12-14 16:04:49

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

Daroach1 wrote:

ė ೏ğ ì!

ls ot lh wa ut t? i


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#10 2011-12-14 16:06:06

Daroach1
Scratcher
Registered: 2011-09-11
Posts: 1000+

Re: Code-Making and Code-Breaking

Wickimen wrote:

Daroach1 wrote:

ė ೏ğ ì!

ls ot lh wa ut t? i

೜  I cant crack that.


http://i47.tinypic.com/v83mhl.png

Offline

 

#11 2011-12-14 16:07:19

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

Daroach1 wrote:

Wickimen wrote:

Daroach1 wrote:

ė ೏ğ ì!

ls ot lh wa ut t? i

೜  I cant crack that.

hem oas wh. ia lg or va


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#12 2011-12-14 16:11:44

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Code-Making and Code-Breaking

( Wow, tons of posts already )

Please specify what/which cryption algorithm you are using to encrypt ( mention that it is a Shift-Cipher, or if you made up the encryption and post the code you use to encrypt and decrypt stuff with ).

I guess this could be a TBG, but I didn't plan on making it one. Just general discussion on cryptography, not a game, just has some challenges with it.

Offline

 

#13 2011-12-14 16:18:34

Daroach1
Scratcher
Registered: 2011-09-11
Posts: 1000+

Re: Code-Making and Code-Breaking

My cryptation is insanely hard, even if you know it odds that you are getting how to to it are minimal, I am working on cleaning things up. Current status for the word project:
 G3n3ra1y, it is about using the HTML character code to take the first letters numerical place in the alphabet (like P, number 16) adding it to the total number of letters in the word and than putting that number in between the &# and ; points to create a special character.


http://i47.tinypic.com/v83mhl.png

Offline

 

#14 2011-12-14 16:27:55

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Code-Making and Code-Breaking

Daroach1 wrote:

My cryptation is insanely hard, even if you know it odds that you are getting how to to it are minimal, I am working on cleaning things up. Current status for the word project:
 G3n3ra1y, it is about using the HTML character code to take the first letters numerical place in the alphabet (like P, number 16) adding it to the total number of letters in the word and than putting that number in between the &# and ; points to create a special character.

That's interesting, do you have code written for it? I'd like to see.  smile

Offline

 

#15 2011-12-14 16:43:54

Daroach1
Scratcher
Registered: 2011-09-11
Posts: 1000+

Re: Code-Making and Code-Breaking

Magnie wrote:

Daroach1 wrote:

My cryptation is insanely hard, even if you know it odds that you are getting how to to it are minimal, I am working on cleaning things up. Current status for the word project:
 G3n3ra1y, it is about using the HTML character code to take the first letters numerical place in the alphabet (like P, number 16) adding it to the total number of letters in the word and than putting that number in between the &# and ; points to create a special character.

That's interesting, do you have code written for it? I'd like to see.  smile

It works for whole words only, single letters like A would be the letter position in the alphabet and all 


http://i47.tinypic.com/v83mhl.png

Offline

 

#16 2011-12-14 16:46:56

Powderbomb
Scratcher
Registered: 2011-10-01
Posts: 100+

Re: Code-Making and Code-Breaking

This one is rather easy to make, but a pain to decode:

Cy-o bry ao cu C tbr, abfrb. yday go.o ekrpatw cy-o hgoy ab cby.p.oycbi o.yglv

smile


Quitting forever because of lame April Fools joke
http://i43.tinypic.com/35m1n5s.jpghttp://i43.tinypic.com/35m1n5s.jpghttp://i43.tinypic.com/35m1n5s.jpg

Offline

 

#17 2011-12-14 16:48:54

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Code-Making and Code-Breaking

Guys, I would like it if you added the encryption algorithm that you use to encrypt your text. Please don't just post messages without saying what type of code it is.

Offline

 

#18 2011-12-14 17:15:55

Powderbomb
Scratcher
Registered: 2011-10-01
Posts: 100+

Re: Code-Making and Code-Breaking

Magnie wrote:

Guys, I would like it if you added the encryption algorithm that you use to encrypt your text. Please don't just post messages without saying what type of code it is.

I'll be honest, I have no idea what the types of encryption algorithms even are. Care to share?


Quitting forever because of lame April Fools joke
http://i43.tinypic.com/35m1n5s.jpghttp://i43.tinypic.com/35m1n5s.jpghttp://i43.tinypic.com/35m1n5s.jpg

Offline

 

#19 2011-12-14 17:20:08

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Code-Making and Code-Breaking

Powderbomb wrote:

Magnie wrote:

Guys, I would like it if you added the encryption algorithm that you use to encrypt your text. Please don't just post messages without saying what type of code it is.

I'll be honest, I have no idea what the types of encryption algorithms even are. Care to share?

Algorithms are a set of math operations, like width*length*height=Area of a cube.

So what I want you guys to do, is instead of just posting the encrypted text, show us what you used to encrypt it ( like what I did in the first post ) it shows what program/algorithm I used to generate the crypted text.

Offline

 

#20 2011-12-14 18:06:23

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

Okay, well, my code is an anagram.


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#21 2011-12-14 18:13:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Code-Making and Code-Breaking

Wickimen wrote:

Okay, well, my code is an anagram.

Hehe, that makes a lot of yours much simpler. :p You should create your own code, maybe even with Scratch.

And there is no set text with anagrams, so it could literally be anything, and there isn't a key to it to get the actual text.  hmm

Last edited by Magnie (2011-12-14 18:15:14)

Offline

 

#22 2011-12-14 18:18:20

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

Maybe
I like the anagram thing though, and there's a system to mine
This is how I do it--take text "okay here is a sample of my code"
Now put it in rows of seven characters:

okayher
eisasam
pleofmy
code

Now, write it from up to down:

oepc kilo ased yao hsf eam rmy

So to solve, you just write each line in the other direction:

o
e
p
c

and so on.
It's a good code if you're writing it and not using the computer--if there's no computer available, then you can still use it
Me and my friend used it when we were 'spies'  tongue

Last edited by Wickimen (2011-12-14 18:19:39)


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#23 2011-12-14 18:21:17

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Code-Making and Code-Breaking

Wickimen wrote:

Maybe
I like the anagram thing though, and there's a system to mine
This is how I do it--take text "okay here is a sample of my code"
Now put it in rows of seven characters:

okayher
eisasam
pleofmy
code

Now, write it from up to down:

oepc kilo ased yao hsf eam rmy

So to solve, you just write each line in the other direction:

o
e
p
c

and so on.
It's a good code if you're writing it and not using the computer--if there's no computer available, then you can still use it
Me and my friend used it when we were 'spies'  tongue

That's cool. Do that and add a shift to it and it would be hard to crack by hand if people didn't know you were shifting the letters.

Offline

 

#24 2011-12-14 18:23:53

Wickimen
Scratcher
Registered: 2009-08-02
Posts: 1000+

Re: Code-Making and Code-Breaking

Magnie wrote:

Wickimen wrote:

Maybe
I like the anagram thing though, and there's a system to mine
This is how I do it--take text "okay here is a sample of my code"
Now put it in rows of seven characters:

okayher
eisasam
pleofmy
code

Now, write it from up to down:

oepc kilo ased yao hsf eam rmy

So to solve, you just write each line in the other direction:

o
e
p
c

and so on.
It's a good code if you're writing it and not using the computer--if there's no computer available, then you can still use it
Me and my friend used it when we were 'spies'  tongue

That's cool. Do that and add a shift to it and it would be hard to crack by hand if people didn't know you were shifting the letters.

What do you mean, shift it?  hmm  Like, capitalize?


xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Offline

 

#25 2011-12-14 18:34:44

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Code-Making and Code-Breaking

Wickimen wrote:

Magnie wrote:

Wickimen wrote:

Maybe
I like the anagram thing though, and there's a system to mine
This is how I do it--take text "okay here is a sample of my code"
Now put it in rows of seven characters:

okayher
eisasam
pleofmy
code

Now, write it from up to down:

oepc kilo ased yao hsf eam rmy

So to solve, you just write each line in the other direction:

o
e
p
c

and so on.
It's a good code if you're writing it and not using the computer--if there's no computer available, then you can still use it
Me and my friend used it when we were 'spies'  tongue

That's cool. Do that and add a shift to it and it would be hard to crack by hand if people didn't know you were shifting the letters.

What do you mean, shift it?  hmm  Like, capitalize?

Shift a's to b's and b's to c's or a's to c's and b's to d's. Like
Plaintext: Hello! How are you?
Shifted by 1 letter: Ifmmp! Ipx bsf zpv?
Shifted by 2 letters: Jgnnq! Jqy ctg aqw?

Something like that.

Offline

 

Board footer