(value string, key []byte, path string)
| 33 | return reverse(string(b)), nil |
| 34 | } |
| 35 | func (c reverseCipher) Decrypt(value string, key []byte, path string) (plaintext interface{}, err error) { |
| 36 | if value == "error" { |
| 37 | return nil, fmt.Errorf("Error") |
| 38 | } |
| 39 | return reverse(value), nil |
| 40 | } |
| 41 | |
| 42 | type encPrefixCipher struct{} |
| 43 |