func (rd *RedisStorage) EncryptStorageData(data *StorageData) ([]byte, error) {
	bytes, err := json.Marshal(data)
	if err != nil {
		return nil, fmt.Errorf("unable to marshal: %v", err)
	}
	bytes = append([]byte(rd.ValuePrefix), bytes...)
	return rd.encrypt(bytes)
}
EncryptStorageData encrypt storage data, so it won't be plain data
package storageredis
import (
	"crypto/aes"
	"crypto/cipher"
	"crypto/rand"
	"encoding/json"
	"fmt"
	"io"
)
func (rd *RedisStorage) encrypt(bytes []byte) ([]byte, error) {
	if len(rd.AesKey) == 0 {
		return bytes, nil
	}
	c, err := aes.NewCipher(rd.GetAESKeyByte())
	if err != nil {
		return nil, fmt.Errorf("unable to create AES cipher: %v", err)
	}
	gcm, err := cipher.NewGCM(c)
	if err != nil {
		return nil, fmt.Errorf("unable to create GCM cipher: %v", err)
	}
	nonce := make([]byte, gcm.NonceSize())
	_, err = io.ReadFull(rand.Reader, nonce)
	if err != nil {
		return nil, fmt.Errorf("unable to generate nonce: %v", err)
	}
	return gcm.Seal(nonce, nonce, bytes, nil), nil
}