Password funcs for old php