Documentation
¶
Index ¶
Constants ¶
View Source
const ( GCM = "GCM" CBC = "CBC" MinNonceSize = 12 EncryptKey = "Moov Irs Encryption AES-256 Key " )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncryptService ¶
type EncryptService interface { Encrypt(buf, non []byte) ([]byte, error) Decrypt(buf, non []byte) ([]byte, error) GetType() string }
func NewEncryptService ¶
func NewEncryptService(key, method string) (EncryptService, error)
Click to show internal directories.
Click to hide internal directories.