Why would you need to protect plugin?
If its private no-one else should have access to it. If you were to share it with someone you would have to give the source code and he could remove the "ip protection" part.
So only way to protect is that you don't give people access that you don't trust.
What kind of plugin are we talking about anyway? No offense but i don't think that your work needs "protecting".