ipassword

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENCRYPT_ALGO_AES = "aes"
)

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(org_data string) (string, error)

func AesEncrypt

func AesEncrypt(origData string) (string, error)

func Decrypt

func Decrypt(origData, algo string) (string, error)

func Encrypt

func Encrypt(origData, algo string) (string, error)

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL