JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Cry | JustPaste.app
28 days ago5 views
👨‍💻Programming

Cry

# To Implement Mono Cipher using a Key

alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
key = "QWERTYUIOPASDFGHJKLZXCVBNM"

plain = input("Enter Plain Text: ").upper()
cipher = ""

for ch in plain:
    if ch in alphabet:
        cipher += key[alphabet.index(ch)]
    else:
        cipher += ch

print("Encrypted:", cipher)

decrypt = ""

for ch in cipher:
    if ch in key:
        decrypt += alphabet[key.index(ch)]
    else:
        decrypt += ch

print("Decrypt:", decrypt)
← Back to timeline