Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

Erez Mashiah
PLUS
Erez Mashiah
Courses Plus Student 7,568 Points

database encryption and source code encryption JSON PHP MYSQL

I hope someone here will be able to exmplain to me this issue

At the moment I learn the fullstack JAVA SCRIPT track, I just learned about JSON format and how to interact it with javaScript

While i made some programming for practice, I understood that its really easy to get and read all the information inside the JSON file

I saw that there are ways to encrypt it with btoa function, which doesn`t really solve the problem, since if someone get this file he would be able to use atob function to decrypt it...

I have seen some software that can encrypt PHP database, which is cool, I didnt learn yet PHP but lets say that the database is encrypted...if someone can see the source code of the php her will be able to reverse engeneer it, and to decrypt the entire database...

I saw in youtube some softwares that can encrypt the PHP and the databases, but here are my questions:

  1. If you use these kind of softwares is it possible to make the encryption unique for your personal project? I mean lets say I have a certain code, that I put it to this software and the encryption will be created according to this code?

  2. Is there some videos or courses here on treehouse that talks about security and how to handle these issues?

if the answer if yes in what tracks can i find them?

if the answer is no, is there any chance these video toppics will be discussed in a course or workshop?

  1. How do you handle these issues and protect your databases and source code?

  2. Lets say you encrypt the PHP database using software, and then you want to upload this website to hostgator or other service, do you need to install this server on their side? and if so how it can be done?

I know its a lot of questions, I tried to find answers yesterday for a few hours, but i could find anything that give me reasonable solution...maybe I dont know what to look for since I didnt take the PHP course yet...

I hope some of you will be able to answer my questions

Thank you very much :)