B
Brad Markisohn
I've been brute forcing a conversion of binary data in a byte array into
ASCII encrypted hex (2 chars = 1 byte). Is there a formatting scheme that
will allow me to do this? Here's a snipet of the code I've been using:
For Count = 0 To myBuffer.Ubound(0)
If Len(Hex(myBuffer(Count))) < 2 Then
ByteValue = "0" & Hex(myBuffer(Count))
Else
ByteValue = Hex(ReadBuffer(Count))
End If
DisplayString.Append(ByteValue)
Next Count
ASCII encrypted hex (2 chars = 1 byte). Is there a formatting scheme that
will allow me to do this? Here's a snipet of the code I've been using:
For Count = 0 To myBuffer.Ubound(0)
If Len(Hex(myBuffer(Count))) < 2 Then
ByteValue = "0" & Hex(myBuffer(Count))
Else
ByteValue = Hex(ReadBuffer(Count))
End If
DisplayString.Append(ByteValue)
Next Count