func NewEncryptedValueFromSerialized(evStr SerializedEncryptedValue) (EncryptedValue, error) {
	return NewEncryptedValue(string(evStr))
}
NewEncryptedValueFromSerialized creates a new encrypted value from its string serialized representation.
package encryptedconfigvalue
import (
	"encoding/base64"
	"encoding/json"
	"fmt"
	"strings"
)
type SerializedEncryptedValue string
func newSerializedEncryptedValue(bytes []byte) SerializedEncryptedValue {
	return SerializedEncryptedValue(fmt.Sprintf(encPrefix + base64.StdEncoding.EncodeToString(bytes)))
}
type EncryptedValue interface {
	Decrypt(key KeyWithType) (string, error)
	ToSerializable() SerializedEncryptedValue
}
const encPrefix = "enc:"
func MustNewEncryptedValueFromSerialized(evStr SerializedEncryptedValue) EncryptedValue {
	return MustNewEncryptedValue(string(evStr))
}