summaryrefslogtreecommitdiff
path: root/_test/tests/inc/auth_encryption.test.php
blob: 041eba00e828db967acb0052c206e91b7cd543dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

/**
 * Tests the auth_decrypt and auth_encrypt-functions
 */
class auth_encryption_test extends DokuWikiTest {
    function testDeEncrypt() {
        $data = "OnA28asdfäakgß*+!\"+*";
        $secret = "oeaf1öasdöflk§";
        $this->assertEquals($data, auth_decrypt(auth_encrypt($data, $secret), $secret));
    }
}