MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / MasterEncryptKey

Method MasterEncryptKey

pkg/setting/provider.go:281–288  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

279}
280
281func (s *settingProvider) MasterEncryptKey(ctx context.Context) []byte {
282 encoded := s.getString(ctx, "encrypt_master_key", "")
283 key, err := base64.StdEncoding.DecodeString(encoded)
284 if err != nil {
285 return nil
286 }
287 return key
288}
289
290func (s *settingProvider) CustomHTML(ctx context.Context) *CustomHTML {
291 return &CustomHTML{

Callers

nothing calls this directly

Calls 1

getStringMethod · 0.95

Tested by

no test coverage detected