UiPath Documentation
activities
latest
false

开发者活动

上次更新日期 2026年4月21日

解密文本

UiPath.Cryptography.Activities.DecryptText

描述

根据指定的密钥编码和算法解密字符串。

项目兼容性

Windows - 旧版 | Windows | 跨平台

Windows、跨平台配置

  • 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.
  • Text - The text that you want to decrypt. This field supports only strings and String variables.
  • Key - The key that you want to use to decrypt the specified text. This field supports only strings and String variables.
高级选项

选项

  • Key Encoding - The encoding used to interpret the key specified in the Key property. 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).
  • Continue On Error - Specifies if the automation should continue even if the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

输出

  • Decrypted Text - Reference to the decrypted text stored in a String variable for use in other activities.

Windows - 旧版配置

属性面板

常见

  • Continue On Error - Specifies if the automation should continue even if the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
    备注:

    如果“Try Catch 异常处理”中包含该活动且“出错时继续”属性的值为“True”,则系统在执行项目时不会捕获任何错误。

  • “显示名称”- 活动的显示名称。

输入

  • 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.

    备注:

    使用AES GCM算法时,解密输入必须以(连接的字节)格式提供: Salt (8bytes) + IV (12 bytes) + encryptedData (variable bytes) + Tag (16 bytes) 。该活动还使用以下参数:

    • PBKDF2 迭代计数为 10000
    • 生成的密钥为 256 位(32 字节)

    请注意,256 位生成的密钥与“密钥输入”选项不同。

  • 编码- 用于解释在密钥属性中指定的输入文本和密钥的编码。此字段仅支持Encoding变量。有关此变量类型的更多信息,请查看Microsoft 官方文档

  • Key - The key that you want to use to decrypt the specified file. This field supports only strings and String variables.

  • Key Secure String - The secure string used to decrypt the input string.

  • Text - The text that you want to decrypt. This field supports only strings and String variables.

其他

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

输出

  • Result - The decrypted text, stored in a String variable.
  • 描述
  • 项目兼容性
  • Windows、跨平台配置
  • Windows - 旧版配置

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新