Implement convertPassword()