Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Enc ¶
===================================================================================================================== ENCODING -- BASE64 =====================================================================================================================
Types ¶
type Encryption ¶
type Encryption struct {
// contains filtered or unexported fields
}
===================================================================================================================== ENCRYPTION =====================================================================================================================
func NewEncryption ¶
func NewEncryption(commonKey string, options ...func(enc *Encryption)) *Encryption
func (*Encryption) Decrypt ¶
func (enc *Encryption) Decrypt(s []byte) []byte
func (*Encryption) Decrypts ¶
func (enc *Encryption) Decrypts(s string) string
func (*Encryption) Encrypt ¶
func (enc *Encryption) Encrypt(s []byte) []byte
func (*Encryption) Encrypts ¶
func (enc *Encryption) Encrypts(s string) string
func (*Encryption) SetLogger ¶
func (enc *Encryption) SetLogger(l *log.Logger) *Encryption
type RSA ¶
type RSA struct { PEM_PRIVATE string PEM_PUBLIC string TXT_ENCRYPTED string TXT_PLAIN string // contains filtered or unexported fields }
func (*RSA) GenerateKeys ¶
===================================================================================================================== Creating Keys =====================================================================================================================