+ 2
How to hide password code?
so that the hacker can't hack this by viewing source code https://code.sololearn.com/WgEF9xXZPj1Z/?ref=app
7 odpowiedzi
+ 6
Boem Shakalaka I know that JavaScript can be used for database works thats why I wrote - "Php and other languages"
Charan Leo 🅜🅞🅓
Yes ! Encryption is required , but thats not the point he just wanted to know how other websites prevent people from lookng into source code and finding the password
+ 5
Passwords aren't explicitly written in JavaScript , they are stored in a database and accessed through Php or other languages , which is not visible like JavaScript or Html .
+ 5
Utkαrsh i disagree with you since there are JavaScript frameworks out there that can retrieve from a database, like NodeJS. (And JavaScript is Turing Complete)
I agree with Charan Leo 🅜🅞🅓 you should use encryption methods and Google on how to store and check passwords in a safe way (hashing, salts et cetera). But in the end anything could be possible to hack.
+ 4
Ok sorry i interpreted you wrong there, my bad Utkαrsh
+ 2
is there is a way to hide source code
- 4
Ctrl+a -> backspace hides your source code.