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

Method encryptSecret

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

Source from the content-addressed store, hash-verified

93 }
94
95 private static function encryptSecret(string $value): string
96 {
97 $value = (string)$value;
98 if ($value === '') {
99 return '';
100 }
101 return encryptData($value, $GLOBALS['encryptionKey']);
102 }
103
104 private static function defaultLocalSource(): array
105 {

Callers 1

upsertSourceMethod · 0.95

Calls 1

encryptDataFunction · 0.85

Tested by

no test coverage detected