I have stumbled across a unique way of confirming passwords on web forms written by a guy who goes by the name of mattt.

What this does is, as you are typing your password in the field, it converts the hash of the password into 3 coloured bars, which can uniquely identify the string which you have entered, without giving away what the password actually is.

The usefulness of this is when you need to confirm your password, if your password is particularly complex, you may not always type it in correctly the second time. Using the Chroma-Hash, gives a visual indication that the two passwords entered are the same.

You can find a demo of the Chroma-Hash here.