共用方式為


DecryptFile@1 - 將檔案解密 (OpenSSL) v1 工作

使用 OpenSSL 解密檔案。

使用 OpenSSL 進行檔案解密的精簡公用程式工作。

Syntax

# Decrypt file (OpenSSL) v1
# Decrypt a file using OpenSSL.
- task: DecryptFile@1
  inputs:
    cipher: 'des3' # string. Required. Cypher. Default: des3.
    inFile: # string. Required. Encrypted file. 
    passphrase: # string. Required. Passphrase. 
    #outFile: # string. Decrypted file path. 
  # Advanced
    #workingDirectory: # string. Working directory.
# Decrypt File (OpenSSL) v1
# A thin utility task for file decryption using OpenSSL.
- task: DecryptFile@1
  inputs:
    cipher: 'des3' # string. Required. Cypher. Default: des3.
    inFile: # string. Required. Encrypted file. 
    passphrase: # string. Required. Passphrase. 
    #outFile: # string. Decrypted file path. 
  # Advanced
    #workingDirectory: # string. Working directory.
# YAML Syntax is not supported in TFS 2018.
# Use the classic designer to add and configure tasks.
# See the following Inputs section for details on the inputs that this task supports.

輸入

cipher - 暗號
string. 必要。 預設值:des3

要使用的加密複雜密碼。 如需可能值的完整清單,請參閱 cypher 套件名稱


inFile - 加密的檔案
string. 必要。

要解密的檔案相對路徑。


passphrase - 密碼
string. 必要。

要用於解密的複雜密碼。 使用變數來加密複雜密碼。


outFile - 解密的檔案路徑
string.

解密檔案的選擇性檔案名。 預設為副檔名為 「.out」 的加密檔案。


workingDirectory - 工作目錄
輸入別名: cwdstring.

選擇性。 解密的工作目錄。 預設為存放庫的根目錄。


工作控制選項

除了工作輸入之外,所有工作都有控制選項。 如需詳細資訊,請參閱 控制項選項和一般工作屬性

輸出變數

無。

備註

使用此工作來解密使用 OpenSSL 的檔案。

規格需求

需求 描述
管線類型 YAML、傳統組建、傳統版本
執行于 Agent、DeploymentGroup
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 此工作會使用下列 命令限制來執行:受限制
Settable 變數 此工作有權 設定下列變數:已停用設定變數
代理程式版本 2.182.1 或更新版本
工作類別 公用程式
需求 描述
管線類型 YAML、傳統組建、傳統版本
執行于 Agent、DeploymentGroup
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 任意
Settable 變數 任意
代理程式版本 所有支援的代理程式版本。
工作類別 公用程式