Versions in this module Expand all Collapse all v0 v0.1.0 Oct 15, 2020 Changes in this version + const GOCRYPT + type AESOpt struct + func NewAESOpt(secret string) (*AESOpt, error) + func (aesOpt *AESOpt) Decrypt(chiperText []byte) (string, error) + func (aesOpt *AESOpt) Encrypt(plainText []byte) (string, error) + type DESOpt struct + func NewDESOpt(secret string) (*DESOpt, error) + func (desOpt *DESOpt) Decrypt(chiperText []byte) (string, error) + func (desOpt *DESOpt) Encrypt(plainText []byte) (string, error) + type GocryptInterface interface + Decrypt func(interface{}) error + Encrypt func(interface{}) error + type GocryptOption interface + Decrypt func(chipherText []byte) (string, error) + Encrypt func(plainText []byte) (string, error) + type Option struct + AESOpt GocryptOption + Custom map[string]GocryptOption + DESOpt GocryptOption + Postfix string + Prefix string + RC4Opt GocryptOption + func New(opt *Option) *Option + func (opt *Option) Decrypt(structVal interface{}) error + func (opt *Option) Encrypt(structVal interface{}) error + type RC4Opt struct + func NewRC4Opt(secret string) (*RC4Opt, error) + func (rc4Opt *RC4Opt) Decrypt(disini []byte) (string, error) + func (rc4Opt *RC4Opt) Encrypt(src []byte) (string, error)