<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>core/util/webfiles/functions.php</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -12,7 +12,7 @@ else {
 
 if (SNAP_WI_CRYPT) {
     foreach ($file_list as $idx =&gt; $file) {
-        $file_list[$idx] = snap_blowfish_encrypt($file, SNAP_WI_CRYPT);
+        $file_list[$idx] = snap_encrypt($file, SNAP_WI_CRYPT);
     }
 }
 </diff>
      <filename>core/util/webfiles/getfiles.php</filename>
    </modified>
    <modified>
      <diff>@@ -5,22 +5,18 @@
 
 $urls = array(
     'css'           =&gt; Snap_Request::makeURL(array(
-        'key'   =&gt; SNAP_WI_KEY,
         'mode'  =&gt; 'resource',
         'file'  =&gt; 'css',
         )),
     'css-ie6'       =&gt; Snap_Request::makeURL(array(
-        'key'   =&gt; SNAP_WI_KEY,
         'mode'  =&gt; 'resource',
         'file'  =&gt; 'css-ie6',
         )),
     'css-ie7'       =&gt; Snap_Request::makeURL(array(
-        'key'   =&gt; SNAP_WI_KEY,
         'mode'  =&gt; 'resource',
         'file'  =&gt; 'css-ie7',
         )),
     'js'            =&gt; Snap_Request::makeURL(array(
-        'key'   =&gt; SNAP_WI_KEY,
         'mode'  =&gt; 'resource',
         'file'  =&gt; 'js',
         )),
@@ -62,11 +58,7 @@ $urls = array(
         &lt;dt&gt;Test Path:&lt;/dt&gt;
         &lt;dd&gt;&lt;?php 
             if (SNAP_WI_CRYPT) {
-                $crypt = snap_blowfish_encrypt(SNAP_WI_TEST_PATH, SNAP_WI_CRYPT);
-                $crypt = str_replace('_', '', $crypt);
-                $crypt = substr($crypt, -32);
-                echo $crypt;
-                echo &quot; &lt;strong&gt;(File obfuscation is on)&lt;/strong&gt;&quot;;
+                echo &quot;??? &lt;strong&gt;(Full path obfuscation is on)&lt;/strong&gt;&quot;;
             }
             else {
                 echo SNAP_WI_TEST_PATH;</diff>
      <filename>core/util/webfiles/index.php</filename>
    </modified>
    <modified>
      <diff>@@ -223,7 +223,7 @@ YAHOO.SnapTest.DisplayManager = (function() {
 		YAHOO.util.Dom.addClass(p, &quot;file_name&quot;);
 		
 		var fileDisplay = file;
-		fileDisplay = fileDisplay.substr(fileDisplay.length - 32, 32);
+        // fileDisplay = fileDisplay.substr(fileDisplay.length - 32, 32);
 		var txt = document.createTextNode(fileDisplay);
 		
 		YAHOO.util.Dom.get(YAHOO.SnapTest.Constants.TEST_LIST).appendChild(li);</diff>
      <filename>core/util/webfiles/js/displaymanager.js</filename>
    </modified>
    <modified>
      <diff>@@ -17,7 +17,7 @@ $file_original = $options['file'];
 
 // decrypt if required
 if (SNAP_WI_CRYPT) {
-    $file = snap_blowfish_decrypt($file, SNAP_WI_CRYPT);
+    $file = snap_decrypt($file, SNAP_WI_CRYPT);
 }
 
 // ensure file path matches test path prefix</diff>
      <filename>core/util/webfiles/loadtests.php</filename>
    </modified>
    <modified>
      <diff>@@ -51,39 +51,33 @@ $content_types = array(
 $replacements = array(
     'css'       =&gt; array(
         '{IMG}' =&gt; Snap_Request::makeURL(array(
-            'key'   =&gt; SNAP_WI_KEY,
             'mode'  =&gt; 'resource',
             'file'  =&gt; null,
         )),
 
         '../../../../assets/skins/sam/sprite.png' =&gt; Snap_Request::makeURL(array(
-            'key'   =&gt; SNAP_WI_KEY,
             'mode'  =&gt; 'resource',
             'file'  =&gt; 'sam-assets.png',
         )),
     ),
     'css-ie6'   =&gt; array(
         '{IMG}' =&gt; Snap_Request::makeURL(array(
-            'key'   =&gt; SNAP_WI_KEY,
             'mode'  =&gt; 'resource',
             'file'  =&gt; null,
         )),
 
         '../../../../assets/skins/sam/sprite.png' =&gt; Snap_Request::makeURL(array(
-            'key'   =&gt; SNAP_WI_KEY,
             'mode'  =&gt; 'resource',
             'file'  =&gt; 'sam-assets.png',
         )),
     ),
     'css-ie7'   =&gt; array(
         '{IMG}' =&gt; Snap_Request::makeURL(array(
-            'key'   =&gt; SNAP_WI_KEY,
             'mode'  =&gt; 'resource',
             'file'  =&gt; null,
         )),
 
         '../../../../assets/skins/sam/sprite.png' =&gt; Snap_Request::makeURL(array(
-            'key'   =&gt; SNAP_WI_KEY,
             'mode'  =&gt; 'resource',
             'file'  =&gt; 'sam-assets.png',
         )),</diff>
      <filename>core/util/webfiles/resource.php</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ $klass = $options['klass'];
 
 // decrypt if required
 if (SNAP_WI_CRYPT) {
-    $file = snap_blowfish_decrypt($file, SNAP_WI_CRYPT);
+    $file = snap_decrypt($file, SNAP_WI_CRYPT);
 }
 
 // ensure file path matches test path prefix</diff>
      <filename>core/util/webfiles/runtest.php</filename>
    </modified>
    <modified>
      <diff>@@ -14,27 +14,17 @@ define('SNAP_WI_TEST_PATH', '/path/to/my/tests/');
 // once more without weird script url hackery
 define('SNAP_WI_URL_PATH', 'http://www.example.com/path/to/snaptest_web.dist.php');
 
-// STEP 4: Set a key. You only need this if you are putting your
-// tests on a publicly accessible server. This also offers very minimal
-// protection. If you're actually going this far in the protecting bit,
-// it is probably time to read up on .htaccess and possibly write your own
-// web stub to do security.
-// A blank string means no key will be used.
-define('SNAP_WI_KEY', '');
-
-// STEP 5: Obfuscation key. If you decided to set a key for STEP 4, then
-// you may want a key for STEP 5. Setting a crypt key will obfuscate all
-// path information in the web interface. Great if you want to show off your
-// test results without exposing your path to the world. Is this wise?
-// I suppose that'd be your call.
-// A blank string means no obfuscation will be done.
-define('SNAP_WI_CRYPT', '');
-
-// STEP 6: set the matching path
+// STEP 4: Obfuscation. If this is defined to TRUE then full path obfuscation
+// will be on and the path informaton will be ommitted from the display side
+// of everything. It is strongly encouraged to leave this on unless you are in
+// a secure environment and don't mind your entire path being exposed.
+define('SNAP_WI_CRYPT', TRUE);
+
+// STEP 5: set the matching path
 // Files matching this pattern will be testable
 define('SNAP_WI_TEST_MATCH', '^.*\.stest\.php$');
 
-// STEP 7: Relax, you're done. Bask in your awesomeness.
+// STEP 6: Relax, you're done. Bask in your awesomeness.
 // Go to http://www.example.com/path/to/snaptest_web.dist.php
 
 // --------------------------------------------------------------------------</diff>
      <filename>snaptest_web.dist.php</filename>
    </modified>
    <modified>
      <diff>@@ -18,18 +18,7 @@ $options = Snap_Request::getLongOptions(array(
     'key'       =&gt; '',
 ));
 
-if (SNAP_WI_KEY) {
-    if ($options['key'] != SNAP_WI_KEY) {
-        echo &quot;\n&quot;;
-        echo &quot;SnapTest Web Interface: Key Mismatch\n&quot;;
-        exit;
-    }
-}
-
-// include the blowfish library if they are crypting
-if (SNAP_WI_CRYPT) {
-    require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'util' . DIRECTORY_SEPARATOR . 'blowfish' . DIRECTORY_SEPARATOR . 'blowfish.php';
-}
+require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'util' . DIRECTORY_SEPARATOR . 'webfiles' . DIRECTORY_SEPARATOR . 'functions.php';
 
 Snap_Request::setURLBase(SNAP_WI_URL_PATH);
 </diff>
      <filename>snaptest_webcore.php</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>core/util/blowfish/blowfish.php</filename>
    </removed>
    <removed>
      <filename>core/util/blowfish/lib.php</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>de550048bb3c5ef978be030f522b886af93725ba</id>
    </parent>
  </parents>
  <author>
    <name>Jakob Heuser</name>
    <email>jakob@felocity.org</email>
  </author>
  <url>http://github.com/Jakobo/snaptest/commit/c1353f7a9ae1adc9fc3cd15b6640868a3b76e2e6</url>
  <id>c1353f7a9ae1adc9fc3cd15b6640868a3b76e2e6</id>
  <committed-date>2009-07-03T18:41:01-07:00</committed-date>
  <authored-date>2009-07-03T18:41:01-07:00</authored-date>
  <message>changed from blowfish to just full path prefix removal. This is a much more intelligent solution to #16</message>
  <tree>21f5f201f548012d9339233eb334cf4cfe82f411</tree>
  <committer>
    <name>Jakob Heuser</name>
    <email>jakob@felocity.org</email>
  </committer>
</commit>
