add PasswordCompat\binary\check() in the library

As discussed on IRC.

Of course, this imply that appliction which wants to use this test always have to include the library, even with php 5.5+