Cross-language encryption wrapper for binary blobs.
objectenc is a wrapper for binary blobs with encryption type metadata.
This package also includes cross-platform implementations of each encryption type. Each encryption implementation lives in a sub-package.
Furthermore, compression algorithms are implemented in sub-packages.
When encrypting and decrypting data, sometimes additional out-of-band information will be required, such as the private or public key for a peer ID or the encryption key.
The code is structured so that this information can be resolved asynchronously.
Each sub-package contains an implementation that will be registered globally when the package is initialized. This means that you can selectively compile in encryption types with an import statement like so:
import (
"github.com/aperturerobotics/objectenc"
// Register specific algorithms.
_ "github.com/aperturerobotics/objectenc/blowfish"
_ "github.com/aperturerobotics/objectenc/aes"
// alternatively, register all algorithms
_ "github.com/aperturerobotics/objectenc/all"
)