by WEM Office | Jul 7, 2021 | Functions
The AesDecrypt() function decrypts an encrypted Base64-encoded Ciphertext based on the given parameters, using the AES-256-CBC decryption method (wikipedia), with PKCS7 padding. Syntax AesDecrypt(encryptedValue, key, vector) AesDecrypt(encryptedValue, key, vector,...
by WEM Office | Jul 7, 2021 | Functions
The AesEncrypt() function generates a Base64-encoded Ciphertext based on the given parameters, using the AES-256-CBC encryption method (wikipedia), with PKCS7 padding. Syntax AesEncrypt(plaintext, key, vector) AesEncrypt(plaintext, key, vector, BOM) Returns A new text...
by WEM Office | Aug 20, 2020 | Functions
ToLocal converts a UTC date (+time) value to a local datetime value for the given Timezone. This function returns unknowndatetime if the timezone is not recognized. Syntax ToLocal(datetime, Timezone) Function call Result ToLocal(date(2020,8,16,15,37),...
by WEM Office | Aug 20, 2020 | Functions
ToUTC converts a local date (+time) value with the given Timezone to a UTC datetime. This function returns unknowndatetime if the timezone is not recognized. Syntax ToUTC(datetime, Timezone) Function call Expected result ToUTC(date(2020,8,16,15,37),...
by WEM Office | Jul 1, 2020 | Functions
The Abs() function returns the absolute value of a specified number. Syntax Abs(number) Returns The absolute value of number, such that the resulting value is the positive equivalent of number. Parameters number a numeric value. Examples Abs(0) /* 0 */ Abs(5) /* 5 */...
by Douwe Roelofsen | Apr 1, 2019 | Functions
The PortalId() function gets the ID of the current portal. Syntax PortalId() Returns A number that is the ID of the current portal.