| 31 | } |
| 32 | |
| 33 | type CryptConfig struct { |
| 34 | Algorithm string `help:"Name of the algorithm to use for crypting/decrypting" required:"true"` |
| 35 | Decrypt bool `help:"True for decrypting, false for encrypting" default:"false"` |
| 36 | SrcField string `help:"Name of the field to crypt/decrypt" required:"true"` |
| 37 | DstField string `help:"Name of the field to write the result to" required:"true"` |
| 38 | AlgorithmConfig map[string]string `help:"AlgorithmConf contains configurations required by the chosen algorithm"` |
| 39 | } |
| 40 | |
| 41 | type cryptAlgorithm interface { |
| 42 | parseConf(map[string]string) error |
nothing calls this directly
no outgoing calls
no test coverage detected