Group Crypto

Business process blocks added by the Crypto module.

Description of blocks and variables

AES encryption and decryption

Crypto: Encrypt AES-CBC - AES encryption, CBC mode

Crypto: Decrypt AES-CBC - decrypts using AES algorithm, CBC mode

Crypto: Encrypt AES-ECB - encrypts using the AES algorithm, ECB mode

Crypto: Decrypt AES- ECB - decrypts using the AES algorithm, ECB mode

At the input, the blocks receive a string and a key for encryption/decryption. For 128-bit encryption, you need to enter a key of 16 characters, for 256-bit - of 32.

The result of encryption or data for decryption can be presented in two formats - Base64 or HEX, two corresponding input variables are responsible for this.

RSA Encryption and Decryption

Crypto: Encrypt RSA - encrypts using the RSA algorithm

Crypto: Decrypt RSA - decrypts using the RSA algorithm

At the input, the blocks receive a string for encryption/decryption in base64 format, as well as a private or public key. The maximum data size for encryption depends on the key size: 1024 bits - 117 characters, 2048 bits - 245 characters, 4096 bits - 501 characters.

At the output, the blocks give the result of encryption/decryption in base64 format and pass in "success" the value "true" (if the operation is successful) or "false" (if not).

Creation of an electronic signature RSA

Crypto: RSA Sign (MD5) - creates an electronic signature, for the MD5 hash format

Crypto: RSA Sign (SHA1) - creates an electronic signature, for the SHA1 hash format

Crypto: RSA Sign (SHA256) - creates an electronic signature, for the SHA256 hash format

Crypto: RSA Sign (SHA512) - creates an electronic signature, for the SHA512 hash format

The blocks receive a hash of the appropriate format and an RSA private key as input. The key length is determined automatically.

The output is a signature "signature" in text format.

RSA Electronic Signature Verification

Crypto: RSA Sign (SHA1) - verifies the electronic signature, for the SHA1 hash format

Crypto: RSA Sign (SHA256) - verifies the electronic signature, for the SHA256 hash format

Crypto: RSA Sign (SHA512) - verifies the electronic signature, for the SHA512 hash format

Blocks accept a signature, a hash of a certain format, and a public key at the input; at the output, they return to "result" the value "true" (if the signature is confirmed) or "false" (if not confirmed).

Generating RSA Keys

Crypto: Generate RSA key

The input block accepts the key size. At the exit, it gives the private and public keys. To generate keys, the capabilities of the OpenSSL library are used.

Last updated