This file contains hidden or 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
# These methods are all class methods. To convert to instance methods, remove the "self." portion of the method names. | |
# In order to decrypt, utilize the opposite method you used to encrypt, and pass the method the encrypted text, followed by the key. | |
# You can use these methods to determine the key used to encrypt if you have both the plain text and ciphertext. | |
# - If an additive method was used to encrypt, call the subtractive method, passing in the ciphertext, followed by the plaintext | |
# - If a subtractive method was used to encrypt, call the subtractive method, passing in the plaintext, followed by the ciphertext | |
class OneTimePad | |