I need to encrypt a developed Python toolbox using EncryptPYT as follows:
import arcpy
toolbox = 'd:/tools/analysis.pyt'
password = '<your password>'
arcpy.EncryptPYT(toolbox, password)
I used ArcGIS python window, but it did not recognize "EncryptPYT". My ArcGIS version is 10.4.1