Question:
I’m implementing this code to a webpage, but is there any way I can hide it from the prying eyes of the file page?
Repl link:
I would rather not share.
code snippet
```var password="Password";
var username="Username";
var guess;
var userguess=prompt('Enter Username','');
guess=prompt('Enter Password','');
if(password==guess)
alert('Entrance Granted');
else
{
window.location="http;//www.google.com";
}
make an environmental variable 
Well if you are taking input using HTML you can set the input as a password, automatically making it like this.
(I don’t know JS, sorry)
Unfortunately, It’s not node.js, and I’m not that skilled in js.
1 Like
Nice idea, but I’m trying to hide the password from being able to be seen by looking in the files.
Um go to the secrets tab and search google for how to access environmental vars 
Yeah… there is no secrets tab in a HTML, CSS, and JS template…
1 Like
oh ok… I don’t use HTML/JS repls XD
Anything you want to be hidden needs to be stored server-side, @bigminiboss secrets wouldn’t work, even if you could use them in HTML, CSS & JS Repls, because you could just use developer tools in your browser.
2 Likes
Same thing happens to me too! I just encode it to binary code and decode it and obfuscate the js code hoping no js developers find out. xD
Lol, me starts looking into ur code 
um, i defiantly didnt do that in koolchat for a profane filter
lol, bro why would you do that?
ah, i didnt know about npmjs that time, plus, my friend helped me with it
npmjs has the modules for node
3 Likes
ya but you call it npm. Should this be a debate?
1 Like
i dunno probaly not (i dont think i spelled that right)
use repl auth. If this is for the private website you discussed earlier, you’d have to do this on a node.js repl(or any other webserver but that would be probably be easier for you) and only send the private info if the auth username is correct
1 Like