Message key generation method and device, file encryption method and device, file decryption method and device, equipment and medium

The embodiment of the invention provides a message key generation method and device, a file encryption method and device, a file decryption method and device, equipment and a medium, and relates to the technical field of information security, and the message key generation method comprises the follo...

Full description

Saved in:
Bibliographic Details
Main Authors HU BOLIANG, ZHANG YU'AN, AN XIAOJIANG
Format Patent
LanguageChinese
English
Published 20.12.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The embodiment of the invention provides a message key generation method and device, a file encryption method and device, a file decryption method and device, equipment and a medium, and relates to the technical field of information security, and the message key generation method comprises the following steps: obtaining a shared key preset for a current file and information content corresponding to a preset information category; performing hash operation on the shared key and the information content to obtain a hash value; and extracting a character with a first preset length in the hash value as a message key of the ciphertext file, and taking the rest characters in the hash value as an initial vector of the ciphertext file. According to the message key generation method and device, the technical problem that an existing message key generation method is relatively inconvenient is solved, and the technical effects of improving the message key generation convenience and reducing the message key generation cost
Bibliography:Application Number: CN202210936760