MCPcopy
hub / github.com/getsops/sops / Encrypt

Method Encrypt

pgp/keysource.go:269–271  ·  view source on GitHub ↗

Encrypt encrypts the data key with the PGP key with the same fingerprint as the MasterKey. Consider using EncryptContext instead.

(dataKey []byte)

Source from the content-addressed store, hash-verified

267//
268// Consider using EncryptContext instead.
269func (key *MasterKey) Encrypt(dataKey []byte) error {
270 return key.EncryptContext(context.Background(), dataKey)
271}
272
273// EncryptContext encrypts the data key with the PGP key with the same
274// fingerprint as the MasterKey.

Callers 1

EncryptIfNeededMethod · 0.95

Calls 1

EncryptContextMethod · 0.95

Tested by

no test coverage detected