secconf

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 7 Imported by: 0

README

Acknowledgement

This package is from crypt

MIT license

Documentation

Overview

Package secconf implements secconf encoding as specified in the following format:

base64(gpg(gzip(data)))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, secretKeyring io.Reader) ([]byte, error)

Decode decodes data using the secconf codec.

func Encode

func Encode(data []byte, keyring io.Reader) ([]byte, error)

Encode encodes data to a base64 encoded using the secconf codec. data is encrypted with all public keys found in the supplied keyring.

func NewCipher

func NewCipher(secRing io.Reader) (onion.Cipher, error)

NewCipher create a new cipher based on the secconf encoding as specified in the following format:

base64(gpg(gzip(data)))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL