[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/_test/tests/inc/ -> auth_encryption.test.php (source)

   1  <?php
   2  
   3  /**
   4   * Tests the auth_decrypt and auth_encrypt-functions
   5   */
   6  class auth_encryption_test extends DokuWikiTest {
   7      function testDeEncrypt() {
   8          $data = "OnA28asdfäakgß*+!\"+*";
   9          $secret = "oeaf1öasdöflk§";
  10          $this->assertEquals($data, auth_decrypt(auth_encrypt($data, $secret), $secret));
  11      }
  12  }