2

I wrote a simple demo html (SSL enabled) forms to access some university services thru it. It requires the user to login with his university ID first .

My question is , how to encrypt the logins data even from me the owner of this page ? Is it possible ? so that the user can confidently use this.

1 Answer 1

2

You could use HTTP Digest Authentication which does challenge-response authentication and always sends password hashed.

The problem with Digest is that UI for it is ugly and logging out is left up to the browser (you can't have a reliable logout link).

Alternatively you could implement your own challenge-response mechanism in JavaScript, e.g. http://code.google.com/p/crypto-js/

but it's rather pointless, because the user doesn't have any guarantee that you're doing it, and that you won't replace the secure script with an insecure one in the future. As the site owner (or somebody that hacks your site) you could change the script and "steal" passwords at any time.

SSL is good. That's the best real security you can do client-side.

You can ensure that you're storing passwords securely on server-side — hash it with a slow hash such as bcrypt (not md5/sha1) and use unique salt for every password.

Sign up to request clarification or add additional context in comments.

1 Comment

As you said "but it's rather pointless, because the user doesn't have any guarantee that you're doing it,".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.