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

Method EncryptorFactory

application/dependency/dependency.go:240–242  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

238}
239
240func (d *dependency) EncryptorFactory(ctx context.Context) encrypt.CryptorFactory {
241 return encrypt.NewCryptorFactory(d.MasterEncryptKeyVault(ctx))
242}
243
244func (d *dependency) WebAuthn(ctx context.Context) (*webauthn.WebAuthn, error) {
245 if d.webauthn != nil {

Callers

nothing calls this directly

Calls 2

MasterEncryptKeyVaultMethod · 0.95
NewCryptorFactoryFunction · 0.92

Tested by

no test coverage detected