class_docstr: Implementation for experiment payload builder
  using public key RSA encryption.
class_docstr_tok: ["Implementation","for","experiment","payload","builder","using","public","key","RSA","encryption","."]
code: def _import_rsa_key(self, key_path: str):
      key = None
      try:
          key = RSA.import_key(open(key_path).read())
      except:
          self.logger.error(
              "FAILED to import RSA key from: {0}".format(key_path)
          )
          key = None
      return key
  
file_path: studio/studio/completion_service/encryptor.py
imports: import sys
  from Crypto.PublicKey import RSA
  from Crypto.Cipher import PKCS1_OAEP
  import nacl.secret
  import nacl.utils
  import base64
label_desc: Use image node_id 2 for calling the Encryptor obj's underlying member method code with example usage: obj._import_rsa_key(key_path) and returns: key