Group Crypto
Business process blocks added by the Crypto module.

Description of blocks and variables

AES encryption and decryption

Blocks:
Variables:
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
"text" (string) - line for encryption / decryption
"key" (string) - key for encryption / decryption, length: 16 (128-bit encryption) or 32 (256-bit encryption) characters
"as_hex" and "as_base64" (boolean) - define the data format: Base64 or HEX
"result" (string) - encryption / desh result
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.
Could not load image

RSA Encryption and Decryption

Blocks:
Variables:
Crypto: Encrypt RSA - encrypts using the RSA algorithm
Crypto: Decrypt RSA - decrypts using the RSA algorithm
"text" (string) - string for encryption / decryption, base64 format
"key" (text) - key for encryption / decryption, length: 117 (up to 1024 data bits), 245 (up to 2048 data bits) or 501 (up to 4096 data bits) characters
"result" (string) - result, base64 format
"success" (boolean) - success or failure
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).
Could not load image

Creation of an electronic signature RSA

Blocks:
Variables:
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
"private_key "(text) - RSA private key
"md5_hash", "sha1_hash", "sha256_hash", "sha512_hash" (string) - hash of the corresponding format
"signature" (text) - electronic signature
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.
Could not load image

RSA Electronic Signature Verification

Blocks:
Variables:
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
"signature" (text) - electronic signature,
"public_key" (text) - public key,
"md5_hash", "sha1_hash", "sha256_hash", "sha512_hash" (string) - hash of the corresponding format,
"result" (boolean) - success or failure.
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

Blocks:
Variables:
Crypto: Generate RSA key
"key_size" (special type of variable) - key size: 1024, 2048, 3072, 4096 or 8192bit
"private_key" (text) - public key
"public_key" (text) - private 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.