+ 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

12th Apr 2018, 4:28 PM
Programmer Gaurav
Programmer Gaurav - avatar
7 Réponses
+ 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
12th Apr 2018, 5:09 PM
Utkαrsh
Utkαrsh - avatar
+ 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 .
12th Apr 2018, 4:34 PM
Utkαrsh
Utkαrsh - avatar
+ 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.
12th Apr 2018, 4:47 PM
***
*** - avatar
+ 4
Ok sorry i interpreted you wrong there, my bad Utkαrsh
12th Apr 2018, 5:13 PM
***
*** - avatar
+ 2
is there is a way to hide source code
12th Apr 2018, 4:35 PM
Programmer Gaurav
Programmer Gaurav - avatar
- 4
Ctrl+a -> backspace hides your source code.
12th Apr 2018, 4:39 PM
Alex
Alex - avatar