How to encrypt .PAK or package file?

Sorry, for highjacking this thread, but could you write a step by step guide on how to encrypt .PAK file.

Thank you.