I have a database entry the is in a octal string. So it takes a text string and converts it into a hex.

Can someone post a code snipit to convert "test this 123" to hex and back?

Thanks