Question:
Set password via Javascript?
anonymous
2008-10-26 01:17:46 UTC
I want to set a password via a JS function

func(para1,para2)

So, there are 2 parameters...
Now, the only issue is that even though I have the function ready with the i/p , o/p values

I want this to be kind of hidden i.e. at least one parameter to the function should not be viewable if the user does a View Source..

The para1 value can also be remote fixed value, but should be hidden to the user in some way.

Thank you.

accep
Three answers:
Tizio 008
2008-10-26 02:12:23 UTC
simply you can't.

javascritp is a client side scripting, meaning a user can always see the code (see what it does and even try to "change" it, ...).

you can obfuscate the code (be aware of the fact the they exist free and non-free already made obfuscators, but some of these uses non standard technology so that your obfuscated code could not work with all browsers)



using a password mechanism programmed in javascript is a *very* *bad* idea: too weak for the purpose. the secure way is to use http accesses, or u need a server side script (like php)
?
2016-12-04 06:26:09 UTC
i dnt knw a thank you to try this throughout excel yet no count if u can write a code which will learn for passwords and usernames from yet another checklist and then grant the comparable database password what i advise is create a separate checklist to maintain greater advantageous individual names and passwords enable this technique learn the passwords and username there and if ok it is going to feed the worksheet password each and each and each and all the final
Cazpa
2008-10-26 05:19:28 UTC
I agree with the guy above, use php and mysql and you will have better security as it is server side (hidden)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...