implemented one-way password encryption