Documentation
¶
Index ¶
- func ClearQrCode()
- func DesEncrypt(key, plainText string) (string, error)
- func GenerateCsrfValue(n string) string
- func GenerateRandomString(n int) string
- func PKCS7Padding(plainText []byte, blockSize int) []byte
- func QrCodeDecode(pngBytes []byte) (string, error)
- func QrCodePrint(content string) error
- func RsaEncrypt(publicKey string, data string) (string, error)
- func SendEmail(host string, username string, password string, to string, subject string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DesEncrypt ¶
Encrypt encrypts the plaintext using DES algorithm with the given key
func GenerateCsrfValue ¶ added in v1.3.1
GenerateCsrfValue 生成 Csrf-Value
func GenerateRandomString ¶ added in v1.3.1
func PKCS7Padding ¶
PKCS7Padding pads the plaintext to be a multiple of the block size
func QrCodeDecode ¶ added in v1.3.1
QrCodeDecode 解码二维码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.