| CPC G06F 21/46 (2013.01) | 13 Claims |

|
1. A weak password detection method based on deep learning, comprising:
acquiring a password character string to be detected;
processing, by applying a fully trained weak password detection model, the password character string to be detected to obtain a strong/weak password classification label of the password character string to be detected, wherein the fully trained weak password detection model is obtained by training a deep learning model with a password character string as an input and a strong/weak password classification label corresponding to the password character string as a supervision; and
marking the password character string to be detected as a weak password under a condition that the strong/weak password classification label of the password character string to be detected is a weak password label;
after acquiring the password character string to be detected, the method further comprises:
pre-processing the password character string to be detected, to obtain a password character string to be detected after pre-processing;
the pre-processing the password character string to be detected, to obtain the password character string to be detected after pre-processing further comprises:
performing one-hot encoding for the password character string to be detected, and converting each character in the password character string to be detected into a code with a length denoted as N;
combining the password character string to be detected into a matrix of M rows and N columns from top to bottom according to an order of each character in the password string to be detected, wherein M is the number of characters in the password character string to be detected;
normalizing the matrix of M rows and N columns to obtain a matrix of X rows and N columns, wherein X is a preset number of rows;
performing an image scaling process on the matrix of X rows and N columns to obtain a matrix of X rows and N columns with a preset image size; and
taking the matrix of X rows and N columns with the preset image size as the password character string to be detected after pre-processing.
|