This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
Simple example of encrypting, sending and decrypting a message using RSA. | |
Also included is how a third party without permission, would need | |
to use a very time consuming (brute force) approach to decrypt | |
the message. This is done by finding the two prime numbers that make up | |
part of the public key so that you can read the encrypted message. |