I have a program that has a database full of users (not a forum). I'd like to build something that will take this existing data and create forum accounts by creating records directly in the xf database. By doing it this way, as opposed to just having the users register as normal, I'll be able to establish a link between their forum account and the external database. This seems doable, but I'm running into an issue with correctly formatting the (plain text) password to store it in the xf database. So, basically, the process is this: Person looks up somebody in the external program They type in a username/password and click submit My script will execute to insert all the relevant information in the xf database However, password isn't properly hashed The answer for this is probably something I can dig out of the xf code (and if all else fails I could probably have them use of the lost password feature), but if anyone has a quick answer on how to hash the password, it would be much appreciated.