def decrypt(ciphertext, keyPath):
    with open(keyPath) as f:
        key = f.read()
    if len(key) != SecretBox.KEY_SIZE:
        raise ValueError("Key is %d bytes, but must be exactly %d bytes" % (len(key),
                                                                            SecretBox.KEY_SIZE))
    sb = SecretBox(key)
    # The nonce is kept with the message.
    return sb.decrypt(ciphertext)
Connects to the server and issues a request.
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/lib/encryption/_nacl.py/decrypt--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/quantum/client.py/Client.do_request