CouchDB like salt and password generation with PBKDF2