Exemplo n.º 1
0
 def handle(self):
     result = self.translate(self.request.input.system1, self.request.input.key1, self.request.input.value1, 
         self.request.input.system2, self.request.input.key2)
     
     if result:
         self.response.payload.value2 = result.decode('utf-8')
         self.response.payload.repr = repr(result)
         self.response.payload.hex = hexlify(result)
         self.response.payload.sha1 = sha1(result).hexdigest()
         self.response.payload.sha256 = sha256(result).hexdigest()
Exemplo n.º 2
0
 def handle(self):
     result = self.translate(self.request.input.system1, self.request.input.key1, self.request.input.value1, 
         self.request.input.system2, self.request.input.key2)
     
     if result:
         self.response.payload.value2 = result.decode('utf-8')
         self.response.payload.repr = repr(result)
         self.response.payload.hex = hexlify(result)
         self.response.payload.sha1 = sha1(result).hexdigest()
         self.response.payload.sha256 = sha256(result).hexdigest()