Create AES Encryption

Verb: cipherAes

Available from: <Standard>

Creates an AES (Advanced Encryption Standard) encryption using a cryptographic key and vector.

Syntax

cipherAes --key(String) --iv(String) (Boolean)=success (Cipher)=value

Inputs

Script Designer Required AcceptedTypes Description
--key Key Required Text Key used in AES encryption.
The key entered must be in the AES encryption standard, with keys of the following sizes being available:
  • 16 characters, corresponding to a 128-bit key;
  • 24 characters, corresponding to a 192-bit key;
  • 32 characters, corresponding to a 256-bit key.
  • --iv Initialization vector Required Text Initialization vector used for encryption, complementing the Key.
    It should always be 16 characters long.

    Outputs

    Script Designer AcceptedTypes Description
    success Success Boolean Returns "True" if the encryption is created correctly, and "False" if otherwise.
    value AES Cipher Cipher Returns a "Cipher" variable containing the created AES encryption.

    Example

    Creates an AES encryption, informing whether the encryption was created successfully.

    defVar --name success --type Boolean
    defVar --name aesCipher --type Cipher
    // Create AES encryption with key = "as@.@#XDilfontyl" and iv = "qwerasdzxc.kjsnv"
    cipherAes --key "as@.@#XDilfontyl" --iv "qwerasdzxc.kjsnv" success=success aesCipher=value
    logMessage --message "${success}" --type "Info"
    // Execution returns the following output:
    // True
    

    See Also

  • Create Rijndael Cipher
  • Create RSA Cipher
  • Decrypt
  • Encrypt