Documentation ¶ Index ¶ type Ecc func NewEcc() *Ecc func (e *Ecc) Decrypt(data []byte) ([]byte, error) func (e *Ecc) DecryptString(data string) (string, error) func (e *Ecc) Encrypt(data []byte) ([]byte, error) func (e *Ecc) EncryptString(data string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Ecc ¶ type Ecc struct { PrivateKey *eciesgo.PrivateKey PublicKey *eciesgo.PublicKey } Ecc ECC加密核心对象 func NewEcc ¶ func NewEcc() *Ecc NewEcc 创建ECC加密对象的实例 func (*Ecc) Decrypt ¶ func (e *Ecc) Decrypt(data []byte) ([]byte, error) Decrypt ECC解密数据 func (*Ecc) DecryptString ¶ func (e *Ecc) DecryptString(data string) (string, error) DecryptString ECC解密字符串 func (*Ecc) Encrypt ¶ func (e *Ecc) Encrypt(data []byte) ([]byte, error) Encrypt ECC加密数据 func (*Ecc) EncryptString ¶ func (e *Ecc) EncryptString(data string) (string, error) EncryptString ECC加密字符串 Source Files ¶ View all Source files ecc.go Click to show internal directories. Click to hide internal directories.