0

I have just finished the development of an application, which -apart from the online access- my client wants me to give him a backup cd for his own safety reasons.

I wouldn't mind providing such cd, but I would rather encrypt the code to protect it from unauthorized attempts of altering it, analyzing it or using it in third party applications without my knowledge.

It is important that the encrypted result will be able to operate on any server that supports php (just like the unencrypted version does now). I don't mind revealing the directory/files stucture, I just want to encrypt the php/javasctipt/html and css files content.

My speculation would be using base64 encoding for all files.

Is this a correct approach or is there any other -more reliable- suggestions?

Whatever the solution will be, the encryption must be done as a "batch job" since it is practically impossible to encrypt every single file in the project because they are too many!

Looking for local applications/solutions, since I would not like to upload my entire project to "a" website for online process.

FYI, the app is built with php/mysql/html 5, with extensive use of jquery and ajax and of course a lot of css styling. Operates on a linux centos 6.x server.

My apologies for such long question. Any help will be appreciated since I have never done anything like that before.

2
  • 3
    If it's acceptable to your client, having the disk held "in escrow" might be an alternative Commented Jun 12, 2014 at 16:20
  • At first this sounded like a good solution. After doing some small research, I noticed that the prices for such service are quite high compared to the cost of my app... However, I would like to thank you Mark for pointing it out as it could be useful in the future. Plus one from me too! @Mark Baker Commented Jun 12, 2014 at 16:41

1 Answer 1

1

It is not possible to encrypt PHP and JavaScript code in a manner that would operate on any server. There are products for PHP like http://www.zend.com/en/products/guard/ but they require stuff running on the server (and are circumventable to a determined user). JS is even harder, as it has to be sent to the user's browser for execution.

Base64 encoding would be useless - a few minutes with an experienced PHP coder and they'd figure it out.

Sign up to request clarification or add additional context in comments.

1 Comment

I was really hoping there was a way to do it... Thank you for your time to reply.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.