- Visão geral
- Criptografia
- Banco de Dados
- Java
- Python
- WebAPI

Atividades do desenvolvedor
Decrypt File
UiPath.Cryptography.Activities.DecryptFile
Description
Descriptografa um arquivo com base em um algoritmo e uma codificação de chave especificada.
Compatibilidade do projeto
Windows - Legada | Windows | Multiplataforma
Windows, configuração multiplataforma
- File - The file to be decrypted, stored as an
IResourcevariable. Select the Plus
menu to switch to the Input Path input. - Algorithm - A drop-down menu which enables you to select the decryption algorithm you want to use. The following options are available: AES (Deprecated), AES GCM, DES (Deprecated), RC2 (Non-FIPS) (Deprecated), Rijndael (Non-FIPS) (Deprecated), and TripleDES.
- Key - The key that you want to use to decrypt the specified file. This field supports only strings and
Stringvariables.
Opções avançadas
Opções
- Key Encoding - The encoding used to interpret the key specified in the Key property. This field supports only
Encodingvariables. The following options are available: System default, Unicode, Unicode (Big-Endian), Unicode (UTF-32), Unicode (UTF-32 Big-Endian), US-ASCII, Western European (ISO), and Unicode (UTF-8). - Output file name and location - The path where you want to save the decrypted file. This field supports only strings and
Stringvariables.Observação:Relative folder paths are recommended to account for the different file structure between Windows and Linux machines when executing a project. A relative path follows the format
newFolder/newFileName.enc. The activity creates the target folder if it does not already exist. - Overwrite - If a file already exists, selecting
Onoverwrites it. If the toggle is set toOff, a new file is created. The default value isOff. - Continuar com erro - Especifica se a automação deve continuar mesmo quando a atividade gera um erro. Este campo só aceita valores booleanos (
True,False). O valor padrão éFalse. Como resultado, se o campo estiver em branco e um erro for lançado, a execução do projeto será interrompida. Se o valor for definido comoTrue, a execução do projeto continua independentemente de qualquer erro.
Dependendo do caminho de saída e se o arquivo já existir, podem ocorrer os seguintes resultados:
| Nome e local do arquivo de saída | Substituir | Resultado da saída |
|---|---|---|
| Desarmar | Desativado | A file with the original file name + the suffix "_Decrypted". If the file already exists, an error is thrown. |
| Desarmar | Ligado | A file with the original file name + the suffix "_Decrypted". If the file already exists, the file will be overwritten. |
| DEFINIR | Desativado | A file as per user preference. If the file already exists, an error is thrown. |
| DEFINIR | Ligado | A file as per user preference. If the file already exists, the file will be overwritten. |
Saída
- Decrypted File - Reference to the decrypted file retrieved by the activity for use in other activities.
Windows - Configuração legada
Painel de Propriedades
Comum
- Continuar com erro - Especifica se a automação deve continuar mesmo quando a atividade gera um erro. Este campo só aceita valores booleanos (
True,False). O valor padrão éFalse. Como resultado, se o campo estiver em branco e um erro for lançado, a execução do projeto será interrompida. Se o valor for definido comoTrue, a execução do projeto continua independentemente de qualquer erro.Observação:Se esta atividade estiver incluída na atividade Try Catch e o valor da propriedade ContinuarComErro for
True, nenhum erro será capturado quando o projeto for executado. - DisplayName - O nome de exibição da atividade.
Entrada
-
Algorithm - A drop-down menu which enables you to select the decryption algorithm you want to use. The following options are available: AES (Deprecated), AES GCM, DES (Deprecated), RC2 (Non-FIPS) (Deprecated), Rijndael (Non-FIPS) (Deprecated), and TripleDES.
Observação:When using the AES GCM algorithm, the decryption input must be provided in the format of (concatenated bytes):
Salt (8bytes) + IV (12 bytes) + encryptedData (variable bytes) + Tag (16 bytes). The activity also uses the following parameters:- A contagem de iterações de PBKDF2 é de 10.000
- A chave gerada tem 256 bits (32 bytes)
Note that the 256-bit generated key is not the same as the Key input option.
-
Decrypted Filename - The file name you want to use to save the decrypted file.
-
InputPath - The path to the file that you want to decrypt. This field supports only strings and
Stringvariables. -
Key - The key that you want to use to decrypt the specified file. This field supports only strings and
Stringvariables. -
Key Encoding - The encoding used to interpret the key specified in the Key property. This field supports only
Encodingvariables. -
Key Secure String - The secure string used to decrypt the input file.
-
Output file name and location - The path where you want to save the decrypted file. This field supports only strings and
Stringvariables. -
Overwrite - If a file already exists at the path specified in the OutputPath field, selecting this check box overwrites it. If unchecked, a new file is created. By default, this check box is cleared.
Diversos
- Privado - Se selecionado, os valores de variáveis e argumentos não são mais registrados no nível Verbose.