The invention discloses an
image steganography method and device based on a pseudo-random generator. The method comprises the following steps: acquiring a carrier image, converting the carrier image into a YCrCb
color space and extracting a brightness channel to obtain a brightness matrix, and performing 8 * 8 partitioning on the brightness matrix to generate a pixel
block matrix; generating a pseudo-
random sequence based on the date vector and the
task number through a pseudo-random generator, and determining an embedded block sequence
list; embedded blocks in the pixel
block matrix are determined according to the embedded block sequence
list, 2D-DCT conversion and quantization are carried out on the embedded blocks, then Z-shaped scanning is carried out, a 1 * N
frequency domain coefficient vector matrix is obtained, the first vector of the
frequency domain coefficient vector matrix is a DC coefficient, and the rest are AC coefficients; sequentially splicing the data to be steganographic into an embedded information bit string, and embedding the embedded information bit string into the
AC coefficient of the
frequency domain coefficient vector; and performing inverse Z-shaped scanning,
inverse quantization and 2D-IDCT transformation on the frequency domain coefficient vector matrix of the embedded data to reconstruct a secret-carrying image. According to the scheme, the security of
image steganography can be improved.