fix: remove unused DeCryptPassword function

This commit is contained in:
2026-04-19 18:13:55 +08:00
parent c0a293cc8d
commit 84811ec52c
-12
View File
@@ -242,18 +242,6 @@ func Pbkdf2(password string) ([]byte, error) {
return dk, nil
}
func DeCryptPassword(cryptPassword string, key []byte) (string, error) {
origData, err := base64.StdEncoding.DecodeString(cryptPassword)
if err != nil {
return "", err
}
decryptedCBC, err := AesDecryptCBC(origData, key)
if err != nil {
return "", err
}
return string(decryptedCBC), nil
}
func RunCommand(client *ssh.Client, command string) (stdout string, err error) {
session, err := client.NewSession()
if err != nil {