I seem to have been not very clear in my question, sorry. I wish to have two passwords, one to authenticate with the server, another to encrypt data. I don't want to send the second one to the server, and I don't want the user to have to enter two passwords, just one. "secure key derivation algorithm" is good google-fodder. Thanks =) —
Jens 47 secs ago