Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoAes ¶
type CryptoAes struct {
// contains filtered or unexported fields
}
CryptoAes represents AES encryption struct
func NewCryptoAes ¶
NewCryptoAes create CryptoAes struct
func (*CryptoAes) DecryptWithBase64 ¶
DecryptWithBase64 decrypts a input data to base64 string
func (*CryptoAes) EncryptWithBase64 ¶
EncryptWithBase64 encrypts a input data to base64 string
type CryptoEcdsa ¶ added in v0.1.1
type CryptoEcdsa struct {
// contains filtered or unexported fields
}
CryptoEcdsa represents Ecdsa encryption struct
func NewCryptoEcdsa ¶ added in v0.1.1
func NewCryptoEcdsa(ecdsakey *entity.EcdsaKey) *CryptoEcdsa
NewCryptoEcdsa create CryptoEcdsa struct
func (*CryptoEcdsa) Decrypt ¶ added in v0.1.1
func (ce *CryptoEcdsa) Decrypt(input []byte) ([]byte, error)
Decrypt decrypts a input data
func (*CryptoEcdsa) DecryptWithBase64 ¶ added in v0.1.1
func (ce *CryptoEcdsa) DecryptWithBase64(input string) ([]byte, error)
DecryptWithBase64 decrypts a input data to base64 string
func (*CryptoEcdsa) Encrypt ¶ added in v0.1.1
func (ce *CryptoEcdsa) Encrypt(input []byte) ([]byte, error)
Encrypt encrypts a input data
func (*CryptoEcdsa) EncryptWithBase64 ¶ added in v0.1.1
func (ce *CryptoEcdsa) EncryptWithBase64(input []byte) (string, error)
EncryptWithBase64 encrypts a input data to base64 string
type CryptoEd25519 ¶ added in v0.2.0
type CryptoEd25519 struct {
// contains filtered or unexported fields
}
CryptoEd25519 represents ED25519 encryption struct
func NewCryptoEd25519 ¶ added in v0.2.0
func NewCryptoEd25519(ed25519key *entity.Ed25519Key) *CryptoEd25519
NewCryptoEd25519 create CryptoEd25519 struct
func (*CryptoEd25519) Decrypt ¶ added in v0.2.0
func (ce *CryptoEd25519) Decrypt(input []byte) ([]byte, error)
Decrypt decrypts a input data
func (*CryptoEd25519) DecryptWithBase64 ¶ added in v0.2.0
func (ce *CryptoEd25519) DecryptWithBase64(input string) ([]byte, error)
DecryptWithBase64 decrypts a input data to base64 string
func (*CryptoEd25519) Encrypt ¶ added in v0.2.0
func (ce *CryptoEd25519) Encrypt(input []byte) ([]byte, error)
Encrypt encrypts a input data
func (*CryptoEd25519) EncryptWithBase64 ¶ added in v0.2.0
func (ce *CryptoEd25519) EncryptWithBase64(input []byte) (string, error)
EncryptWithBase64 encrypts a input data to base64 string
type CryptoRsa ¶
type CryptoRsa struct {
// contains filtered or unexported fields
}
CryptoRsa represents Rsa encryption struct
func NewCryptoRsa ¶
NewCryptoRsa create CryptoRsa struct
func (*CryptoRsa) DecryptWithBase64 ¶
DecryptWithBase64 decrypts a input data to base64 string