Documentation
¶
Overview ¶
Package ageencryptionservice contains the age encryption service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptBytes ¶
EncryptBytes encrypts a byte array using the age encryption library
func EncryptString ¶
EncryptString encrypts a string using the age encryption library
func NewAgeEncryptionService ¶
func NewAgeEncryptionService() interfaces.AgeEncryptionServiceInterface
NewAgeEncryptionService creates a new age encryption service wrapper
func ValidRecipient ¶
ValidRecipient reports whether this package can encrypt to publicKey: it parses, and wrapping a throwaway file key catches keys that parse but cannot be encrypted to (the all-zero point).
Types ¶
type MockAgeEncryptionService ¶
MockAgeEncryptionService provides a mock implementation of age encryption service
func (*MockAgeEncryptionService) EncryptBytes ¶
func (m *MockAgeEncryptionService) EncryptBytes(publicKey string, plaintext []byte) ([]byte, error)
EncryptBytes encrypts a byte array using the age encryption library
func (*MockAgeEncryptionService) EncryptString ¶
func (m *MockAgeEncryptionService) EncryptString(publicKey string, plaintext string) (string, error)
EncryptString encrypts a string using the age encryption library
type Wrapper ¶
type Wrapper struct{}
Wrapper wraps the existing age encryption functionality
func (*Wrapper) EncryptBytes ¶
EncryptBytes encrypts a byte array using the age encryption library
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package ageinterfaces contains the interfaces for the age encryption service
|
Package ageinterfaces contains the interfaces for the age encryption service |