# U4L9 Table applying terminology to the analogies using public key encryption

**URL:** <https://forum.code.org/t/u4l9-table-applying-terminology-to-the-analogies-using-public-key-encryption/32154>\
**Category:** CS Principles\
**Tags:** csp-unit-4-lesson-9\
**Created:** [January 29, 2020, 7:12pm UTC](https://forum.code.org/t/u4l9-table-applying-terminology-to-the-analogies-using-public-key-encryption/32154 "2020-01-29T19:12:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesnie.orsborn](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lesnie.orsborn](https://forum.code.org/u/lesnie.orsborn)\
**Post date:** [January 29, 2020, 7:12pm UTC](https://forum.code.org/t/u4l9-table-applying-terminology-to-the-analogies-using-public-key-encryption/32154/1 "2020-01-29T19:12:22Z")

</div>

The lesson plan for U4L9 suggests filling in a table that shows the terms around public key encryption (private key, public key, encrypted message, how to decrypt and how to crack) and how each analogy used (lockbox, cups & beans, public key crypto widget) applies. Does anyone have a key for this table? I have most of it, but I’d like to make sure I present it correctly.

Thanks,  
Lesnie

```
                       Lockbox Cups & Beans Public Key Crypto Widget

```

Private key  
Public key  
Encrypted message  
How to decrypt  
How to crack

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [January 30, 2020, 9:19pm UTC](https://forum.code.org/t/u4l9-table-applying-terminology-to-the-analogies-using-public-key-encryption/32154/4 "2020-01-30T21:19:34Z")

</div>

I don’t have a key, but if you would like to share what you have through a personal message, I could look over it and see if we agree.

---

<div class="post-metadata">

**Author:** ![frank\_w\_lee](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/frank_w_lee/32/4895_2.png) [@frank\_w\_lee](https://forum.code.org/u/frank_w_lee)\
**Post date:** [February 2, 2020, 3:38am UTC](https://forum.code.org/t/u4l9-table-applying-terminology-to-the-analogies-using-public-key-encryption/32154/5 "2020-02-02T03:38:51Z")

</div>

Hi @lesnie.orsborn,

It doesn’t look like [code.org](http://code.org) provides a key, but there’s a partial table of answers in one of the teacher documents linked in the lesson plan - titled “Public Key Bean Counting (Cups & Beans Activity)” - Teacher demonstration guide.

---

<div class="post-metadata">

**Author:** ![lesnie.orsborn](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lesnie.orsborn](https://forum.code.org/u/lesnie.orsborn)\
**Post date:** [February 3, 2020, 6:44pm UTC](https://forum.code.org/t/u4l9-table-applying-terminology-to-the-analogies-using-public-key-encryption/32154/6 "2020-02-03T18:44:52Z")

</div>

Thanks for responding. This is what I have. I think it’s (mostly) correct, but I’d appreciate any input.  
Lesnie

Lockbox

Cups & Beans

Public Key Crypto Widget

Private key

The key to your private lockbox.

Alice’s secret number of beans

Alice’s private key.

Public key

Copy of the key that you shared with others to deposit messages into your lockbox

Alice’s secret beans seal inside a cup.

(NOTE: Alice isn’t encrypting a message to send but rather producing a key that others can use to send her a message.)

Alice’s public modulo.

Encrypted message

The messages dropped into the locked dropbox

Bob adding beans to Alice’s public cup. The “encrypted” cup of beans contains Bob’s secret message and Alice’s private key.

Bob’s secret number

How to decrypt

Use your private key to open the lockbox and read the messages.

Alice figuring out how many beans Bob added to the cup by knowing how many were there originally.

Alice can figure out Bob’s private number using her private key.

How to crack

Must have a copy of the private key

Hacker trying to count how many beans are in the container.

A hacker can attempt to figure out Bob’s secret number without the private key.

---

<div class="post-metadata">

**Author:** ![lesnie.orsborn](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lesnie.orsborn](https://forum.code.org/u/lesnie.orsborn)\
**Post date:** [February 3, 2020, 6:45pm UTC](https://forum.code.org/t/u4l9-table-applying-terminology-to-the-analogies-using-public-key-encryption/32154/7 "2020-02-03T18:45:36Z")

</div>

Thanks for your response. I did see some of the answer in [code.org](http://code.org). This is what I came up with.

Lockbox

Cups & Beans

Public Key Crypto Widget

Private key

The key to your private lockbox.

Alice’s secret number of beans

Alice’s private key.

Public key

Copy of the key that you shared with others to deposit messages into your lockbox

Alice’s secret beans seal inside a cup.

(NOTE: Alice isn’t encrypting a message to send but rather producing a key that others can use to send her a message.)

Alice’s public modulo.

Encrypted message

The messages dropped into the locked dropbox

Bob adding beans to Alice’s public cup. The “encrypted” cup of beans contains Bob’s secret message and Alice’s private key.

Bob’s secret number

How to decrypt

Use your private key to open the lockbox and read the messages.

Alice figuring out how many beans Bob added to the cup by knowing how many were there originally.

Alice can figure out Bob’s private number using her private key.

How to crack

Must have a copy of the private key

Hacker trying to count how many beans are in the container.

A hacker can attempt to figure out Bob’s secret number without the private key.
