The invention discloses a
software and host
authorization method and
system based on an intelligent
password key, and belongs to the technical field of
software security. The method comprises the following steps: a
fingerprint information generation stage: calling a
system interface to collect host hardware information, combining the host hardware information, generating first
fingerprint information by using a Hash
algorithm, encrypting the first
fingerprint information by using an SM4
algorithm to obtain a fingerprint
ciphertext, and storing the fingerprint
ciphertext in a memory; in the intelligent
password key
verification stage, whether the Ukey is inserted or not is judged, the inserted Ukey is scanned, and a Ukey
insertion event is monitored at the same time; and then verifying the legality of the Ukey, if the Ukey is legal, reading the state of the Ukey, and checking whether the Ukey is bound, if the Ukey is not bound, executing a Ukey
binding process, and if the Ukey is bound, executing a Ukey
authentication process. According to the method, through hardware-level binding, even if the
software is copied to other equipment, due to the fact that hardware information stored in the UKey is not matched, the software cannot run, and piracy is thoroughly blocked; the hardware information encrypted and stored in the UKey cannot be extracted or counterfeited, so that the UKey is prevented from being illegally copied.