code: def encrypt(self, message):
          
  
          if not isinstance(message, (bytes, str)):
              raise TypeError
          
          return hashlib.sha1(message.encode('utf-8')).hexdigest()
docs: Encrypt the given message