Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSecretKey ¶
MockSecretKey is a mock implementation of the SecretKeyer interface
func NewMockSecretKey ¶
func NewMockSecretKey() *MockSecretKey
NewMockSecretKey creates a new instance of MockSecretKey
func (*MockSecretKey) Base64 ¶
func (m *MockSecretKey) Base64() string
Base64 mocks the Base64 method
func (*MockSecretKey) Decrypt ¶
func (m *MockSecretKey) Decrypt(encryptedMessage string) (string, error)
Decrypt mocks the Decrypt method
func (*MockSecretKey) Encrypt ¶
func (m *MockSecretKey) Encrypt(message string) (string, error)
Encrypt mocks the Encrypt method
func (*MockSecretKey) HashSHA ¶
func (m *MockSecretKey) HashSHA() (string, error)
HashSHA mocks the HashSHA method
type SecretKey ¶
type SecretKey struct {
// contains filtered or unexported fields
}
func FromBase64 ¶
Click to show internal directories.
Click to hide internal directories.