Ok, that makes sense. I think you could do it simply by making two arrays, and comparing their contents. You might want more bytes if you need it more secure. You could do it this way:
Code:
passkeyed var byte[6] 'entered (keyed) password
passcode var byte[6] 'stored pass word
for n = 0 to 5
if passkeyed[n] != passcode[n] then failure 'if passkeyed[n] does not equal passcode[n]
next n
'if passkeyed passes, your program will get here
end
failure: 'failure subroutine here
'get here only if you failed password entry
return
Last edited by ScaleRobotics; - 9th May 2009 at 02:33.
http://www.scalerobotics.com
Bookmarks