Page 10 of 20

Re: Mafia: Effulgent Edition

Posted: Wed Mar 25, 2015 6:46 pm
by DanielH
A one-time pad is probably not what you are doing. I’m not sure what you’re referring to, but a one-time pad is a specific way of encrypting something where it is trivial to prove it is completely impossible to decrypt without the key. For example, suppose you know in advance you’ll want to encrypt a message of no more than 100 case-insensitive letters¹. Then, in advance, you can generate the following random 100 letters:
pad
FVZGKBQIZK
NJYXHWPRVE
DXJYJGPLUQ
VKOMYUNYST
UCZOWDXLEW
DHBOAUZKIB
VXLLYCKGRN
IVNNIHDWFW
MPSMQZGNCT
PTHGGWCJLZ
Eventually, you decide to send the message “HELLOWORLD”. Using mod-26 (wraparound) arithmetic, you add this string to the key. H (the first letter of the message) + F (the first letter of the key) becomes 8 (H is the eighth letter) + 6 (F is the sixth) = 14, becomes N. Similarly, E + V becomes 5 + 22 = 27, which wraps around to 1 and becomes A. In this manner, you translate HELLOWORLD to NALSZYFALO. What you do next depends on the scheme: you can use the entire rest of the pad as-is, add a “EOM” to the end of your message, save the rest of the pad for later (and make it clear that you only sent 10 letters), or whatever else.

The point of this scheme is that, from the point of view of somebody who intercepts the message, NALSZYFALO could translate to literally any 10-character message depending on the pad. It is completely impossible to break, even in principal, because with a different key it could have been ADIOSAMIGO, or EMBEZZLEIT, or anything else of the right length. As long as you don’t use the one-time pad more than once, it’s impossible to break.

Historically, some people used their one-time pads more than once, leading to their unbreakable crypto being broken.

¹ This is a simplification, but not much of one. You can often infer spaces, punctuation, etc. from just a block of letters if you try hard enough.

Re: Mafia: Effulgent Edition

Posted: Wed Mar 25, 2015 7:40 pm
by Alphabeta
Ah, okay. I feel educated. I'm just using different private keys for different things.

Re: Mafia: Effulgent Edition

Posted: Wed Mar 25, 2015 10:26 pm
by cbhacking
Eh, you're right, when you're already got authentication there's no need for signing, just hashing. There's a million and half free sha1 generators online (http://www.md5hashgenerator.com/sha1-generator.php is a decent one in that it gives a nice-sized text box) so yeah, may as well use that. I'm used to things like chat rooms and email where spoofing somebody's identity is pretty easy.

Re: Mafia: Effulgent Edition

Posted: Sat Mar 28, 2015 12:51 am
by Lambda
shit, no sherlock

also can I just say that the godly death narration is fucking delightful. thank you.

Re: Mafia: Effulgent Edition

Posted: Sat Mar 28, 2015 12:55 am
by Alicorn
I have so much fun with the gratuitous capitals.

Re: Mafia: Effulgent Edition

Posted: Sat Mar 28, 2015 9:23 am
by DanielH
Yes, it’s great.

I also have a comment on not having a Sherlock, but that’ll wait until I’m in the regular thread and not distracted by other things happening.

Re: Mafia: Effulgent Edition

Posted: Mon Mar 30, 2015 10:36 pm
by jalapeno_dude
The narration just keeps getting better! I particularly enjoyed "EMBEDDED IN HIS AORTA FOR SOME GODDAMN REASON WHAT THE HELL DUDE HAVE YOU NOT HEARD OF THE ~CLOUD~".

Re: Mafia: Effulgent Edition

Posted: Mon Mar 30, 2015 11:01 pm
by DanielH
I have. My aorta is with me more often than an Internet connection is.

Putting a large amount of information (most of Wikipedia, most computing standards like Unicode, various textbooks on practically everything, etc) on an SD card (you cannot imagine how much you can cram into 64 GB) and carrying it around on my person is something I want to do IRL. I wouldn't embed it in my bloodstream, though, unless somebody put an SD card reader there.

Re: Mafia: Effulgent Edition

Posted: Mon Mar 30, 2015 11:06 pm
by Alicorn
Wow, lucky guess on my part. (I'm trying to make all the reveals things you obviously couldn't do while the person was alive.)

Re: Mafia: Effulgent Edition

Posted: Mon Mar 30, 2015 11:20 pm
by DanielH
I noticed that had continued to be the case after you pointed it out with the entrails (assuming that signs of Capricorn are only visible after death). Except, why couldn't people cut down saplings while somebody is still alive? Do the rings only confirm it after knowing my will?