Documentation
¶
Index ¶
- Constants
- func Ase256(plaintext string, key string, iv string, blockSize int) string
- func Ase256Decode(cipherText string, encKey string, iv string) (decryptedString string)
- func GenRandCode(inviteCodeLen int, targetKind int) string
- func Hash(str string) (hash string)
- func MD5(data []byte) string
- func PKCS5Padding(ciphertext []byte, blockSize int, after int) []byte
- func RandNum(start, end int) int
- func RsaDecrypt(ciphertext []byte, privateKey string) ([]byte, error)
- func RsaEncrypt(origData []byte, publicKey string) ([]byte, error)
Constants ¶
View Source
const ( RAND_NUM = 0 // 纯数字 RAND_LOWER = 1 // 小写字母 RAND_UPPER = 2 // 大写字母 RAND_ALL = 3 // 数字、大小写字母 )
Variables ¶
This section is empty.
Functions ¶
func Ase256Decode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.