Python: Introducing The MOB Encryption Tool

python Logo White

A Unique Twist on Classic Cryptography

Tkinter program

As a developer and cryptography enthusiast, my journey into the world of encryption has been nothing short of exciting. Inspired by the simplicity of the ROT13 cipher, I embarked on a creative endeavor to design my own encryption tool. Today, I’m thrilled to introduce you to “The MOB Encryption Tool”. I’ve developed this user-friendly program with Python and tkinter, which makes it easy to encrypt and decrypt messages with. Simply input your text, and the program will do the rest, quickly transforming your messages into an exciting code. It’s a great way to explore the world of cryptography and share your unique messages with others.

Why MOB Encryption?

You might be wondering, “Why choose MOB Encryption over other encryption methods?” The answer lies in its simplicity and uniqueness. While it’s not designed for robust security, it’s a creative way to share hidden messages or simply have fun with friends. Use it to protect spoilers, share secret notes, or decode messages for a touch of intrigue.

Can you Crack it?

“MOB” is still a pretty simple cipher, but it’s tougher to crack than the ROT13, especially without knowing how MOB works. I dare you to try and crack the encrypted message without looking at the Python code shown below.

Encrypted Message:

8Cgtz640Z9Zx1Gtj7xg2qSKHkl4xk640XkgjZnK29jK

It looks pretty tough to me, maybe a little too hard. To give you a chance, I’ll split it into words, to make it a little easier.

8 Cgtz 640 Z9 Zx1 Gtj 7xg2q SK Hkl4xk 640 Xkgj ZnK 29jK

Please let me know in the comment section below, if you were able to crack the code? Either way, you can let me know what you think of this encryption tool. I can’t wait to hear from you.

Python Code:

from tkinter import *

gui = Tk()
gui.title("MoB Encryption Tool")
gui.geometry("450x100")

msg_Var = StringVar()

MoBtransEn = "".maketrans('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 
                          'GH7JKLMN8PQRST9VWXYZ5BCD6Fgh2jklmn3pqrst4vwxyz0bcd1f')

MoBtransDe = "".maketrans('GH7JKLMN8PQRST9VWXYZ5BCD6Fgh2jklmn3pqrst4vwxyz0bcd1f',
                          'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')

file1 = 'EncryptedMessage.txt'
file2 = 'DecryptedMessage.txt'

def MoBEN(text):
    return text.translate(MoBtransEn)


def MoBDE(text):
    return text.translate(MoBtransDe)


def encrypt():
    msg = msg_Var.get()
    msg_Var.set("")
    print (MoBEN(msg))
    myFile=open(file1,'w')
    myFile.write(MoBEN(msg))
    myFile.close()

def decrypt():
    msg = msg_Var.get()
    msg_Var.set("")
    print (MoBDE (msg))
    myFile=open(file2,'w')
    myFile.write(MoBDE(msg))
    myFile.close()

msg_label = Label(gui, text = 'Message:', font=('calibre', 10, 'bold'))
msg_entry = Entry(gui, textvariable = msg_Var, font=('calibre', 20, 'normal'))

encrypt_button=Button(gui, text = 'Encrypt Message', command = encrypt, font = ('calibre', 10, 'bold'))
decrypt_button=Button(gui, text = 'Decrypt Message', command = decrypt, font = ('calibre', 10, 'bold'))

msg_label.grid(row=0, column=0)
msg_entry.grid(row=0, column=1)
encrypt_button.place(x=75, y=60)
decrypt_button.place(x=260, y=60)

gui.mainloop()

How “MOB Encryption” Works:

SPOILER ALERT: If you plan on decrypting the message above, stop reading until you have attempted to crack it.

“MOB Encryption” is a playful and inventive twist on classic cryptography. At its core, the cipher follows two main rules: letter rotation and vowel substitution. Here’s a breakdown of how it works:

  • Letter Rotation by 6 Places:

    • Every letter in the input text is rotated by 6 places in the alphabet. For instance, ‘A’ becomes ‘G,’ ‘B’ becomes ‘H,’ and ‘Z’ becomes ‘F.’ This letter rotation adds an element of intrigue to your messages, making them appear as a secret code.
  • Vowel Substitution with Numbers:

    • The innovation of “MOB Encryption” comes with the substitution of vowels with numbers. Vowels are known as the building blocks of words, and by replacing them, we add a layer of complexity.
    • Once the letter is rotated 6 places, if it is now a vowel, it is replaced with a number.
    • As a result, your message takes on a unique and playful appearance, with vowels transformed into numbers, making it a perfect choice for fun and creative communication.

By combining these two rules, “MOB Encryption” is a fun and engaging way to encode messages. The rotation adds a classic cipher feel, while the vowel-to-number substitution adds an extra layer of intrigue. Whether you’re sharing hidden messages, solving puzzles, or simply having fun with friends, “MOB Encryption” brings an element of surprise and creativity to the world of cryptography.

Conclusion

“MOB Encryption” is a fresh take on the classic ROT13 cipher, adding a touch of creativity to the world of cryptography. Whether you’re a beginner or an experienced enthusiast, it’s an enjoyable way to encode and decode messages. Try it out, have some fun, and see where your imagination takes you in the world of code and ciphers.

That’s All Folks!

You can explore more of our Python guides here: Python Guides

Luke Barber

Hello, fellow tech enthusiasts! I'm Luke, a passionate learner and explorer in the vast realms of technology. Welcome to my digital space where I share the insights and adventures gained from my journey into the fascinating worlds of Arduino, Python, Linux, Ethical Hacking, and beyond. Armed with qualifications including CompTIA A+, Sec+, Cisco CCNA, Unix/Linux and Bash Shell Scripting, JavaScript Application Programming, Python Programming and Ethical Hacking, I thrive in the ever-evolving landscape of coding, computers, and networks. As a tech enthusiast, I'm on a mission to simplify the complexities of technology through my blogs, offering a glimpse into the marvels of Arduino, Python, Linux, and Ethical Hacking techniques. Whether you're a fellow coder or a curious mind, I invite you to join me on this journey of continuous learning and discovery.

Leave a Reply

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

Verified by MonsterInsights