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

Method Encrypt

sops_test.go:28–34  ·  view source on GitHub ↗
(value interface{}, key []byte, path string)

Source from the content-addressed store, hash-verified

26}
27
28func (c reverseCipher) Encrypt(value interface{}, key []byte, path string) (string, error) {
29 b, err := ToBytes(value)
30 if err != nil {
31 return "", err
32 }
33 return reverse(string(b)), nil
34}
35func (c reverseCipher) Decrypt(value string, key []byte, path string) (plaintext interface{}, err error) {
36 if value == "error" {
37 return nil, fmt.Errorf("Error")

Callers

nothing calls this directly

Calls 2

ToBytesFunction · 0.85
reverseFunction · 0.85

Tested by

no test coverage detected