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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -