• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

Can you crack this code

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Cryptographic Theory and Cryptanalysis - Internal and Transmission Security

View previous topic :: View next topic  
Author Message
lucb1e
Just Arrived
Just Arrived


Joined: 24 Dec 2008
Posts: 0
Location: The Netherlands

Offline

PostPosted: Wed Dec 24, 2008 12:56 pm    Post subject: Can you crack this code Reply with quote

Hello,
I made a program wich can encrypt data. It is pretty simple to crack if you know the technique, but I'd like to know how difficult it is to crack when you don't know it.
I'd really appreciate it if someone tries to crack this:

111111111111111111111111\0000000000\111111\00000000000000000\11111\00000\11111\11111111111\

It are 8 letters.

Good luck and thank you very much!!
-Luc
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fire Ant
Trusted SF Member
Trusted SF Member


Joined: 27 Jun 2008
Posts: 3
Location: London

Offline

PostPosted: Wed Dec 24, 2008 5:20 pm    Post subject: Reply with quote

lucb1e,

You have posted a very small piece of ciphertext, too small to do any cryptanalysis on. Just about any cipher would be very hard to crack with only a small amount of text.

Matt_S
Back to top
View user's profile Send private message
RoboGeek
SF Mod
SF Mod


Joined: 13 Jun 2003
Posts: 16777166
Location: LeRoy, IL

Offline

PostPosted: Fri Dec 26, 2008 5:28 am    Post subject: Reply with quote

the answer is 42.. don't forget your towel!
Back to top
View user's profile Send private message Visit poster's website
Angoth
Just Arrived
Just Arrived


Joined: 07 Mar 2006
Posts: 0


Offline

PostPosted: Mon Jan 05, 2009 6:23 pm    Post subject: Reply with quote

youdidit

I believe that's right, I could be wrong, though.

Angoth

Edit: 1's are moving one character to the right in the alphabet. 0's are moving one character to the left.

Start with A. Move 24 to the right. Y
Start with Y. Move 10 to the left. O
Start with O. Move 6 to the right. U
Start with U. Move 17 to the left. D
Start with D. Move 5 to the right. I
Start with I. Move 5 to the left. D
Start with D. Move 5 to the right. I
Start with I. Move 10 to the right. T

The more text you encrypt with your method, the more times someone will be hit over the head with the realization that you'll never get more than 25 1's or 0's per character. That's a pretty big clue. But, honestly, everyone starts with something like this. It's just moving around the alphabet. It's the differential that is the clue, especially the longer that you extend it.

The only problem I have is that it's such a short piece of ciphertext that I have arrived at one *possible* solution. The phrase does indicate that I got it right, though.
Back to top
View user's profile Send private message
lucb1e
Just Arrived
Just Arrived


Joined: 24 Dec 2008
Posts: 0
Location: The Netherlands

Offline

PostPosted: Wed Mar 04, 2009 9:51 am    Post subject: Reply with quote

Sorry for my late reply, but you are right Angoth Very Happy
I already got a new version of it which does make it a little more tricky, it now doesn't limit to 25 0's or 1's. But thanks for the tip Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Pillow Whisperer
Just Arrived
Just Arrived


Joined: 18 Feb 2008
Posts: 0


Offline

PostPosted: Sun Sep 13, 2009 8:40 am    Post subject: Reply with quote

Angoth is right, the cipher text gives away alot of information about both the key and plain text. key being ether 0 or 1 plus the length and plain text being first element. He is also right about the whole 26 thing. one way of making it more empowered and easier to work on is converting each element so its the same length... and also hiding the way the rotation works by hiding it in your key that must be used, instead of including it in the cipher text with the 0 and 1. converting the elements so there the same length is as easy as finding how much info you can jam into a bit. since your using only letters we will assume a starts at 0 and z is 25. since there are 25 elements you can find out how much data is actually stored (called entropy) by LOG(n)/LOG(2) n being the number of elements. so we find that 25 elements can be stored in some 4.6bits or 5 bits. starting from 00000 for a to 11001 to z. now for the key... an easy way of making your algo key based is making it as long as your plain text (message) and using ether 0 or 1 for shift left and right. this also saves memory by making each message exactly 5 bits long assuming that each letter appears equally in a message(usually not the case but for simplicity, and that if this algo is stronger then data should appear random) then your cipher text size is reduced by almost 50% even if you use bytes as storage!

so your message
111111111111111111111111\0000000000\111111\00000000000000000\11111\00000\11111\11111111111\ becomes
11000 01010 00110 10001 00101 00101 00101 01010
and the key is : 10101011

hope that helps
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Cryptographic Theory and Cryptanalysis - Internal and Transmission Security All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register