MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

ciphers/permutation_cipher.py:124–136  ·  view source on GitHub ↗

Driver function to pass message to get encrypted, then decrypted. Example: >>> main() Decrypted message: HELLO WORLD

()

Source from the content-addressed store, hash-verified

122
123
124def main() -> None:
125 """
126 Driver function to pass message to get encrypted, then decrypted.
127
128 Example:
129 >>> main()
130 Decrypted message: HELLO WORLD
131 """
132 message = "HELLO WORLD"
133 encrypted_message, key = encrypt(message)
134
135 decrypted_message = decrypt(encrypted_message, key)
136 print(f"Decrypted message: {decrypted_message}")
137
138
139if __name__ == "__main__":

Callers 1

Calls 2

encryptFunction · 0.70
decryptFunction · 0.70

Tested by

no test coverage detected