cipheriv encrypt

This block is part of the crypto group and was last modified in core v10.4.28.

cipheriv encrypt v10.4.28

encrypting data

In pins 3
  • algorithm required
    value

    The algorithm to use

    Default aes-192-cbc

  • key required
    value

    The key used to encrypt (mostly scrypt output)

  • data required
    value

    The data to be encrypted

Out pins 4
  • success
    condition
  • encrypted
    value

    hex output

  • auth tag
    value
  • error
    value

    If an error occured, this pin is filled

Encrypts data with AES-CBC (PKCS7 padded) or AES-GCM using a FIXED IV (all-zero for CBC, legacy ASCII key-size string for GCM), so output is DETERMINISTIC: the same key and data always yield the same hex ciphertext. key must be hex. auth_tag is hex for GCM and nil for CBC. An unsupported algorithm or bad key sets success false with an error code and writes no output.

A typical wiring for cipheriv encrypt: value feeds the algorithm pin; value feeds the key pin; value feeds the data pin; the success out pin feeds branch.

Studio canvas example for the cipheriv encrypt block: typical wiring for cipheriv encrypt.

Version history

Introduced in v10.4.28.


Back to crypto Return to the main group to view all sub-groups Back to crypto Return to the group to view all blocks within this group