if there is more than 1 passwordWhich of thes passwords a particular user needs is determined by the computer, ESBN and total number of passwords in the e-book
What this means is you know at the time you (the author) know at the time that you create the e-book what the passwords are
But you don't know (until later) who needs which password.
Effectively which of the passwords a particular person needs will appear to be determined at random.
For example Alice installs the e-book on her PC. She might need password #537. When Bob installs the same e-book on his PC, he might need password #123, etc.
For ClickBank (and you may be able to adapt it for your situation) there is a tutorial here:
http://www.ebookapprentice.com/sell/cbpassword/
This tutorial was written frov version 2/3. For version 4, the only difference (although there are more options too in version 4), is chapter 2 where it says Edit Security for entering the URL - instead do Edit System Pages , Password Protected tab, My Own page.