Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionOutPut ¶
type EncryptionService ¶
type EncryptionService struct {
// contains filtered or unexported fields
}
func (*EncryptionService) DecryptData ¶
func (e *EncryptionService) DecryptData(data []byte, nonce []byte) ([]byte, error)
DecryptData decrypts the data using AES-GCM, the nonce needs to be provided
func (*EncryptionService) EncryptData ¶
func (e *EncryptionService) EncryptData(data []byte) (EncryptionOutPut, error)
EncryptData encrypts the data using AES-GCM, the nonce is generated using the crypto/rand package
type IEncryptionService ¶
type IEncryptionService interface { EncryptData(data []byte) (EncryptionOutPut, error) DecryptData(data []byte, nonce []byte) ([]byte, error) }
func NewEncryptionService ¶
func NewEncryptionService(scwWrapper scw_secret_manager.IScaleWayWrapper) IEncryptionService
func NewEncryptionServiceFromKey ¶
func NewEncryptionServiceFromKey(keyAsBytes []byte) IEncryptionService
Click to show internal directories.
Click to hide internal directories.