(string $value)
| 83 | } |
| 84 | |
| 85 | private static function decryptSecret(string $value): string |
| 86 | { |
| 87 | $value = trim($value); |
| 88 | if ($value === '') { |
| 89 | return ''; |
| 90 | } |
| 91 | $plain = decryptData($value, $GLOBALS['encryptionKey']); |
| 92 | return ($plain === false || $plain === null) ? '' : (string)$plain; |
| 93 | } |
| 94 | |
| 95 | private static function encryptSecret(string $value): string |
| 96 | { |
no test coverage detected