Use the Crypto commands to encode and decode ASCII text strings to and from Base64, as well as obtain CRC16, HMAC, and MD5 values for specified strings.
Compute the Base64 of a specified string.
Crypto.Base64Encode('value', [pad])
value : The value, enclosed within quotes, to encode to Base64.
pad : (Optional) Replace with true | false. If true, output is padded with '=' signs. The default is true.
print (Crypto.Base64Encode('Hello there'))
SGVsbG8gdGhlcmU=
print (Crypto.Base64Encode('Hello there',false))
SGVsbG8gdGhlcmU
Convert the Base64 of a specified value to a string.
Crypto.Base64Decode('value')
value : The value, enclosed within quotes, to decode from Base64.
print (Crypto.Base64Decode('SGVsbG8gdGhlcmU='))
Hello there
Compute the CRC16 of a specified value.
Crypto.CRC16Compute( 'value' )
value : The value, enclosed within quotes, used to generate the CRC16.
Crypto.CRC16Compute('Hello there')
Compute the message authentication code of specified data using a specified hashing algorithm and key.
Crypto.HMAC('algorithm', 'key', 'data')
algorithm : Replace with md5 | sha1 | sha256 | sha512 , enclosed within quotes.
key : The secret key to use for computing the message authentication code, enclosed within quotes.
data : The data for which to compute the message authentication code, enclosed within quotes.
Crypto.HMAC('md5','123456789','Hello there')
Compute the MD5 hash of a specified value.
Crypto.MD5Compute( 'value' )
value : The value for which to compute the MD5 hash.
print (Crypto.MD5Compute('Hello there'))
e8ea7a8d1e93e8764a84a0f3df4644de
Software and Firmware | Resources | QSC Self Help Portal | Q-SYS Help Feedback
Copyright © 2019 QSC, LLC. Click here for trademark and other legal notices. |