How to encrypt HTML codes ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to encrypt HTML codes ?

nobody could change and read anything

18th Apr 2018, 9:58 PM
Ravi
Ravi - avatar
2 Answers
+ 2
You can't do it. If you want to encrypt your data you can use PHP, JS, etc. Btw, the markup of your page will always be visible, but it doesn't mean that the source code can be edited.
19th Apr 2018, 2:09 AM
Mickel
Mickel - avatar
+ 2
You cannot encript the html code itself. It will always be visible once a site is online, since browsers need the bare code for interpreting. If you need code like user data management, password hash etc. then use php, as that is server side code invisible for users.
18th Apr 2018, 10:42 PM
DaEistee