I would like to encrypt custom code (drupal module) that makes the site unique. In other words, I would like encrypt entire module..

eg: sites/all/modules/mymodule

I would like entire content under mymodule non-readable format on server.

As I host my website on shared hosting, I just want to rule out possibility some one with server access getting access to my custom code.

[As this doesn't seem to be about paid services, moved to post installation]

Comments

That's not actually possible.

That's not actually possible. If the server can't read the code, it can't run it, and the module won't work.

Either you're being paranoid (most likely), and using a reputable host is a good enough option, or you aren't being paranoid, and you are insane to be putting something valuable that people are trying to steal on shared hosting.

I can't help but wonder what makes your code so amazingly worth stealing, yet doesn't provide the revenue needed to get real, non-shared hosting. Even if you just go VPS it's only about $20/month at a good host.

Need answers? Try Drupal Answers.

zend guard is what you are looking for...

http://www.drupalfx.com
An unreasonable commitment to your success.

If you have to ask this

If you have to ask this question, I can promise you that your code is not worth stealing.

encrypting your code.

Dude,

I used to do contracting for the U.S. government and GSA requirements mandate encrypting code for security purposes. Drupal6 is no different! I will be happy to answer any questions you have, free of charge. Don't let the bastards get you down! Skype me at skype ID: senseieric. Good luck