Fixed ::check(), added more options to generateSalt()

Need someone to test PHP5 on Windows