1 | <?php |
||
21 | class OpenSSL extends Key implements Crypter |
||
22 | { |
||
23 | /** |
||
24 | * Path to mcrypt command. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $pathToOpenSSL; |
||
29 | |||
30 | /** |
||
31 | * Key file |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | private $certFile; |
||
36 | |||
37 | /** |
||
38 | * Algorithm to use |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | private $algorithm; |
||
43 | |||
44 | /** |
||
45 | * Password to use |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | private $password; |
||
50 | |||
51 | /** |
||
52 | * Keep the not encrypted file |
||
53 | * |
||
54 | * @var boolean |
||
55 | */ |
||
56 | private $keepUncrypted; |
||
57 | |||
58 | /** |
||
59 | * Setup. |
||
60 | * |
||
61 | * @see \phpbu\App\Backup\Crypter |
||
62 | * @param array $options |
||
63 | * @throws Exception |
||
64 | */ |
||
65 | public function setup(array $options = array()) |
||
81 | 3 | ||
82 | 3 | /** |
|
83 | 3 | * (non-PHPDoc) |
|
84 | 3 | * |
|
85 | 3 | * @see \phpbu\App\Backup\Crypter |
|
86 | 3 | * @return string |
|
87 | */ |
||
88 | public function getSuffix() |
||
92 | |||
93 | /** |
||
94 | * Create the Exec to run the 'mcrypt' command. |
||
95 | * |
||
96 | 2 | * @param \phpbu\App\Backup\Target $target |
|
97 | * @return \phpbu\App\Cli\Executable |
||
98 | 2 | */ |
|
99 | public function getExecutable(Target $target) |
||
118 | } |
||
119 |