crypto

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoUtil

type CryptoUtil struct {
}

func (*CryptoUtil) DecryptAes

func (_aes *CryptoUtil) DecryptAes(src []byte, key []byte) (string, error)

func (*CryptoUtil) DecryptAesBase64

func (_aes *CryptoUtil) DecryptAesBase64(src string, key []byte) (string, error)

func (*CryptoUtil) DecryptAesHex

func (_aes *CryptoUtil) DecryptAesHex(src string, key []byte) (string, error)

func (*CryptoUtil) EncryptAes

func (_aes *CryptoUtil) EncryptAes(src []byte, key []byte) ([]byte, error)

ECB

func (*CryptoUtil) EncryptAesBase64

func (_aes *CryptoUtil) EncryptAesBase64(src []byte, key []byte) (string, error)

func (*CryptoUtil) EncryptAesBase64Str

func (_aes *CryptoUtil) EncryptAesBase64Str(src string, key []byte) (string, error)

func (*CryptoUtil) EncryptAesHex

func (_aes *CryptoUtil) EncryptAesHex(src []byte, key []byte) (string, error)

func (*CryptoUtil) EncryptAesHexStr

func (_aes *CryptoUtil) EncryptAesHexStr(src string, key []byte) (string, error)

func (*CryptoUtil) EncryptAesStr

func (_aes *CryptoUtil) EncryptAesStr(src string, key []byte) ([]byte, error)

func (*CryptoUtil) Md5Hex

func (c *CryptoUtil) Md5Hex(bytes []byte) string

func (*CryptoUtil) Md5HexStr

func (c *CryptoUtil) Md5HexStr(str string) string

func (*CryptoUtil) Sha1Hex

func (c *CryptoUtil) Sha1Hex(bytes []byte) string

func (*CryptoUtil) Sha1HexStr

func (c *CryptoUtil) Sha1HexStr(str string) string

func (*CryptoUtil) Sha256Hex

func (c *CryptoUtil) Sha256Hex(bytes []byte) string

func (*CryptoUtil) Sha256HexStr

func (c *CryptoUtil) Sha256HexStr(str string) string

func (*CryptoUtil) Sha512Hex

func (c *CryptoUtil) Sha512Hex(bytes []byte) string

func (*CryptoUtil) Sha512HexStr

func (c *CryptoUtil) Sha512HexStr(str string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL