文件处理方法、计算机可读存储介质及电子设备
Published in 发明专利 Invention patent, 2022
Recommended citation: Dayao Ji. (2022). "File processing method, computer-readable storage medium and electronic device." China patent. CN115455370A. https://patents.google.com/patent/CN115455370A
文件处理方法、计算机可读存储介质及电子设备
摘要:本申请提供文件处理方法、计算机可读存储介质及电子设备,该方法包括:针对源文件创建空的第一保护文件;基于对源文件进行随机次数的叠加操作和操作类型构建与源文件相关联的文件头部结构;对文件头部结构进行加密,并且基于加密后的文件头部结构和第一保护文件来形成第二保护文件;根据文件头部结构对源文件进行处理,并且基于处理后的源文件和第二保护文件来形成第三保护文件。本申请由于不对整个源文件进行加密,在实现对源文件进行保护的同时降低了对计算资源的需求,特别是对部署于计算资源受限的端设备来说,提高了源文件在推理前解保护的速度。本申请的方法适用于对AI模型、各应用文档进行保护,对软硬件环境和场景不做限制,通用性强。
File processing method, computer-readable storage medium and electronic device
Abstract:The application provides a file processing method, a computer readable storage medium and an electronic device, wherein the method comprises the following steps: creating an empty first protection file for the source file; constructing a file header structure associated with the source file based on the random number of overlapping operations and operation types performed on the source file; encrypting the file header structure and forming a second protected file based on the encrypted file header structure and the first protected file; the source file is processed according to a file header structure, and a third protected file is formed based on the processed source file and the second protected file. According to the method and the device, the whole source file is not encrypted, so that the requirement on computing resources is reduced while the source file is protected, and particularly for the device which is deployed at the end with limited computing resources, the speed of the source file for unprotection before reasoning is increased. The method is suitable for protecting the AI model and each application document, does not limit the software and hardware environment and scenes, and has strong universality.
Recommended citation:
纪大峣. 文件处理方法、计算机可读存储介质及电子设备[P]. 中国:CN115455370A,2022-12-09.
D. Ji,”File processing method, computer-readable storage medium and electronic device,” China Patent CN115455370A, December 09,2022.
