PHP Password generator Function.