View Single Post
  #8 (permalink)  
Old 06-01-2008, 06:56 PM
agraham's Avatar
agraham agraham is online now
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,902
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Try this
Code:
	Dim Secret(StrLength(Nickname)/2) As byte
	For i = 0 To ArrayLen(Secret()) - 1
		Secret(i) = Bit.HexToDec(SubString(Nickname, i*2, 2))
	Next
test1 doesn't show up in your listbox
test2 decodes as "w"
test3 decodes as "e"
test4 decodes as "Arjan"
test5 fails on bad data
Reply With Quote