Documentation ¶
Index ¶
- Constants
- func AesDecrypt(org_data string) (string, error)
- func AesEncrypt(origData string) (string, error)
- func Decrypt(origData, algo string) (string, error)
- func Encrypt(origData, algo string) (string, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- type PasswordServer
Constants ¶
View Source
const (
ENCRYPT_ALGO_AES = "aes"
)
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
type PasswordServer ¶
type PasswordServer struct { IP string `json:"ip"` Port string `json:"port"` BakIP string `json:"bak_ip"` BakPort string `json:"bak_port"` }
func (*PasswordServer) GetDynamicPasswd ¶
func (this *PasswordServer) GetDynamicPasswd(dbName string, dbUserName string) (string, error)
Click to show internal directories.
Click to hide internal directories.