Ethics: Codes

This forum is for discussion related to the game.
User avatar
mith
mith
Godfather
User avatar
User avatar
mith
Godfather
Godfather
Posts: 9267
Joined: March 27, 2002
Location: McKinney, TX

Post Post #25 (ISO) » Mon Jun 19, 2006 4:09 am

Post by mith »

Indeed, if what you're talking about is a one-time pad, you can just make up an approrpriate key later on.

Another XOR code possibility would be to split your claim into two pieces and XOR them against each other. This is much more difficult (nearly impossible) to fake, but is also more vulnerable to being broken.
User avatar
VisMaior
VisMaior
Flip Out!
User avatar
User avatar
VisMaior
Flip Out!
Flip Out!
Posts: 3776
Joined: June 22, 2005
Location: Budapest

Post Post #26 (ISO) » Mon Jun 19, 2006 4:16 am

Post by VisMaior »

If I'm not mistaken, with XOR encryption, you can make up a key afterward that turns the encrypted post into absolutely any message you want.
Right, but not if you have a password of minimal length (like, 8 chars or so) and repeat the word over and over. No real problem, people using a key as long as the messge iotself are claiming false.
"logic is in the eye of the beholder" -LyingBrian in Eyewitness 1
"correct me if i'm wrong, but isn't the CHANCE of something happening always 50% (either it will or it won't)?" -LyingBrian in BJs Wild West mafia
User avatar
mith
mith
Godfather
User avatar
User avatar
mith
Godfather
Godfather
Posts: 9267
Joined: March 27, 2002
Location: McKinney, TX

Post Post #27 (ISO) » Mon Jun 19, 2006 4:26 am

Post by mith »

Ah, you mean Vigenère. That's pretty vulnerable, at least for a long enough message.
Last edited by mith on Mon Jun 19, 2006 4:28 am, edited 1 time in total.
User avatar
Fiasco
Fiasco
Goon
User avatar
User avatar
Fiasco
Goon
Goon
Posts: 834
Joined: September 21, 2005

Post Post #28 (ISO) » Mon Jun 19, 2006 4:28 am

Post by Fiasco »

That does seem like it would work, but maybe there's some sort of clever way to find a few different meaningful messages that could be turned to the same code using different repeating keys? It seems unlikely, but with RSA you have a full guarantee.

edit: Mith: how long is "long enough"? With just a few lines of encoded text available, is there any chance to break it in practice? I'd guess not.
"I beseech you, in the bowels of Christ, think it possible you may be mistaken." - Oliver Cromwell
User avatar
VisMaior
VisMaior
Flip Out!
User avatar
User avatar
VisMaior
Flip Out!
Flip Out!
Posts: 3776
Joined: June 22, 2005
Location: Budapest

Post Post #29 (ISO) » Mon Jun 19, 2006 4:51 am

Post by VisMaior »

Vigenère, no, I dont mean that. Exclusive-OR, thats what I mean.

For every bit in the encrypted data we take the appropriate bit in the ley. If Keybit(n)==1, we invert the textbit. Otherwise we do nothing.

Basically, its a bitwise XOR operation between the text and the key. Unbreakable without the key, as the information in every bit of the text is exactly half a bit. No correlatiopn whatsoever with the next bit. With short keys repetitively added it shows some degree of vulnerability, wich is actually dispatched quiet easily, but for the purposes of a forum game, it should proove unbreakable even so.
"logic is in the eye of the beholder" -LyingBrian in Eyewitness 1
"correct me if i'm wrong, but isn't the CHANCE of something happening always 50% (either it will or it won't)?" -LyingBrian in BJs Wild West mafia
User avatar
mith
mith
Godfather
User avatar
User avatar
mith
Godfather
Godfather
Posts: 9267
Joined: March 27, 2002
Location: McKinney, TX

Post Post #30 (ISO) » Mon Jun 19, 2006 5:07 am

Post by mith »

I know what XOR means... :roll:

What I mean is it's essentially identical to Vigenère. As you've stated there, it's certainly not unbreakable, and is in fact quite vulnerable. But sure, you can modify it various ways to make it secure (though if you're going to do that, it's really no simpler to use than RSA).
User avatar
Norinel
Norinel
Not Voting (3)
User avatar
User avatar
Norinel
Not Voting (3)
Not Voting (3)
Posts: 1684
Joined: March 2, 2003
Location: My computer

Post Post #31 (ISO) » Mon Jun 19, 2006 1:40 pm

Post by Norinel »

The evil me wants to run the game where everyone's first post has their RSA public key.

The good me wants to run the game set in a high-tech future where it's in the rules that all the players have the near-infinite computing power required to break anything that can be decrypted in bounded time.
User avatar
ralphmerridew
ralphmerridew
Goon
User avatar
User avatar
ralphmerridew
Goon
Goon
Posts: 229
Joined: May 7, 2002

Post Post #32 (ISO) » Fri Jun 30, 2006 10:32 am

Post by ralphmerridew »

Regarding XOR:

If you're allowed to use a random key as long as the message, it's unbreakable, but useless because the mafia can choose a key that will decrypt to any message they want.

If you use grammatically correct English text for the key, then the message can probably be broken with a moderate amount of effort.

(Once somebody XORed two sentences against each other and gave the result; I was able to work out the originals in about an hour.)

Return to “Mafia Discussion”