hey all.

I was wondering if it would been hard to make a script that would do the following:
Generate 1 random pass that only work once.
With this they can access a specific part of the site and create them self a ftp account and such.

Would this been hard to make?
Is there anything like it out there that anybody know of?