SurveyGizmo's CustomScript Action now supports the LUA programming language.
Legacy Custom Scripting Language Deprecation Plans
New accounts (created after October 29, 2018) will only have the option to use Lua in scripts.
As of October 29, 2018 Custom Scripting Actions will default to Lua as the scripting type in the Custom Scripting Action for accounts created before this date. You will be able to switch to the Legacy Custom Scripting; though we highly encourage using Lua.
In the long term, Legacy Custom Scripting Actions will be switched to read-only. Read-only scripts will continue to function; you will just be prevented from editing. The exact date on this is to be determined; we will send notifications well ahead of time.
While SurveyGizmo is one of the most flexible survey tools around, we get requests for customizations that are not available out of the box. This is where JavaScript and Custom Scripting can save the day. If you have scripting chops you can use the JavaScript action or the Custom Scripting action to achieve the survey of your dreams.
the string key/password used for encryption/decryption
true
ciphertype
a string calling the cipher algorithm used by encryption and decryption. See the below table for more info or retrieve the list of supported hashing algorithms using luacipher().
true
iv
the string initialization vector for encryption/decryption. It has to be of correct size (usually block size), otherwise the functions return an error.
true
The below table covers all available cipher types and their associated initialization vector size. You can also run luacipher() to see the latest list of cipher types.
CipherType Possible Values
IV
aes-128-cbc
16
aes-128-cbc-hmac-sha1
16
aes-128-cbc-hmac-sha256
16
aes-128-cfb
16
aes-128-cfb1
16
aes-128-cfb8
16
aes-128-ctr
16
aes-128-ofb
16
aes-128-xts
16
aes-192-cbc
16
aes-192-cfb
16
aes-192-cfb1
16
aes-192-cfb8
16
aes-192-ctr
16
aes-192-ofb
16
aes-256-cbc
16
aes-256-cbc-hmac-sha1
16
aes-256-cbc-hmac-sha256
16
aes-256-cfb
16
aes-256-cfb1
16
aes-256-cfb8
16
aes-256-ctr
16
aes-256-ofb
16
aes-256-xts
16
aes128
16
aes192
16
aes256
16
bf
8
bf-cbc
8
bf-cfb
8
bf-ofb
8
blowfish
8
camellia-128-cbc
16
camellia-128-cfb
16
camellia-128-cfb1
16
camellia-128-cfb8
16
camellia-128-ofb
16
camellia-192-cbc
16
camellia-192-cfb
16
camellia-192-cfb1
16
camellia-192-cfb8
16
camellia-192-ofb
16
camellia-256-cbc
16
camellia-256-cfb
16
camellia-256-cfb1
16
camellia-256-cfb8
16
camellia-256-ofb
16
camellia128
16
camellia192
16
camellia256
16
cast
8
cast-cbc
8
cast5-cbc
8
cast5-cfb
8
cast5-ofb
8
idea
8
idea-cbc
8
idea-cfb
8
idea-ofb
8
rc5
8
rc5-cbc
8
rc5-cfb
8
rc5-ofb
8
seed
16
seed-cbc
16
seed-cfb
16
seed-ofb
16
Example
In the below example we decrypt an encrypted string.