Encoding and decoding data in MyChat Scripts Engine

Encoding and decoding data in MyChat Scripts Engine

Function to encode and decode strings, calculation of checksums and hashes.

 

CRC32

calculate CRC32 checksum from a text string;

DecodeBase64

convert a text string from the base64 string into plain text;

DecodeURL

decode a string from URL format to plain text;

DecodeUU

decode a string from UU format to plain text;

EncodeBase64

convert a text string to its base64 representation;

EncodeURL

encode a string to URL format;

EncodeUU

encode a string to UU fromat;

HMAC_MD5

obtain a string hash code based on a key using the HMAC method and MD5 algorithm;

HMAC_SHA1

obtain a string hash code based on a key using the HMAC method and SHA1 algorithm;

MD5

obtain the MD5 hash code of a text string;

SHA1

obtain the SHA1 hash code of a text string;

StrToHex

convert an initial binary string by bytes to its hexadecimal text representation.