common

package
v0.0.0-...-c9c11d0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key, iv []byte) ([]byte, error)

Aes解密

func AesEncrypt

func AesEncrypt(plaintext, key, iv []byte) ([]byte, error)

Aes加密

func DeepCopy

func DeepCopy(dst, src interface{}) error

深拷贝一个对象

func GetFolderFiles

func GetFolderFiles(folder string, allowFileType string) ([]string, error)

获取目录下所有文件,返回一个切片

func GetGuid

func GetGuid() string

Guid方法

func GetMd5String

func GetMd5String(s string) string

md5方法

func PKCS7Padding

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

func PKCS7Unpadding

func PKCS7Unpadding(origData []byte) []byte

func SubString

func SubString(s string, pos, length int) string

字串截取

Types

This section is empty.

Jump to

Keyboard shortcuts

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