# For a Cyber project, using a module called: rsacrypt written by Al sweigart in his
# book: Cracking Codes with Python and two associated files (for public and private
# keys. Here the message to encrypt is called: message, the encrypted result is encryptedText
# and the decrypted result is called: decryptedText.
# The keys are on the files: al_sweigart_pubkey.txt  and  al_sweigart_privkey.txt

import rsacrypt
message = "hello world"
encryptedText = rsacrypt.encryptAndWriteToFile('dummy.txt', 'al_sweigart_pubkey.txt', message)
decryptedText = rsacrypt.decryptMessage1 (encryptedText, 'al_sweigart_privkey.txt')
print('encrypted message is: ', encryptedText)
print('decrypted message is: ', decryptedText)
