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

Method requireMasterKey

src/FileRise/Support/CryptoAtRest.php:142–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 }
141
142 public static function requireMasterKey(): string
143 {
144 $k = self::getMasterKeyOrNull();
145 if ($k === null) {
146 throw new \RuntimeException('Encryption master key missing. Set FR_ENCRYPTION_MASTER_KEY or provide META_DIR/encryption_master.key (32 bytes).');
147 }
148 return $k;
149 }
150
151 private static function packU64BE(int $n): string
152 {

Callers 2

encryptFileInPlaceMethod · 0.95
streamDecryptedMethod · 0.95

Calls 1

getMasterKeyOrNullMethod · 0.95

Tested by

no test coverage detected