php - How do the "And" and "Or" keywords behave in ASP when comparing numbers? -
i need convert old authentication code asp php. in code being used encrypt / decrypt passwords stumbled upon lines this
char2 = mid(sbase_64_characters, (((byte2 , 240) \ 16) or (savebits1 * 16) , &hff) + 1, 1)
i wonder how translate kind of code, how deal (number , number) part.
unfortunately there isn't easy way convert without spending time. there neat tool can use here... you'll have read comments in converted code tell there assumptions -- such user functions aren't defined.. there you'll need write own or try figure out.
but, directly answer question, bitwise operations , can done such byte2 & 240
Comments
Post a Comment