Except the security.js, this example requiers
simple member.js file that defines Member
object, and operations to print it out.
The address book is an array of members. The code is in a string, so it can
be encrypted, then decrypted and evaluated with the JS eval
function.
This can be seen in administrate.html file. That page
will encrypt the address book code and print it out in new window.
The encrypted code is copied and pasted into the addrbook.html file which is published on the Web. (administrate.html is, naturally, secret, as it has the plain text.) When password is entered, addrbook.html will decrypt pasted code, and evaluate it, thus obtaining the address book. The book is then printed out in the new window.
The addrbook.html has already encrypted code pasted into it, so you may look up the address you need by using password >> 112233 <<.
This document: http://www.inet.hr/~tsereg/jse/example2.html