Cryptology! 8-19-20

We had 26 people join, with a special guest Kaylom Arias. Today we dove into to cryptology, deciphered code that was encrypted using a Caesar cipher. We used Python (coding language) to make a Ceaser cipher and encrypt it to Rot13 (More on that below). There is now a club Repl.it that you can join. I hope that everyone was able to learn something new today!

“As always, it’s a great day to be a Bulldog,”
-Mr.Capps

Here’s a couple of club members that are using Python.
#Alphabet
alpha = "abcdefghijklmnopqrstuvwxyz"

#The message you want to encrypt
message = input("Enter a message: ")

#How many values you want to shift
shift = int(input("Enter Shift number: "))

#Counts how many letters are in the message
n = len(message)
encrypted = ""
new_loc = 0

for i in range(n):
  c = message[i]
  loc = alpha.find(c)
  newloc = (loc + shift)%26
  encrypted += alpha[newloc]

print("Encrypted version: ", encrypted)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.