Documentation
¶
Index ¶
- func Hashid(id, minLength int, salt string) string
- func HashidInt64(id int64, minLength int, salt string) string
- func Md5Byte(in []byte, b ...byte) string
- func Md5String(in string) string
- func NewECBDecrypter(self cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func Unhashid(hashedid string, minLength int, salt string) int
- func UnhashidInt64(hashedid string, minLength int, salt string) int64
- type AesCbc
- type AesEcb
- type DesCbc
- type DesEcb
- type Ecb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 PKCS5Padding ¶ added in v0.7.1
func PKCS5UnPadding ¶ added in v0.7.1
Types ¶
type AesCbc ¶ added in v0.7.1
Work well with cryptojs
func (*AesCbc) PKCS7Padding ¶ added in v0.7.2
func (*AesCbc) PKCS7UnPadding ¶ added in v0.7.2
Click to show internal directories.
Click to hide internal directories.