deepin-pw-check is a tool to verify the validity of the password.
You can also check the "Depends" provided in the debian/control file.
You can also check the "Build-Depends" provided in the debian/control file.
-
Make sure you have installed all dependencies.
-
Build:
$ cd deepin-pw-check
$ make
- Install:
$ sudo make install
The executable binary file could be found at /usr/lib/deepin-pw-check
after the installation is finished.
#include <deepin_pw_check.h>
#include <stdio.h>
int main() {
PW_ERROR_TYPE ret = deepin_pw_check("test", "123", LEVEL_STANDARD_CHECK, NULL);
if (ret != PW_NO_ERR) {
printf("deepin_pw_check err: %s\n", err_to_string(ret));
}
return 0;
}
You may find these channels useful if you encounter any other issues:
We encourage you to report issues and contribute changes
- Contribution guide for developers. (English)
- 开发者代码贡献指南 (中文)
deepin-pw-check is licensed under GPL-3.0-or-later.