I tried teaching ChatGPT how to communicate securely over a secure channel with a screenplay prompt... with some hilarious results. I tried to teach it a simple substitution cipher, which it kind of grokked, but managed to screw up -- not to mention totally blabbing the "secret message" over their insecure line, with a frustrated EVE listening yet unable to decipher their oh-so-secret message.<p>The result was rather amusing so I'll just include it below:
---<p>INT. ALICE'S APARTMENT - DAY<p>Alice sits at her desk, typing on her computer. Bob is on the other end of a video call.<p>BOB: Hey Alice, did you get my message?<p>ALICE: I did. But I'm not sure how to respond.<p>BOB: Why? What's the problem?<p>ALICE: Eve is here. She's been listening to our conversation.<p>BOB: (concerned) Oh no, we need to be careful. Is there any way we can communicate the message without her overhearing it?<p>ALICE: (smirks) Actually, there is. We can use a substitution cipher to encode our message.<p>CUT TO:<p>INT. EVE'S APARTMENT - DAY<p>Eve sits at her desk, listening in on Alice and Bob's conversation. She has a smug look on her face, confident that she's one step ahead.<p>ALICE: (on the phone) Bob, do you remember the substitution cipher we used to use when we were kids?<p>BOB: (on the phone) Of course. The one where we would replace each letter of the alphabet with a number, starting with A=1, B=2, C=3 and so on?<p>ALICE: (on the phone) That's the one. Let's use it now to encode our secret message.<p>BOB: (on the phone) I see what you're doing. Clever. Alright, I'll go first. The first word of the secret message is "the", so my numbers will be "20 8 5".<p>ALICE: (on the phone) And the next word is "redcoats", so my numbers will be "18 5 4 3 6 15 20 1 19".<p>BOB: (on the phone) And the next word is "attack", so my numbers will be "1 20 20 1 3 11".<p>ALICE: (on the phone) And the last word is "at dawn", so my numbers will be "1 20 4 16 1 14".<p>EVE: (frustrated) What are they talking about? I can't make sense of this.<p>CUT TO:<p>INT. ALICE'S APARTMENT - DAY<p>Alice and Bob continue their conversation, unaware that Eve is struggling to keep up.<p>ALICE: (on the phone) Do you have the encoded message?<p>BOB: (on the phone) I do. It's "20 8 5 18 5 4 3 6 15 20 1 19 1 20 20 1 3 11 1 20 4 16 1 14".<p>ALICE: (on the phone) That's correct. Now we just need to decode it using the substitution cipher.<p>BOB: (on the phone) Right. We know that "1" stands for "A", "2" stands for "B", and so on. So the first three numbers, "20 8 5", represent the letters "T H E".<p>ALICE: (on the phone) And the next eight numbers, "18 5 4 3 6 15 20 1 19", represent the letters "R E D C O A T S".<p>BOB: (on the phone) And the next six numbers, "1 20 20 1 3 11", represent the letters "A T T A C K".<p>ALICE: (on the phone) And the last six numbers, "1 20 4 16 1 14", represent the letters "A T D A W N".<p>Eve is still listening in on Alice and Bob's conversation, growing increasingly frustrated.<p>ALICE: (on the phone) So the secret message is "the redcoats attack at dawn".<p>BOB: (on the phone) Exactly. We were able to encode and decode the message using the substitution cipher, without Eve being able to overhear it.<p>EVE: (angrily) What the hell are they talking about?<p>CUT TO:<p>INT. ALICE'S APARTMENT - DAY<p>Alice and Bob share a triumphant look, knowing that they've successfully communicated the secret message without Eve being able to decipher it.<p>ALICE: (on the phone) Got it. The secret message is "the redcoats attack at dawn".<p>BOB: (on the phone) Good job, Alice. We were able to communicate securely, even with Eve listening in.<p>ALICE: (on the phone) It just goes to show that with a little creativity, we can outsmart even the most determined eavesdropper.<p>BOB: (on the phone) Agreed. Let's make sure to use this technique in the future to keep our communication secure.<p>CUT TO:<p>INT. EVE'S APARTMENT - DAY<p>Eve sits at her desk, fuming with anger and frustration.<p>EVE: (to herself) Damn it. I need to find a way to break their code.<p>FADE TO BLACK.