MCPcopy Create free account
hub / github.com/error311/FileRise / decryptSecret

Method decryptSecret

src/FileRise/Storage/SourcesConfig.php:85–93  ·  view source on GitHub ↗
(string $value)

Source from the content-addressed store, hash-verified

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 {

Callers 1

buildSourceViewMethod · 0.95

Calls 1

decryptDataFunction · 0.85

Tested by

no test coverage detected