27 Dec 2002: Instructions for the ENC_TEST demo

Usage:

I) One time setup:
  i) make sure that ENCRYPT.REX is one
     of the preload procedures.
     For example, make sure that PRELOADS.CFG contains:
        PRE_RESPONSE=encrypt procs\encrypt.rex

 ii) Create a selector-specific attribute (in ATTRIBS.CFG) that
     instructs SREhttp/2 to "encrypt, using SRE_B algorithim, ENC_TEST.TXT).
     For example:

        realm: test1
        rule: /get_enctest_txt
        alias: /sre2k/srehttp2/demos/enc_test.txt
        option: set pre_response ENCRYPT SRE_B /sre2k/srehttp2/demos/enc_sreb.rsp
        option: set get_privs 1

  iii) Create a username entry (in USERS.CFG) that contains an ?ENCRYPT:zzz
      "secret privilege".

       For example:
           sun moon ?Encrypt:earth

After these one-time-setup tasks, you are ready to try the demos.


II) From a javascript aware web browser, request:
      http://your.site.net/get_enctest_text    

     You'll probably be asked for a username and password. 
     After supplying your username and password  (say, "sun" and "moon") 
     you'll get a form back -- fill in the  appropriate "secret privilege" 
     (such as "earth")

     The contents of this file will then be displayed (somewhat slowly) in 
     a seperate window.


 Note that the SRE_B algorithim returns an html document with both an 
 encrypted response embedded within it, and an embedded 
 javascript procedure -- the javascript procedure decrypts the 
 embedded response and displays it in a new window. 

