
This project Is Encrypter/Decoder. The user can choose wether he wants to encrypt a 4 bit code or decrypt it with a 4 bit key. The key determines internal changes to the 4 bit code. the output creates a en/de-cryptet code.
Choose a 4 bit code; choose a 4 bit key and put it in the EnDecoder with '0' on the mode_i input; when getting a high pulse on the done_o output there should be a 4 bit code on the code_o output. If this output is put in the input with '1' at mode_i the output should be the original input try with different keys and input codes.
No external hardware needed
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | code_i[0] | output[0] | mode_i |
| 1 | code_i[1] | output[1] | done_i |
| 2 | code_i[2] | output[2] | |
| 3 | code_i[3] | output[3] | |
| 4 | key_i[3] | done_o | |
| 5 | key_i[2] | ||
| 6 | key_i[1] | ||
| 7 | key_i[0] |