Documentation ¶
Index ¶
- Variables
- func Bytes2str(b []byte) string
- func Cookies2Str(cookies []*http.Cookie) string
- func HmacSHA1(key string, data string) string
- func Md5(sile []byte) []byte
- func Md5Hex(sile []byte) string
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RandChar(size int) string
- func RandomBytes(n int64) []byte
- func RandomBytesReader(n int64) *strings.Reader
- func RangeRand(min, max int64) int64
- func SHA1(sile []byte) []byte
- func SHA1Hex(sile []byte) string
- func Str2Cookie(cookie string) (cookies []*http.Cookie)
- func Str2bytes(s string) []byte
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Cookies2Str ¶
func NewECBDecrypter ¶
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.
func NewECBEncrypter ¶
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
func PKCS7UnPadding ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.