Hello agraham,
i built in a new sub in my app, which works like this:
StringToCrypt(passwordstring,saltstring)
salt(0) = Asc(SubString(saltstring,0,1))
salt(1) = Asc(SubString(saltstring,1,1))
...
Return str
I then just replaced my pre-crypted passwordstring
password = "somecryptstring"
against this:
password = StringToCrypt(cleartextpassword,mysalt)
This worked fine, but left me with an rejected/invalid password.By use of my beloved network sniffer
i found the cause.The returned string has 3 zero bytes at the right end.Zero is not printable, so you can't see that in the msgbox ( it is just not printed).
I though about how i can solve this and came to this here:
For i = 0 To ArrayLen(code())-1
If code(i) <> 0 Then
str = str & Chr(code(i))
End If
Next
I'm assuming, zero is not a valid content for a digit.
This works fine, but i'm asking me, why these 3 upper array fields have been created if their content equals zero...?
Is this something one could view and call as a bug in the lib...?
)
To use it you will have to become at least a little bit familiar with the .NET CLR and the classes it contains
I was afraid this needs to happen someday...
))
cheers
TWELVE