tools

package
v0.0.0-...-24b472f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(serialNumber string) string

GeneratePassword 生成密码

func GetRandomString

func GetRandomString(length uint) string

GetRandomString get random string

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func TripleDesECBDecrypt

func TripleDesECBDecrypt(crypted, key []byte) ([]byte, error)

func TripleDesECBEncrypt

func TripleDesECBEncrypt(origData, key []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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