The invention provides a one-time pad replaceable
encryption algorithm, component and equipment based on a
codebook, and the method comprises the steps: initializing a secret
key space, generating a secret key meeting a preset condition through employing a universal safety component in combination with a multi-thread mechanism, and generating a secret key
library; storing each group of generated secret key libraries in a secret
key space in an encrypted file mode, and establishing an
independent data channel for transmitting secret key
library files; creating a secret key rotation mechanism in the
encryption and decryption process, and randomly distributing a secret key in the secret key
library in the
encryption and decryption process; and scrambling the encryption process of the
plaintext by adopting a random key. According to the invention, the
software encryption
algorithm with a single key can be improved, the defects of single
algorithm, tedious key replacement and unsafe
key storage are overcome, and the advantages of convenient upgrading, close combination with a program and high efficiency of the
software encryption algorithm are exerted.