I would like to make a function similar to the built-in functions for strings in python.
For example: foo.upper()
I would not like to have to make an object to do this, just change the string with a simple function within a class.
Here is what the code would be similar to
class autokey():
def encrypt(self, string, key):
# * Code to encrypt message *
return encrypted_message
string = "test"
print(string.autokey.encrypt())