1 | <?php |
||
20 | class Mcrypt extends Abstraction implements Simulator |
||
21 | { |
||
22 | /** |
||
23 | * Path to mcrypt command. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | private $pathToMcrypt; |
||
28 | |||
29 | /** |
||
30 | * Key to pass via cli |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $key; |
||
35 | |||
36 | /** |
||
37 | * Key file |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $keyFile; |
||
42 | |||
43 | /** |
||
44 | * Algorithm to use |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | private $algorithm; |
||
49 | |||
50 | /** |
||
51 | * Hash to use |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | private $hash; |
||
56 | |||
57 | /** |
||
58 | * Path to config file |
||
59 | * |
||
60 | * @var string |
||
61 | */ |
||
62 | private $config; |
||
63 | |||
64 | /** |
||
65 | * Keep the not encrypted file |
||
66 | * |
||
67 | * @var boolean |
||
68 | */ |
||
69 | private $keepUncrypted; |
||
70 | |||
71 | /** |
||
72 | * Setup. |
||
73 | * |
||
74 | * @see \phpbu\App\Backup\Crypter |
||
75 | * @param array $options |
||
76 | * @throws Exception |
||
77 | */ |
||
78 | public function setup(array $options = []) |
||
96 | 4 | ||
97 | 4 | /** |
|
98 | * (non-PHPDoc) |
||
99 | 4 | * |
|
100 | 1 | * @see \phpbu\App\Backup\Crypter |
|
101 | * @return string |
||
102 | 3 | */ |
|
103 | public function getSuffix() : string |
||
107 | |||
108 | /** |
||
109 | * Create the Exec to run the 'mcrypt' command. |
||
110 | * |
||
111 | * @param \phpbu\App\Backup\Target $target |
||
112 | 2 | * @return \phpbu\App\Cli\Executable |
|
113 | */ |
||
114 | 2 | protected function createExecutable(Target $target) : Executable |
|
126 | } |
||
127 |