Versions in this module Expand all Collapse all v0 v0.1.0 Jan 7, 2022 Changes in this version + type Cryptography struct + func NewCryptography(key []byte, nonce []byte) *Cryptography + func (s *Cryptography) Decrypt(ciphertext string) (string, error) + func (s *Cryptography) Encrypt(plainText string) (string, error) + type ICryptography interface + Decrypt func(string) (string, error) + Encrypt func(string) (string, error) + type MockICryptography struct + func NewMockICryptography(ctrl *gomock.Controller) *MockICryptography + func (m *MockICryptography) Decrypt(arg0 string) (string, error) + func (m *MockICryptography) EXPECT() *MockICryptographyMockRecorder + func (m *MockICryptography) Encrypt(arg0 string) (string, error) + type MockICryptographyMockRecorder struct + func (mr *MockICryptographyMockRecorder) Decrypt(arg0 interface{}) *gomock.Call + func (mr *MockICryptographyMockRecorder) Encrypt(arg0 interface{}) *gomock.Call