Versions in this module Expand all Collapse all v1 v1.0.0 Sep 24, 2023 Changes in this version + type Aes struct + func (ae *Aes) Decrypt(data string, key, iv string) (string, error) + func (ae *Aes) DecryptBytes(data, key, iv []byte) ([]byte, error) + func (ae *Aes) Encrypt(data, key, iv string) (string, error) + func (ae *Aes) EncryptBytes(data, key, iv []byte) ([]byte, error) + type Ecdsa struct + func (ec *Ecdsa) Decrypt(data string, priKey string) (string, error) + func (ec *Ecdsa) DecryptBytes(data, priKey []byte) ([]byte, error) + func (ec *Ecdsa) Encrypt(data, pubKey string) (string, error) + func (ec *Ecdsa) EncryptBytes(data, pubKey []byte) ([]byte, error) + func (ec *Ecdsa) GenKey() (priKey string, pubKey string, error error) + func (ec *Ecdsa) GenKeyBytes() (priKey []byte, pubKey []byte, error error) + func (ec *Ecdsa) Sign(data string, priKey string) (string, error) + func (ec *Ecdsa) SignBytes(data, priKey []byte) ([]byte, error) + func (ec *Ecdsa) Verify(data string, signature string, pubKey string) (bool, error) + func (ec *Ecdsa) VerifyBytes(data, signature, pubKey []byte) bool