code: def aes_ecb_encrypt(self, key_handle, plaintext):
          
          return pyhsm.aes_ecb_cmd.YHSM_Cmd_AES_ECB_Encrypt( \
              self.stick, key_handle, plaintext).execute()
docs: AES ECB encrypt using a key handle.
  
          @warning: Please be aware of the known limitations of AES ECB mode before using it!
  
          @param key_handle: Key handle to use for AES ECB encryption
          @param plaintext: Data to encrypt
          @type key_handle: integer or string
          @type plaintext: string
  
          @returns: Ciphertext
          @rtype: string
  
          @see: L{pyhsm.aes_ecb_cmd.YHSM_Cmd_AES_ECB_Encrypt}