# Cryptography Machine in Processing

961

13

1

## Introduction: Cryptography Machine in Processing

This project originated by I saw a video on youtube about encrypting Ticker tape in the old days and that they used XOR to encrypt with. It sounded exciting and an interesting project to mess with the evening.
I decided to make it in Processing, because I could be a little Java programming and because I had been toying with ControlP5 library, but would like to continue working with it.

I'm not a software programmer. I just visually it's fun to mess around with.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 2: Encryption Metode

The encryption is made by using XOR.

I have made an example below, that shows how is works.

01001000 = 72 = H - "Letter to be encrypted"

00011001 = 25 - "Number to encrypt with"

----------------------------------------------------------

01010001 = 81 = Q - "The encrypted letter"

## Step 3: Result

The result is a program, that can encrypt and decrypt short messages.

It's important to keep in mind that this is not a strong encryption. Capital Letters is also capital letters, when encrypted (if encrypted number is low). If encryption number is a high number, such as 254, the letters will all be squares.

The code is described in the program file.

Hope people will find this program interesting and built further on it.

I would like to thanks the forums of Stackoverflow and Processing for helping me.

Screenshots and code included.

## Recommendations

1 138
6 800
3 982
Router Table Class

208 Enrolled