SitesLinksOttawaLifePhotosTravelToolsJournalBlog
See More Stuff

Java Eclipse Debugger Output to ASCII Hex Array


When looking at a byte array in Eclipse, there is no easy way to see it as a hex string.
You can use [ Window > Preferences > Debug > Primitive Display Options > Display hexadecimal values (byte, short, char, int, long) ]
But that gives:
sharedSecret
	[0]	-84 [0xac]
	[5]	94 [0x5e]
	[14]	13 [0xd]
	[13]	102 [0x66]
When you really want: AC 5E 0D 66