Utility Functions

Functions:

function B642Plain(input)

Converts a string in Base64 encoding.

Parameter list:

Return values:

Returns a string containing the Base64 representation of the input value.

function Plain2B64(input)

Converts a Base64 encoded text in it's original representation.

Parameter list:

Return values:

Returns a string containing the decoded version of the input value.

function URL2Plain(input)

Decodes an URL encoded text.

Parameter list:

Return values:

Returns a string containing the decoded version of the input value.

function Plain2URL(input)

Decodes a text from URL encoded.

Parameter list:

Return values:

Returns a string containing the encoded version of the input value.

function Plain2URLAll(input)

Same as Plain2URL but it encodes all characters from the input text.

Parameter list:

Return values:

Returns a string containing the encoded version of the input value.

function Plain2CStyle(input)

Encodes a string value into it's representation as a C string.

Parameter list:

Return values:

Returns a string containing the encoded version of the input value. The function will convert each characted to it's ASCII value in hexadecimal and puts "\x" in front.

function CStyle2Plain(input)

Decodes a string written in C string representation.

Parameter list:

Return values:

Returns a string containing the decoded version of the input value.

function Plain2MD5(input)

Returns the MD5 hash of the input string.

Parameter list:

Return values:

Returns a string value representing the MD5 hash of the input.

function Plain2MD4(input)

Returns the MD4 hash of the input string.

Parameter list:

Return values:

Returns a string value representing the MD4 hash of the input.

function Plain2SHA1(input)

Returns the SHA1 hash of the input string.

Parameter list:

Return values:

Returns a string value representing the SHA1 hash of the input.

function Plain2HTML(input)

Encodes special characters from input in HTML encoding.

Parameter list:

Return values:

Returns a string value representing the encoded version of the input.

function HTML2Plain(input)

Decodes a string from HTML encoding.

Parameter list:

Return values:

Returns a string value representing the decoded version of the input.

function Random(Range)

Generates a random integer from 0 to the value specified.

Parameter list:

Return values:

Returns an integer value with the random number.