Documentation ¶
Index ¶
- Constants
- Variables
- func AesDePassword(guid, seed, password string) (string, error)
- func AesDecode(key string, encryptData string) (password string, err error)
- func AesEnPassword(guid, seed, password, cipher string) (string, error)
- func AesEncode(key string, rawData string) (string, error)
- func CreateRandomPassword() string
- func Md5Encode(rawData string) string
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
Constants ¶
View Source
const ( PASSWORD_LEN = 12 DEFALT_CIPHER = "CIPHER_A" )
Variables ¶
View Source
var CIPHER_MAP = map[string]string{
"CIPHER_A": "{cipher_a}",
}
Functions ¶
func AesDePassword ¶
func AesEnPassword ¶
func CreateRandomPassword ¶
func CreateRandomPassword() string
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.