Quote Originally Posted by twistedmike
how do i do a 1-way hash?
You can use one from a cryptographic library, or implement a published one yourself (do not invent your own). You should also include a salt along with each password to frustrate dictionary attacks.