forked from mmeyer2k/dcrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload.php
More file actions
39 lines (36 loc) · 913 Bytes
/
load.php
File metadata and controls
39 lines (36 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* load.php
*
* This file performs class loading operations when composer is not available.
* Including this file in your project will give you immediate access to the
* functionality of Dcrypt.
*
* PHP version 7
*
* @category Dcrypt
* @package Dcrypt
* @author Michael Meyer (mmeyer2k) <m.meyer2k@gmail.com>
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @link https://github.com/mmeyer2k/dcrypt
*/
// @codeCoverageIgnoreStart
if (!class_exists('Dcrypt\Aes')) {
// Source files must be in correct order to honor inheritance
$files = array(
'OpensslWrapper',
'OpensslBridge',
'Str',
'Hash',
'AesCbc',
'AesCtr',
'Otp',
'Pkcs7',
'Rc4',
'Spritz',
);
foreach ($files as $f) {
require_once __DIR__ . "/src/$f.php";
}
}
// @codeCoverageIgnoreEnd