Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/v/p/vps-HEAD/lib/rpc.py   vps(Download)
 
try:
    from crypter import AESCryptor, random_string
 
    class AES_RPC_Client(RPC_Client):
                    start_ts = time.time()
                    iv = random_string(self.block_size)
                    crypter_r = AESCryptor(self.key, iv, self.block_size)
                    crypter_w = AESCryptor(self.key, iv, self.block_size)
                    req = RPC_Req(func_name, args, k_args)

src/p/y/python-socket-engine-HEAD/lib/rpc.py   python-socket-engine(Download)
 
try:
    from crypter import AESCryptor, random_string
 
    class AES_RPC_Client(RPC_Client):
                    start_ts = time.time()
                    iv = random_string(self.block_size)
                    crypter_r = AESCryptor(self.key, iv, self.block_size)
                    crypter_w = AESCryptor(self.key, iv, self.block_size)
                    req = RPC_Req(func_name, args, k_args)

src/v/p/vps-HEAD/lib/rpc_server.py   vps(Download)
 
try:
    from crypter import AESCryptor
 
    class AESInteractJob(InteractJob):
                iv = buf[0:self.block_size]
                buf = buf[self.block_size:]
                crypter_r = AESCryptor(key, iv, self.block_size)
                crypter_w = AESCryptor(key, iv, self.block_size)
                req = RPC_Req.deserialize(crypter_r.decrypt(buf))

src/p/y/python-socket-engine-HEAD/lib/rpc_server.py   python-socket-engine(Download)
 
try:
    from crypter import AESCryptor
 
    class AESInteractJob(InteractJob):
                iv = buf[0:self.block_size]
                buf = buf[self.block_size:]
                crypter_r = AESCryptor(key, iv, self.block_size)
                crypter_w = AESCryptor(key, iv, self.block_size)
                req = RPC_Req.deserialize(crypter_r.decrypt(buf))