Versions in this module Expand all Collapse all v0 v0.1.0 Nov 25, 2026 Changes in this version + const KeyFile + const KeySize + var ErrDecrypt = errors.New("panzerschrank: cannot decrypt (wrong key, wrong name or damaged data)") + func GenerateKey() []byte + func GenerateKeyBase64() string + func LoadOrCreateKey(file string) ([]byte, error) + type Box struct + func New(key []byte) (*Box, error) + func NewFromBase64(encoded string) (*Box, error) + func OpenKeyFile(file string) (*Box, error) + func (b *Box) Open(sealed []byte, name string) ([]byte, error) + func (b *Box) OpenString(sealed, name string) (string, error) + func (b *Box) Overhead() int + func (b *Box) Seal(plaintext []byte, name string) []byte + func (b *Box) SealString(plaintext, name string) string