Completed

Classic ASP Function - Hex encoded binary string to text

We need someone to code a classic asp function to convert a hex-encoded binary string to text.

There are two ways data will be passed into the function.

Example 1:

Call FunctionName("48656c6c6f20576f726c64", false)

This should convert "48656c6c6f20576f726c64" to the simple text "Hello World" (without the quotes). This involves converting the hex-encoded binary string only.

Example 2:

Call FunctionName("05000300010148656c6c6f20576f726c64", true)

This example is different because the first item passed to the function contains additional information.

If the second parameter passed to the function is true, then the first byte of the second parameter indicates how much of the data following it should be removed before processing. For example, if the first byte is 0x05, then the total portion of the first parameter is 6 bytes long (1 byte for length field plus the 5 bytes for the header portion). In this case, you should ignore the first 6 bytes of data.

Both of the following calls should return "Hello World" (again, without the quotes)

Call FunctionName("05000300010148656c6c6f20576f726c64", true)

Call FunctionName("48656c6c6f20576f726c64", false)

Obviously, the function should allow for different lengths of additional information, and not just the 5 used in this example.

Skills: ASP

See more: classic asp hex, classic asp string hex, hex string asp, classic asp binary string, asp hex string, asp hex, classic asp function, asp hex string function, asp binary string, classic asp hex string, convert binary classic asp, classic asp hex function, hex encoded binary, classic asp convert string binary, hex string asp classic, classic asp encoded code, string function asp classic, asp classic binary data hex string, binary hex classic asp, text binary classic asp, convert string classic asp, asp hex function, classic asp length string, asp binary function, binary text asp classic

About the Employer:
( 5 reviews ) Richmond Hill, Canada

Project ID: #1155690

Awarded to:

rosew100

Please check PM

$50 USD in 1 day
(3 Reviews)
3.6

2 freelancers are bidding on average $85 for this job

shmai

have a glance at Pm. regards,

$120 USD in 3 days
(169 Reviews)
6.8