If so, how? For example, if I take one of the many ESRI .py examples, save it my drive, run it, save it.....is there an ESRI library for digitally signing it?
Just curious, Why do you want to sign the scripts?
"Asking for a friend".....
Same reason I would want to know https://community.esri.com/thread/240037-is-it-possible-to-remove-python-from-arcmap
A Google Search suggests this is a pretty common thing, but leaves out the key detail of how to actually sign the PY file, and use it in idle.