Files
grafana/pkg/util/encryption.go
T
Emil Tullstedt 84669d2213 Encryption: Override Encrypt/Decrypt in util
Breaks every test that uses Encrypt or Decrypt
2020-10-14 15:53:49 +02:00

18 lines
366 B
Go

package util
import (
"errors"
)
var ErrNotInitialized = errors.New("function is not initialized")
// Decrypt decrypts a payload with a given secret.
var Decrypt = func(_ []byte) ([]byte, error) {
return nil, ErrNotInitialized
}
// Encrypt encrypts a payload with a given secret.
var Encrypt = func(_ []byte) ([]byte, error) {
return nil, ErrNotInitialized
}