Files
zeekay 1c7e5e68d7 feat: fork KMS operator under hanzoai org
White-label KMS secrets operator for Kubernetes.
Updated image references from kms/kubernetes-operator to ghcr.io/hanzoai/kms-operator.
2026-02-15 12:26:52 -08:00

19 lines
374 B
Go

package template
import (
"encoding/base64"
"fmt"
)
func decodeBase64ToBytes(encodedString string) string {
decoded, err := base64.StdEncoding.DecodeString(encodedString)
if err != nil {
panic(fmt.Sprintf("Error: %v", err))
}
return string(decoded)
}
func encodeBase64(plainString string) string {
return base64.StdEncoding.EncodeToString([]byte(plainString))
}