Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Cybersecurity: Brute Force Attacks & Defenses

Cybersecurity: Brute Force Attacks & Defenses

Your Turn: Strengthen Previous Apps

Now that you know how to better encrypt communications, you can strengthen apps from previous activities against brute force attacks.

Update Share Something Personal – Encrypted

A scrambled alphabet substitution cipher can make the app from Share Something Personal – Encrypted activity much more difficult to crack with a brute force attack.  

You can even use cryptabet_autogenerate to generate a custom cryptabet.  If you just use the one that’s in the scrambled_alphabet_cipher script, your fellow students might have a very easy time cracking your cipher with a simple guess and test!

  • Change the project names of the scripts radio_send_images_caesar and radio_receive_images_caesar
    to 
    radio_send_images_scrambled and radio_receive_images_scrambled. 
  • Replace the caesar() function, and its call, with the scramble() function.  
  • The cryptabet built into the function is the key, so remove the key = statement.
  • Remember that to encrypt, use packet = scramble(packet, True), and to decrypt, use packet = scramble(packet, False).
  • After making your updates, click Save.

Update the cyber:bot Navigation Control from a Keyboard

This cipher does not need to just have upper-case alphabet letters.  You could, for example, make alpha and crypta strings that contain the characters for the keyboard-controlled cyber:bot’s dictionary.  The alpha and crypta strings might look might look like this:

alpha = "vLR{}:,'01234 56789"
crypta = "v9L:3405'R286, 7{}1"  

With nineteen characters, there are 19! = 121,645,100,408,832,000 different ways to arrange the characters in this string.  

  • Incorporate scrambled alphabet encryption into the wireless keyboard controlled cyber:bot from the Terminal Control – Go Wireless! activity. 

For an example of the steps to follow to add encryption to your data applications, try the Encrypt Your App Data activity in the Cybersecurity: Sniffing Attacks and Defenses tutorial.


Printer-friendly version
Try This: Generate a Random Cryptabet
Prev

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress