string input = "Hello World!"; char[] values = input.ToCharArray(); foreach (char letter in values) { // Get the integral value of the character. int value = Convert.ToInt32(letter); // Convert the decimal value to a hexadecimal valu
private static function toHex(bytes:ByteArray):String{ var pos:int =bytes.position; bytes.position=0; var result:String=""; while(bytes.bytesAvailable>=8){ result+=toHexNum(bytes.readUnsignedByte()) +""+toHexNum(bytes.readUnsignedBy