View Single Post
  #15 (permalink)  
Old 06-02-2008, 10:46 AM
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

The problem is with DecToHex, it doesn't always return two characters so the data is being truncated. You need something like this.

Code:
For i = 0 To ArrayLen(secret())-1
  If secret(i)< 16 Then s = s & "0"
  s = s & bit.DecToHex(secret(i))
Next
EDIT:- Typo in the code above corrected, was 15 now 16

Last edited by agraham : 06-02-2008 at 01:55 PM.
Reply With Quote