/deepin-pw-check

Primary LanguageCGNU General Public License v2.0GPL-2.0

deepin-pw-check

deepin-pw-check is a tool to verify the validity of the password.

dependencies

You can also check the "Depends" provided in the debian/control file.

build dependencies

You can also check the "Build-Depends" provided in the debian/control file.

Installation

Build from source code

  1. Make sure you have installed all dependencies.

  2. Build:

$ cd deepin-pw-check
$ make
  1. Install:
$ sudo make install

The executable binary file could be found at /usr/lib/deepin-pw-check after the installation is finished.

Usage

#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;
}

Getting help

You may find these channels useful if you encounter any other issues:

Getting involved

We encourage you to report issues and contribute changes

License

deepin-pw-check is licensed under GPL-3.0-or-later.