Skip to content

Crypto#

使用加密节点加密工作流中的数据。

¥Use the Crypto node to encrypt data in workflows.

操作#

¥Actions

¥Generate a random string

¥Hash a text or file in a specified format

¥Hmac a text or file in a specified format

¥Sign a string using a private key

节点参数#

¥Node parameters

This node can be used as an AI tool

This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.

节点参数取决于你选择的操作。

¥Node parameters depend on the action you select.

生成参数#

¥Generate parameters

  • 属性名称:输入要写入随机字符串的属性名称。

¥Property Name: Enter the name of the property to write the random string to.

  • 类型:选择用于生成字符串的编码类型。选择以下选项:

¥Type: Select the encoding type to use to generate the string. Choose from:

  • ASCII

  • BASE64

  • HEX

  • UUID

哈希参数#

¥Hash parameters

  • 类型:选择要使用的哈希类型。选择以下选项:

¥Type: Select the hash type to use. Choose from:

  • MD5

  • SHA256

  • SHA3-256

  • SHA3-384

  • SHA3-512

  • SHA385

  • SHA512

  • 二进制文件:如果要哈希的数据来自二进制文件,请启用此参数。

¥Binary File: Turn this parameter on if the data you want to hash is from a binary file.

  • 值:如果关闭二进制文件,请输入要哈希的值。

    ¥Value: If you turn off Binary File, enter the value you want to hash.

  • 二进制属性名称:如果启用二进制文件,请输入包含要哈希数据的二进制属性的名称。

    ¥Binary Property Name: If you turn on Binary File, enter the name of the binary property that contains the data you want to hash.

  • 属性名称:输入要写入哈希值的属性名称。

¥Property Name: Enter the name of the property you want to write the hash to.

  • 编码:选择要使用的编码类型。选择以下选项:

¥Encoding: Select the encoding type to use. Choose from:

  • BASE64

  • HEX

HMAC 参数#

¥Hmac parameters

  • 二进制文件:如果要加密的数据来自二进制文件,请启用此参数。

¥Binary File: Turn this parameter on if the data you want to encrypt is from a binary file.

  • 值:如果关闭二进制文件,请输入要加密的值。

    ¥Value: If you turn off Binary File, enter the value you want to encrypt.

  • 二进制属性名称:如果启用二进制文件,请输入包含要加密数据的二进制属性的名称。

    ¥Binary Property Name: If you turn on Binary File, enter the name of the binary property that contains the data you want to encrypt.

  • 类型:选择要使用的加密类型。选择以下选项:

¥Type: Select the encryption type to use. Choose from:

  • MD5

  • SHA256

  • SHA3-256

  • SHA3-384

  • SHA3-512

  • SHA385

  • SHA512

  • 属性名称:输入要写入哈希值的属性名称。

¥Property Name: Enter the name of the property you want to write the hash to.

  • 密钥:输入用于解码的密钥。

¥Secret: Enter the secret or secret key used for decoding.

  • 编码:选择要使用的编码类型。选择以下选项:

¥Encoding: Select the encoding type to use. Choose from:

  • BASE64

  • HEX

签名参数#

¥Sign parameters

  • 值:输入要签名的值。

¥Value: Enter the value you want to sign.

  • 属性名称:输入要写入有符号值的属性名称。

¥Property Name: Enter the name of the property you want to write the signed value to.

  • 算法名称或 ID:从列表中选择算法名称,或使用 expression 指定 ID。

¥Algorithm Name or ID: Choose an algorithm name from the list or specify an ID using an expression.

  • 编码:选择要使用的编码类型。选择以下选项:

¥Encoding: Select the encoding type to use. Choose from:

  • BASE64

  • HEX

  • 私钥:输入一个私钥,用于对字符串进行签名。

¥Private Key: Enter a private key to use when signing the string.

模板和示例#

¥Templates and examples

Template widget placeholder.