encoding and decoding files

Hi,
I want to know if there is any class or function in Panda to encode and decode egg files or bam files at runtime. I have seen the pencrypt.exe and pdecrypt.exe. Can I call them using the script while game is running.

My question is, I want to decode a bam or egg file and load it while the game is running.

My another question is, Is there any class for taking screenshots of the game while it is running.

Is there a way to encode/decode the files using Python script?

I assume you mean encrypting and decrypting. Check out these threads, which I found by doing a forum search on “encryption”.
https://discourse.panda3d.org/viewtopic.php?t=1370
https://discourse.panda3d.org/viewtopic.php?t=1205
https://discourse.panda3d.org/viewtopic.php?t=1120

For saving a screenshot, use base.saveScreenshot(), which you could have also found out by doing a forum search on “screenshot”.

David