Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleSymmetricCryptoRelay ¶
type SimpleSymmetricCryptoRelay struct { relay.R Mode string // Mode encrypt/decrypt Password string // Password is hardcoded in the config. EnvVar string // EnvVar overrides Password with an environment variable. // contains filtered or unexported fields }
SimpleSymmetricCryptoRelay is a reference implementation of encryption in the relay flow. Note that I am not a cryptographer and at the time of writing these methods / techniques have not been verified as safe. They have been copied from the golang AES tests at
https://golang.org/src/crypto/cipher/example_test.go
and while they might be assumed to be safe, the author(s) do not guarantee safety. Your millage may vary.
func (SimpleSymmetricCryptoRelay) ID ¶
func (r SimpleSymmetricCryptoRelay) ID() string
ID returns a human readable identifier for this thing.
Click to show internal directories.
Click to hide internal directories.