Create a JSON object in PHP. Obsfucate it. Save it to the server. Then open it in Javascript and de-obsfucate it.


I have a php file that creates a JSON object then saves it to the file system.

I have a javascript program that then reads this file.

The problem is that all the data for my program is saved in a json object and therefore easily readable by anyone.

I would like the file saved on the file system to be obfuscated in some way.

This presumably will require obfuscating it in PHP and then de-obfuscating it in javascript.

The solution must work in as many browsers as possible.

Here is the basic source code.

The PHP File:

$phpData = array(
"apple" => "telephone",
"pear" => "typewriter"

file_put_contents("/myjson.json", json_encode($phpData));

The javascript file

$.getJSON( "/myjson.json", function( data ) {
...process data here;

So we just need to obfuscation and deobfuscation steps in between

The .json file is 650kb

Skills: Javascript, jQuery / Prototype, PHP

See more: json create mysql table, json create documentation, save javascript array server text file, create json file, json create file, jquery create select json, create select box json, create json file html, save open word document sql server visual basic, iphone create json request, json create div, create dropdown selectbox ajax json, javascript dragn drop save database, open source dynamic dns server, open source windows ftp server, javascript sql server 2005, open application javascript, open mysql javascript, javascript online draw save picture, open multibox javascript

About the Employer:
( 22 reviews ) Wokingham, United Kingdom

Project ID: #9843278

Awarded to:


Hi, I am Anna. I have worked with PHP, Javascript, HTML for more than 3 years. I have worked on many library such as cryptography library in Java, PHP, Javascript.... For your project, I am able to handle it as More

£90 GBP in 3 days
(7 Reviews)

23 freelancers are bidding on average £139 for this job


Hi Thanks for your valuable time. :-) Just reply with 'Yes' and We will come up with a. Detail project plan with our comments/queries. b. Best-feasible-real COST & TIMELINE We will provide you a. Best More

£250 GBP in 15 days
(566 Reviews)

Hi, Here's my id to implement obfuscation and de-obfuscation for your script. Let me know if you have any questions.

£130 GBP in 0 days
(232 Reviews)

Hi, I'll save data as encoded, not plain. When retrieving data, I'll decode data by php script and it'll be readable only by php script. Not humans. I can do this in 1 day. Thanks.

£90 GBP in 3 days
(370 Reviews)

Hi, We can discuss price and time frame for this project. I have 5+ years of experience in webdesign/ development, WordPress, OperCart, E-commerce, Mobile Development, SEO and I have done number of projects. I More

£236 GBP in 5 days
(29 Reviews)

Hello, and thanks for the opportunity to bid on your project. I am an expert in many different area’s of web and mobile applications based on the following languages: P More

£157 GBP in 3 days
(114 Reviews)

Hello, I'm ready to assist. I've been thinking to do either certain encoding or obfuscating or other ways. But, I think the best way is: $.getJSON( "/[login to view URL]", function( data ) [login to view URL] will parse the More

£200 GBP in 3 days
(178 Reviews)

Hi, I can get the file to be encrypted. So only the PHP script and javascript code can read them. Regards, Sukum

£100 GBP in 3 days
(54 Reviews)
£200 GBP in 3 days
(26 Reviews)

Hi, I read your project description and interest to know more information about your website work. I have time to start your project right now. Please don't hesitate to contact me. Thank you for consideration.

£100 GBP in 3 days
(35 Reviews)

Experienced WordPress developer here, can provide exactly what you need, can you show me the whole json object and why we are not saving it on database table, can we have a quick meeting to sort out all things? Thanks

£142 GBP in 3 days
(58 Reviews)

Hello, I would suggest using encryption instead of obfuscation (which will always be easy to reverse). I can implement AES encryption. With this solution, the JS part can ask for password (or have password/key) hardco More

£52 GBP in 1 day
(5 Reviews)

Hi, but the function that "de-obfuscates" in Javascript is readable by everyone. Right? All Javascript is readable, so you're not really hiding anything. Why isn't the page (which runs the Javascript) not doing an Ajax More

£135 GBP in 3 days
(13 Reviews)

hi my priority is to provide a quality work and i am ready to start work in this project i am a software engineer i am good and experienced web designer/developer we can discuss more in chat

£94 GBP in 3 days
(51 Reviews)

Hi. Greetings. I have been working with Angular.js, Php/Php5, CI, Laravel, Css/Css3, Html/Html5, Ajax, Javascript, Jquery, Mysql for 4+ years now. I have been working with Node.js and MongoDB for over a year. Let More

£233 GBP in 10 days
(6 Reviews)
£150 GBP in 1 day
(10 Reviews)

Dear, The requirements are clear and well understood by me as u explained well in project scope. Hope t provide it within less time than u require. I am available if you want me to start work on it. Looking f More

£66 GBP in 3 days
(50 Reviews)

Hi! If at all possible may you please share the JSON file, also - may you please let me know if using a MySQL database is possible in obfuscating the data. Regards, Ku

£90 GBP in 1 day
(17 Reviews)
£142 GBP in 3 days
(5 Reviews)

Hello, We have understood your project scope and we had done similar projects in the past. My name is Shubham and I work in the capacity of Business Development Manager and Solution Architect in Blue Whale Solutions. More

£139 GBP in 3 days
(10 Reviews)

Hi, I CAN DO IT AS I HAVE DONE SIMILAR WORK BEFORE SO I HAVE CONFIDENCE TO COMPLETE THIS JOB WITH PERFECTION. i am an certified and experienced web developer with 8 year of experience. I already have done t More

£142 GBP in 3 days
(4 Reviews)