ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Encrypting a Python toolbox

By default, a Python toolbox (.pyt) is a plain text file that can be edited in any text editor or Python IDE. However, in some cases, it may be desirable to hide the contents of the Python toolbox.

To encrypt a Python toolbox, right-click the toolbox and click Encrypt. When entering and confirming a password, a backup copy of the original .pyt file can be retained.

Caution:

The encryption of a Python toolbox is performed in place and will overwrite the original unencrypted file. It is recommended to back up the input file to avoid the loss of its contents in case the password is forgotten.

To decrypt an encrypted Python toolbox, right-click the toolbox and click Decrypt.

Additionally, ArcPy functions EncryptPYT and DecryptPYT can also be used to encrypt or decrypt Python toolboxes.

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal