From 94935fdd1ecb9f964c69fffb11b117b798bc2bf0 Mon Sep 17 00:00:00 2001 From: Pete Bell Date: Tue, 24 Dec 2024 10:50:40 +0000 Subject: [PATCH] Updates after QA --- en/meta.yml | 10 +- en/step_1.md | 10 +- en/step_2.md | 18 ++- en/step_3.md | 301 ++++++++++++++++++++++++++++++++++++++++++++++++++- en/step_4.md | 255 ++----------------------------------------- en/step_5.md | 158 ++++++++++++++++++++++++++- en/step_6.md | 173 +++++++++-------------------- en/step_7.md | 105 +----------------- en/step_8.md | 14 ++- en/step_9.md | 13 --- 10 files changed, 549 insertions(+), 508 deletions(-) delete mode 100644 en/step_9.md diff --git a/en/meta.yml b/en/meta.yml index 91fc37c..72594ba 100644 --- a/en/meta.yml +++ b/en/meta.yml @@ -19,18 +19,16 @@ last_tested: 2017-01-01 steps: - title: What you will make - title: The Caesar cipher -- title: Use a Caesar cipher - challenge: true - completion: - - engaged - title: Encrypting letters completion: - - internal + - engaged - title: Variable keys - title: Encrypting entire messages + completion: + - internal - title: Extra characters completion: - external -- title: Encrypting and decrypting messages +- title: Challenge challenge: true - title: What can you do now? diff --git a/en/step_1.md b/en/step_1.md index 8dab8c1..cc122ea 100644 --- a/en/step_1.md +++ b/en/step_1.md @@ -1,7 +1,11 @@ ## What you will make -In this project, you'll learn how to make your own encryption program, to send and receive secret messages with a friend. +Create your own encryption program, to send and receive secret messages with a friend. - +### Try it! + +Press **Run** and enter a key (number) when prompted. -If you need to print this project, please use the [Printer friendly version](https://projects.raspberrypi.org/en/projects/secret-messages/print). +Then enter a message to encrypt with your chosen key. + + diff --git a/en/step_2.md b/en/step_2.md index a777ab6..4ac5164 100644 --- a/en/step_2.md +++ b/en/step_2.md @@ -22,10 +22,24 @@ To make a secret encrypted letter from a normal one, you need to have a secret k You could use the number 3 as the key (but you can use any number you like). -To __encrypt__ the letter 'a', you just move 3 letters clockwise, which will give you the letter 'd': +--- task --- + +Choose your key. + +--- /task --- + +If you have chosen '3' as your key, you can __encrypt__ the letter 'a' by moving 3 letters clockwise, which will give you the letter 'd': + +--- task --- + +Encrypt the letter 'a' with your key. ![screenshot](images/messages-wheel-eg.png) +--- /task --- + +--- task --- + Use what you've learnt to encrypt an entire word. For example, 'hello' encrypted is 'khoor'. @@ -36,6 +50,8 @@ For example, 'hello' encrypted is 'khoor'. + l + 3 = __o__ + o + 3 = __r__ +--- /task --- + Getting text back to normal is called __decryption__. To decrypt a word, just subtract the key instead of adding it: + k - 3 = __h__ diff --git a/en/step_3.md b/en/step_3.md index d7ad794..a7f4205 100644 --- a/en/step_3.md +++ b/en/step_3.md @@ -1,5 +1,300 @@ -## Use a Caesar cipher +## Encrypting letters -Can you send a secret word to a friend? You'll both need to agree on a secret key before you start. +Write a Python program to encrypt a single character. -You could even send entire sentences to each other! +--- task --- + +Open the [Secret Messages starter project](https://editor.raspberrypi.org/en/projects/secret-messages-starter){:target="_blank"}. + +--- /task --- + +--- task --- + +Instead of drawing the alphabet in a circle, write it out as an `alphabet` variable. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 1 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +--- /code --- + +--- /task --- + +Each letter of the alphabet has a position, starting at position 0. So the letter 'a' is at position 0 of the alphabet, and 'c' is at position 2. + +--- task --- + +Output a letter from your `alphabet` variable by printing the letter at the position in square brackets. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 2-4 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +print(alphabet[0]) +print(alphabet[6]) +print(alphabet[19]) +--- /code --- + +--- /task --- + +--- task --- + +**Test:** Click the **Run** button. + +You can delete the `print` statements once you've tried this out. + +--- /task --- + +--- task --- + +Store the secret `key` in a variable. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 2 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 +--- /code --- + +--- /task --- + +--- task --- + +Ask the user for a single letter (called a `character`) to encrypt. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 4 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 + +character = input('Please enter a character: ') +--- /code --- + +--- /task --- + +--- task --- + +Find the `position` of the `character`. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 6 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 + +character = input('Please enter a character: ') + +position = alphabet.find(character) +--- /code --- + +--- /task --- + +--- task --- + +You can test the stored `position` by printing it. For example, that character 'e' is at position 4 in the alphabet. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 7 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 + +character = input('Please enter a character: ') + +position = alphabet.find(character) +print(position) +--- /code --- + +--- /task --- + +--- task --- + +**Test:** Click the **Run** button. + +You should see the position in the alphabet of the character you entered. + +--- /task --- + +--- task --- + +To encrypt the `character`, you should add the `key` to the `position`. This is then stored in a variable called `new_position`. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 9-10 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 + +character = input('Please enter a character: ') + +position = alphabet.find(character) +print(position) + +new_position = position + key +print(new_position) +--- /code --- + +--- /task --- + +--- task --- + +**Test:** Click the **Run** button. + +As your `key` is 3, it should add 3 to the `position` and store it in your `new_position` variable. + +For example, letter 'e' is at position 4. To encrypt, you add the `key` (3), giving 7. + +``` +Please enter a character: e +4 +7 +``` + +--- /task --- + +--- task --- + +What happens when you try and encrypt the letter 'y'? + +``` +Please enter a character: y +24 +27 +``` + +Notice how the `new_position` is 27, and there aren't 27 letters in the alphabet! + +--- /task --- + +--- task --- + +Use a `%` to tell the new position to go back to position 0 once it gets to position 26. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 9 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 + +character = input('Please enter a character: ') + +position = alphabet.find(character) +print(position) + +new_position = (position + key) % 26 +print(new_position) +--- /code --- + +--- /task --- + +--- task --- + +Finally, print the letter at the new position. + +For example, adding the key to the letter 'e' gives 7, and the letter at position 7 of the alphabet is 'h'. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 12-13 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 + +character = input('Please enter a character: ') + +position = alphabet.find(character) +print(position) + +new_position = (position + key) % 26 +print(new_position) + +new_character = alphabet[new_position] +print(new_character) +--- /code --- + +--- /task --- + +--- task --- + +**Test:** Click the **Run** button. + +Try out your code. + +--- /task --- + +--- task --- + +Remove some of your print statements, just printing the new character at the end. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 11 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = 3 + +character = input('Please enter a character: ') + +position = alphabet.find(character) + +new_position = (position + key) % 26 + +new_character = alphabet[new_position] +print('The new character is: ', new_character) +--- /code --- +--- /task --- + +--- task --- + +**Test:** Click the **Run** button and try out your program! + +--- /task --- \ No newline at end of file diff --git a/en/step_4.md b/en/step_4.md index 729c9e5..e599da9 100644 --- a/en/step_4.md +++ b/en/step_4.md @@ -1,224 +1,10 @@ -## Encrypting letters - -Write a Python program to encrypt a single character. - ---- task --- - -Open the [Secret Messages starter project](https://editor.raspberrypi.org/en/projects/secret-messages-starter){:target="_blank"}. - ---- /task --- - ---- task --- - -Instead of drawing the alphabet in a circle, write it out as an `alphabet` variable. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 1 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' ---- /code --- - ---- /task --- - -Each letter of the alphabet has a position, starting at position 0. So the letter 'a' is at position 0 of the alphabet, and 'c' is at position 2. - ---- task --- - -Output a letter from your `alphabet` variable by printing the letter at the position in square brackets. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 2-4 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -print(alphabet[0]) -print(alphabet[6]) -print(alphabet[19]) ---- /code --- - -You can delete the `print` statements once you've tried this out. - ---- /task --- - ---- task --- - -Next, you'll need to store the secret `key` in a variable. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 2 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 ---- /code --- - ---- /task --- - ---- task --- - -Next, ask the user for a single letter (called a `character`) to encrypt. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 4 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 - -character = input('Please enter a character: ') ---- /code --- - ---- /task --- - ---- task --- - -Find the `position` of the `character`. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 6 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 - -character = input('Please enter a character: ') - -position = alphabet.find(character) ---- /code --- - ---- /task --- - ---- task --- - -You can test the stored `position` by printing it. For example, that character 'e' is at position 4 in the alphabet. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 7 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 - -character = input('Please enter a character: ') - -position = alphabet.find(character) -print(position) ---- /code --- - ---- /task --- - ---- task --- - -To encrypt the `character`, you should add the `key` to the `position`. This is then stored in a `new_position` variable. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 9-10 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 - -character = input('Please enter a character: ') - -position = alphabet.find(character) -print(position) - -new_position = position + key -print(new_position) ---- /code --- - ---- /task --- - ---- task --- - -**Test:** Click the **Run** button. - -As your `key` is 3, it should add 3 to the `position` and store it in your `new_position` variable. - -For example, letter 'e' is at position 4. To encrypt, you add the `key` (3), giving 7. - -``` -Please enter a character: e -4 -7 -``` - ---- /task --- - ---- task --- - -What happens when you try and encrypt the letter 'y'? - -``` -Please enter a character: y -24 -27 -``` - -Notice how the `new_position` is 27, and there aren't 27 letters in the alphabet! - ---- /task --- - ---- task --- - -Use a `%` to tell the new position to go back to position 0 once it gets to position 26. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 9 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 - -character = input('Please enter a character: ') - -position = alphabet.find(character) -print(position) - -new_position = (position + key) % 26 -print(new_position) ---- /code --- - ---- /task --- +## Variable keys --- task --- -Finally, print the letter at the new position. +Modify your program, so that the user can enter their own key to use. -For example, adding the key to the letter 'e' gives 7, and the letter at position 7 of the alphabet is 'h'. +You'll need to get the user's input, and store it in the `key` variable. --- code --- --- @@ -226,39 +12,11 @@ language: python filename: main.py line_numbers: true line_number_start: 1 -line_highlights: 12-13 +line_highlights: 2-3 --- alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 - -character = input('Please enter a character: ') - -position = alphabet.find(character) -print(position) - -new_position = (position + key) % 26 -print(new_position) - -new_character = alphabet[new_position] -print(new_character) ---- /code --- - ---- /task --- - ---- task --- - -Try out your code. You can also remove some of your print statements, just printing the new character at the end. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 11 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = 3 +key = input('Please enter the key: ') +key = int(key) character = input('Please enter a character: ') @@ -269,4 +27,5 @@ new_position = (position + key) % 26 new_character = alphabet[new_position] print('The new character is: ', new_character) --- /code --- + --- /task --- diff --git a/en/step_5.md b/en/step_5.md index 8afd980..04d8195 100644 --- a/en/step_5.md +++ b/en/step_5.md @@ -1,8 +1,10 @@ -## Variable keys +## Encrypting entire messages -Modify your program, so that the user can enter their own key to use. +Instead of just encrypting and decrypting messages one character at a time, let's change the program to encrypt entire messages! -You'll need to get the user's input, and store it in the `key` variable. +--- task --- + +Change your code to store the user's message and not just one character. --- code --- --- @@ -10,13 +12,13 @@ language: python filename: main.py line_numbers: true line_number_start: 1 -line_highlights: 2-3 +line_highlights: 5 --- alphabet = 'abcdefghijklmnopqrstuvwxyz' key = input('Please enter the key: ') key = int(key) -character = input('Please enter a character: ') +message = input('Please enter a message: ') position = alphabet.find(character) @@ -26,4 +28,148 @@ new_character = alphabet[new_position] print('The new character is: ', new_character) --- /code --- -You can then use a negative key to decrypt messages! +--- /task --- + +--- task --- + +Add a `for` loop to your code, and indent the rest of the code so that it is repeated for each character in the message. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 7 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = input('Please enter the key: ') +key = int(key) + +message = input('Please enter a message: ') + +for character in message: + position = alphabet.find(character) + + new_position = (position + key) % 26 + + new_character = alphabet[new_position] + print('The new character is: ', new_character) +--- /code --- + +--- /task --- + +--- task --- + +**Test:** Click the **Run** button. + +Test your code. + +You should see that each character in the message is encrypted and printed one at a time. + +``` +Please enter a message: hello +The new character is: k +The new character is: h +The new character is: o +The new character is: o +The new character is: r +``` + +--- /task --- + +--- task --- + +Create a variable to store the new encrypted message. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 4 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = input('Please enter the key: ') +key = int(key) +new_message = '' + +message = input('Please enter a message: ') + +for character in message: + position = alphabet.find(character) + + new_position = (position + key) % 26 + + new_character = alphabet[new_position] + print('The new character is: ', new_character) +--- /code --- + +--- /task --- + +--- task --- + +Add each encrypted character to your `new_message` variable. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 15-16 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = input('Please enter the key: ') +key = int(key) +new_message = '' + +message = input('Please enter a message: ') + +for character in message: + position = alphabet.find(character) + + new_position = (position + key) % 26 + + new_character = alphabet[new_position] + print('The new character is: ', new_character) + new_message += new_character + print(new_message) +--- /code --- + +--- /task --- + +--- task --- + +Delete the indentation before the `print` statement so the encrypted message will only be displayed once at the end. + +You can also delete the other print statement that prints the characters. + +--- code --- +--- +language: python +filename: main.py +line_numbers: true +line_number_start: 1 +line_highlights: 14, 16 +--- +alphabet = 'abcdefghijklmnopqrstuvwxyz' +key = input('Please enter the key: ') +key = int(key) +new_message = '' + +message = input('Please enter a message: ') + +for character in message: + position = alphabet.find(character) + + new_position = (position + key) % 26 + + new_character = alphabet[new_position] + + new_message += new_character +print(new_message) +--- /code --- + +--- /task --- diff --git a/en/step_6.md b/en/step_6.md index 140c2d9..0ead389 100644 --- a/en/step_6.md +++ b/en/step_6.md @@ -1,174 +1,101 @@ -## Encrypting entire messages +## Extra characters -Instead of just encrypting and decrypting messages one character at a time, let's change the program to encrypt entire messages! +Some characters are not in the alphabet, which causes an error. --- task --- -Create a variable to store the new encrypted message. +Test out your code with some characters that are not in the alphabet. ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 4 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = input('Please enter the key: ') -key = int(key) -new_message = '' - -character = input('Please enter a character: ') - -position = alphabet.find(character) - -new_position = (position + key) % 26 - -new_character = alphabet[new_position] -print('The new character is: ', new_character) ---- /code --- - ---- /task --- - ---- task --- - -Change your code to store the user's message and not just one character. +For example, you could use the message `hi there!!`. ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 6 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = input('Please enter the key: ') -key = int(key) -new_message = '' - -message = input('Please enter a message: ') - -position = alphabet.find(character) - -new_position = (position + key) % 26 +``` +Please enter a message: hi there!! +klcwkhuhcc +``` -new_character = alphabet[new_position] -print('The new character is: ', new_character) ---- /code --- +Notice that the space and the `!` characters are all encrypted as the letter 'c'! --- /task --- --- task --- -Add a `for` loop to your code, and indent the rest of the code so that it is repeated for each character in the message. +To fix this, only translate a character if it's in the alphabet. To do this, add an `if` statement to your code, and indent the rest of your code. --- code --- --- language: python filename: main.py line_numbers: true -line_number_start: 1 -line_highlights: 8 +line_number_start: 8 +line_highlights: 9 --- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = input('Please enter the key: ') -key = int(key) -new_message = '' - -message = input('Please enter a message: ') - for character in message: - position = alphabet.find(character) - - new_position = (position + key) % 26 - - new_character = alphabet[new_position] - print('The new character is: ', new_character) + if character in alphabet: + position = alphabet.find(character) + + new_position = (position + key) % 26 + + new_character = alphabet[new_position] + + new_message += new_character +print(new_message) --- /code --- --- /task --- --- task --- -Test your code. You should see that each character in the message is encrypted and printed one at a time. +**Test:** Click the **Run** button and test with the same message. + +What happens this time? ``` -Please enter a message: hello -The new character is: k -The new character is: h -The new character is: o -The new character is: o -The new character is: r +Please enter a message: hi there!! +klwkhuh ``` ---- /task --- - ---- task --- - -Let's add each encrypted character to your `new_message` variable. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 1 -line_highlights: 15-16 ---- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = input('Please enter the key: ') -key = int(key) -new_message = '' - -message = input('Please enter a message: ') - -for character in message: - position = alphabet.find(character) - - new_position = (position + key) % 26 - - new_character = alphabet[new_position] - print('The new character is: ', new_character) - new_message += new_character - print(new_message) ---- /code --- +Your code just skips any character if it is not in the alphabet. --- /task --- +It would be better if your code just used the original character for anything not in the alphabet. + --- task --- -If you delete the indentation before the `print` statement, the encrypted message will only be displayed once at the end. You can also delete the code for printing the characters +Add an `else` statement to your code, which just adds the original character to the encrypted message. --- code --- --- language: python filename: main.py line_numbers: true -line_number_start: 1 -line_highlights: 14, 16 +line_number_start: 8 +line_highlights: 17-18 --- -alphabet = 'abcdefghijklmnopqrstuvwxyz' -key = input('Please enter the key: ') -key = int(key) -new_message = '' - -message = input('Please enter a message: ') - for character in message: - position = alphabet.find(character) - - new_position = (position + key) % 26 - - new_character = alphabet[new_position] - - new_message += new_character + if character in alphabet: + position = alphabet.find(character) + + new_position = (position + key) % 26 + + new_character = alphabet[new_position] + + new_message += new_character + else: + new_message += character print(new_message) --- /code --- --- /task --- +--- task --- +**Test:** Click the **Run** button. +You should see that any character in the alphabet is encrypted, but any other characters are left alone! +``` +Please enter a message: hi there!! +kl wkhuh!! +``` +--- /task --- diff --git a/en/step_7.md b/en/step_7.md index 8698660..4b3e3ee 100644 --- a/en/step_7.md +++ b/en/step_7.md @@ -1,104 +1,5 @@ -## Extra characters - -Some characters are not in the alphabet, which causes an error. - ---- task --- - -Test out your code with some characters that are not in the alphabet. - -For example, you could use the message `hi there!!`. - -``` -Please enter a message: hi there!! -klcwkhuhcc -``` - -Notice that the space and the `!` characters are all encrypted as the letter 'c'! - ---- /task --- - ---- task --- - -To fix this, only translate a character if it's in the alphabet. To do this, add an `if` statement to your code, and indent the rest of your code. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 8 -line_highlights: 9 ---- -for character in message: - if character in alphabet: - position = alphabet.find(character) - - new_position = (position + key) % 26 - - new_character = alphabet[new_position] - - new_message += new_character -print(new_message) ---- /code --- - ---- /task --- - ---- task --- - -**Test:** Click the **Run** button and test with the same message. - -What happens this time? - -``` -Please enter a message: hi there!! -klwkhuh -``` - -Your code just skips any character if it is not in the alphabet. - ---- /task --- - -It would be better if your code just used the original character for anything not in the alphabet. - ---- task --- - -Add an `else` statement to your code, which just adds the original character to the encrypted message. - ---- code --- ---- -language: python -filename: main.py -line_numbers: true -line_number_start: 8 -line_highlights: 17-18 ---- -for character in message: - if character in alphabet: - position = alphabet.find(character) - - new_position = (position + key) % 26 - - new_character = alphabet[new_position] - - new_message += new_character - else: - new_message += character -print(new_message) ---- /code --- - ---- /task --- - ---- task --- - -**Test:** Click the **Run** button. - -You should see that any character in the alphabet is encrypted, but any other characters are left alone! - -``` -Please enter a message: hi there!! -kl wkhuh!! -``` ---- /task --- - +## Challenge +Encrypt some messages, and give them to a friend along with the secret key. See if they can decrypt them using their program! +You could also duplicate the project and create a separate program for decrypting messages. diff --git a/en/step_8.md b/en/step_8.md index 2b67b50..e4f11cf 100644 --- a/en/step_8.md +++ b/en/step_8.md @@ -1,5 +1,13 @@ -## Encrypting and decrypting messages +## What can you do now? -Encrypt some messages, and give them to a friend along with the secret key. See if they can decrypt them using their program! +Try our [Password generator](https://projects.raspberrypi.org/en/projects/password-generator/){:target="_blank"} project where you will create a program to generate random passwords for you, so no one will be able to guess them! -You could also duplicate the project and create a separate program for decrypting messages. +--- no-print --- + +Click **Run** to try it out! + + + +--- /no-print --- + +If you want to have more fun exploring Python, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=python){:target="_blank"}. \ No newline at end of file diff --git a/en/step_9.md b/en/step_9.md deleted file mode 100644 index e4f11cf..0000000 --- a/en/step_9.md +++ /dev/null @@ -1,13 +0,0 @@ -## What can you do now? - -Try our [Password generator](https://projects.raspberrypi.org/en/projects/password-generator/){:target="_blank"} project where you will create a program to generate random passwords for you, so no one will be able to guess them! - ---- no-print --- - -Click **Run** to try it out! - - - ---- /no-print --- - -If you want to have more fun exploring Python, then you could try out any of [these projects](https://projects.raspberrypi.org/en/projects?software%5B%5D=python){:target="_blank"}. \ No newline at end of file