1 | <?php namespace Comodojo\RpcClient\Traits; |
||
21 | trait Encryption { |
||
22 | |||
23 | /** |
||
24 | * Enable comodojo encrypted transport |
||
25 | * |
||
26 | * @var mixed |
||
27 | */ |
||
28 | private $encryption = false; |
||
29 | |||
30 | /** |
||
31 | * Set encryption key |
||
32 | * |
||
33 | * This will enable the NOT-STANDARD payload encryption |
||
34 | * |
||
35 | * @param string $key |
||
36 | * Encryption key |
||
37 | * |
||
38 | * @return self |
||
39 | * @throws Exception |
||
40 | */ |
||
41 | public function setEncryption($key) { |
||
50 | |||
51 | /** |
||
52 | * Get encryption key |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | 63 | public function getEncryption() { |
|
61 | |||
62 | } |
||
63 |