IPFS file encryption and decryption method, device and medium

The embodiment of the invention discloses an IPFS file encryption and decryption method and device and a medium. The method comprises the steps that a corresponding secret key is generated for a target IPFS file according to a preset first encryption algorithm; encrypting a target IPFS file by adopt...

Full description

Saved in:
Bibliographic Details
Main Authors SHEN CHUANWANG, SUN CHANGJIE, WANG WEIBING, XIAO SHOUMING, LI ZHAOCHUAN
Format Patent
LanguageChinese
English
Published 31.05.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The embodiment of the invention discloses an IPFS file encryption and decryption method and device and a medium. The method comprises the steps that a corresponding secret key is generated for a target IPFS file according to a preset first encryption algorithm; encrypting a target IPFS file by adopting the first encryption algorithm and a key to obtain a target ciphertext file; encrypting the secret key by adopting a preset second encryption algorithm, and determining an encrypted secret key; and packaging the first encryption algorithm, the second encryption algorithm, the encrypted key and a target ciphertext file into an encrypted object file, and storing the object file in an IPFS system. Reading a pre-generated encrypted object file, and determining a first encryption algorithm, a second encryption algorithm, an encrypted key and a target ciphertext file; decrypting the encrypted secret key by adopting the second encryption algorithm, and determining the secret key; and by taking the key as a parameter,
Bibliography:Application Number: CN202011352718