The present invention provides a pseudo-random code generator based on a generalized information domain, which includes an initial address information (IV) generation module, an IV normalization module, a key generation algorithm (m) module, a constrained processing module, and an encryption module connected in sequence. A key length judging module, the m module is also connected with the activity background generation module at the same time, and the activity background generation module is mainly composed of a physical reconstruction module and a logic reconstruction module. The present invention breaks through the binary limitation of traditional cryptography, introduces the concept of generalized information domain, expands it into a triple structure, realizes the transfer of key security issues to generalized information domain security issues, improves the strength of resistance to cryptanalysis, and further improves information security. confidentiality. The invention can quickly generate very long pseudo-random codes, can increase the size of the key space when used as a key, and can provide specific keys according to different purposes. The generated pseudo-random code has initial value sensitivity and good randomness.