Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionService ¶
type EncryptionService struct {
Key []byte
}
func (*EncryptionService) Decrypt ¶
func (s *EncryptionService) Decrypt(ciphertext []byte) ([]byte, error)
func (*EncryptionService) DecryptString ¶
func (s *EncryptionService) DecryptString(ciphertext string) ([]byte, error)
func (*EncryptionService) Encrypt ¶
func (s *EncryptionService) Encrypt(plaintext []byte) ([]byte, error)
func (*EncryptionService) EncryptToString ¶
func (s *EncryptionService) EncryptToString(plaintext []byte) (string, error)
Click to show internal directories.
Click to hide internal directories.