Documentation
¶
Index ¶
- func DecryptDES(key, src []byte) []byte
- func EncryptDES(key, src []byte) []byte
- func Hashid(id, minLength int, salt string) string
- func HashidInt64(id int64, minLength int, salt string) string
- func Md5Byte(in []byte) string
- func Md5String(in string) string
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func Unhashid(hashedid string, minLength int, salt string) int
- func UnhashidInt64(hashedid string, minLength int, salt string) int64
- type AES
- type ECB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptDES ¶
func EncryptDES ¶
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.
Types ¶
Click to show internal directories.
Click to hide internal directories.