Password checking library