The invention discloses a dynamic double-key algorithm. The algorithm comprises the following steps: step A, establishing a dynamic encryption algorithm based on a clock principle and an encryption element seed array; step B, performing initialization of a system network; step C, performing a confidentiality and synchronization process of a dynamic key, key extraction and generation, and encryption and decryption of streaming media data; and step D, receiving a dynamic password input by a user by a client, generating identifier information and a first dynamic password of a device, and encrypting the first dynamic password by adopting a one-way hash algorithm. According to the dynamic double-key algorithm provided by the invention, the dynamic encryption algorithm based on the clock principle is adopted, so that the keys of each time are different; meanwhile, a set of dynamic algorithm auxiliary keys are generated every time, and the auxiliary keys and keys are processed by encryption to further generate a string of keys with 18-bit numbers, and two dynamic keys are sent to the client to be opened; and since the keys can only be used once, after the keys are intercepted by a hacker,the keys are written into equipment, and the equipment has no reaction, so that the use safety of a Bluetooth lock circuit is effectively guaranteed.