def encrypt(self, plaintext, K):
        wasString=0
        if isinstance(plaintext, types.StringType):
            plaintext=bytes_to_long(plaintext) ; wasString=1
        if isinstance(K, types.StringType):
            K=bytes_to_long(K)
        ciphertext=self._encrypt(plaintext, K)
        if wasString: return tuple(map(long_to_bytes, ciphertext))
        else: return ciphertext
encrypt(plaintext:string|long, K:string|long) : tuple
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/Crypto/PublicKey/pubkey.py/pubkey.encrypt