Create Rijndael Cipher
Verb: cipherRijndael
Available from: <Standard>
Creates a Rijndael-type encryption according to a specified key, initialization vector, and encryption mode.
Syntax
cipherRijndael --key(String) --iv(String) --mode(Nullable<CipherMode>) (Boolean)=success (Cipher)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--key | Key | Required | Text | Key used in the creation of Rijndael encryption.
The informed key must be in the Rijndael encryption key standard, with keys having the size of: |
--iv | Initialization Vector | Required | Text | Set of random characters used alongside with Key to create the cipher.
The initialization vector must contain exactly 16 characters, that is, 16 bytes. |
--mode | Mode | Required | CipherMode | Encryption mode used in its creation:
|
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
success | Success | Boolean | Returns "True", if the encryption is created successfully, or "False", otherwise. |
value | Rijndael Cipher | Cipher | Returns a variable containing the created Rijndael encryption. |
Example
The Create Rijndael Cipher command is used to create encryption of the Rijndael type. At the end, it is informed whether the encryption was created successfully.
defVar --name cipher --type Cipher
defVar --name success --type Boolean
//Creates Rijndael encryption with the key="qasnksjkxl,smjdisuidjhpç" and iv="hjskl,mcnvhjshdg",in "CBC" encryption mode.
cipherRijndael --key "qasnksjkxl,smjdisuidjhpç" --iv "hjskl,mcnvhjshdg" --mode "CBC" success=success cipher=value
logMessage --message "${success}" --type "Info"
// Execution returns the following output:
// True