WO2021083108A1 - 文件压缩方法、文件解压方法和电子设备 - Google Patents
文件压缩方法、文件解压方法和电子设备 Download PDFInfo
- Publication number
- WO2021083108A1 WO2021083108A1 PCT/CN2020/123881 CN2020123881W WO2021083108A1 WO 2021083108 A1 WO2021083108 A1 WO 2021083108A1 CN 2020123881 W CN2020123881 W CN 2020123881W WO 2021083108 A1 WO2021083108 A1 WO 2021083108A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- compression
- compressed
- files
- decompression
- Prior art date
Links
- 238000007906 compression Methods 0.000 title claims abstract description 228
- 230000006835 compression Effects 0.000 title claims abstract description 227
- 238000000034 method Methods 0.000 title claims abstract description 149
- 230000006837 decompression Effects 0.000 title claims abstract description 87
- 230000004044 response Effects 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
- G06F16/1744—Redundancy elimination performed by the file system using compression, e.g. sparse files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
Definitions
- the present invention relates to the field of communication technology, in particular to a file processing method and electronic equipment.
- the current function of setting a compression password for compressed files can only be applied to all files in the compressed file.
- the user needs to select different files to compress and generate multiple different compressed files, so that the decompression user can obtain the corresponding compressed files based on their own permissions. That is, in order to adapt to decompression users with different file acquisition permissions, it is necessary to compress and generate multiple compressed files for different files. It can be seen that the current file compression method is relatively dull and solid.
- the present invention provides a file compression method, file decompression method and electronic device to solve the problem that in the prior art, in order to adapt to different file acquisition permissions, the decompression user needs to compress and generate multiple compressed files for different files.
- the present invention is implemented as follows:
- an embodiment of the present invention provides a file compression method, including:
- the compression request includes an encryption compression method for at least part of the file to be compressed, where at least two compression passwords are used in the encryption compression method when at least some of the files are all files of the file to be compressed;
- a compressed file including the file to be compressed is generated.
- an embodiment of the present invention provides a file decompression method, including:
- the file to be decompressed in the compressed file corresponding to the password information is decompressed; wherein different password information corresponds to different files in the compressed file.
- an embodiment of the present invention provides an electronic device that includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor.
- the embodiment of the first aspect is implemented.
- an embodiment of the present invention provides a computer-readable storage medium with a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the file compression method provided by the above-mentioned embodiment of the first aspect and/ Or the steps of the file decompression method provided by the embodiment of the second aspect described above.
- the compression request includes an encrypted compression method for at least part of the file to be compressed.
- the encrypted compression method is adopted At least two compression passwords; in response to a compression request, a compressed file including the file to be compressed is generated, which can adopt different compression methods for the file to be compressed, and generate a compressed file, which improves the convenience of file compression and saves electronics
- the system space of the device improves the time for users to retrieve compressed files.
- FIG. 1 shows a schematic flowchart of a file compression method provided by an embodiment of the present invention
- FIG. 2 shows a schematic flowchart of a file decompression method provided by an embodiment of the present invention
- FIG. 3 shows one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention
- FIG. 4 shows the second structural diagram of an electronic device provided by an embodiment of the present invention
- FIG. 5 shows a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
- FIG. 1 shows a schematic flowchart of a file compression method provided by an embodiment of the present invention.
- An embodiment of the present invention provides a file compression method applied to an electronic device and may include the following steps:
- Step 101 Receive a compression request, where the compression request includes an encryption compression method for at least part of the file to be compressed, where at least two compression methods are used in the encryption compression method when at least some of the files are all files of the file to be compressed password.
- the user needs to compress the file to be compressed, and when different compression methods are adopted for different files, input a compression request for the file to be compressed, so that the electronic device receives the compression request, and based on the compression request, determines the compression request for the file to be compressed.
- the compression method of the compressed file may include an encryption-free compression method and an encrypted compression method.
- the compression request includes an encryption compression method for at least part of the file to be compressed. If at least part of the file is part of the file to be compressed, at least one compression password is used in the encryption and compression method, and if at least part of the file is For all files of the file to be compressed, at least two compression passwords are used in the encryption compression method.
- the file to be compressed may include at least one of a picture file, a video file, a document file, a compressed package file, and so on.
- Step 102 In response to the compression request, a compressed file including the file to be compressed is generated.
- the corresponding compression method is adopted for each part of the file to be compressed, the compression process of the file to be compressed is executed, and the compressed file including the file to be compressed is generated.
- the compressed file adopts different compression methods and generates a compressed file, which saves the system space of the electronic device and improves the time for users to retrieve the compressed file; moreover, one compressed file can satisfy users with different file access rights. Obtaining the demand improves the convenience of file compression.
- different compression methods can be used for the files to be compressed, and a compressed file can be generated, which can solve the problem that in the prior art, in order to adapt to different file acquisition permissions, the user needs to compress and generate multiple files separately.
- the problem of multiple compressed files improves the convenience of file compression, saves the system space of electronic devices, and improves the time for users to retrieve compressed files.
- the compression mode may include an encryption-free compression mode and an encrypted compression mode.
- the compression request may further include: a secret-free compression method for the first file except at least part of the files to be compressed.
- the encryption-free compression method when the encryption compression method is adopted for at least part of the files to be compressed, the encryption-free compression method can be adopted by default for the remaining files except for at least part of the files, that is, the first file. Meet the file acquisition needs of users with different file acquisition permissions, and improve the convenience of file compression.
- the first file may include at least one file, and if at least part of the files are all files in the file to be compressed, the first file is empty.
- step 101 receiving a compression request, may include the following steps: receiving a first encrypted input using a first encryption compression method for a second file in at least some of the files; receiving a first encrypted input for a third file in at least some of the files.
- the second encryption input of the second encryption compression mode; the first compression password used in the first encryption compression mode is different from the second compression password used in the second encryption compression mode.
- the first encryption input may be performed for the second file in at least part of the file, and for at least part of the file
- the third file in the partial file performs the second encryption input, so that the electronic device receives the first encryption input and the second encryption input, adopts the first encryption compression method for the second file, and adopts the second encryption compression method for the third file
- the second file may be different from the third file, or the second file and the third file are at least partially the same.
- the file processing method may further include the following steps: displaying a file compression interface;
- the second file in the partial file adopts the first encrypted input of the first encrypted compression method, which may include: receiving a first input to the first selection control in the file compression interface; in response to the first input, displaying the file to be compressed
- the first selection operation of the second file in the file to be compressed is received; the first password input of the first compressed password on the first password input control is received.
- Receiving a second encrypted input using a second encrypted compression method for a third file in at least part of the file may include: receiving a second input to a second selection control in the file compression interface; in response to the first input, displaying the waiting After compressing all the files in the file, receiving the second selection operation of the third file in the file to be compressed; receiving the second password input of the second compressed password on the second password input control.
- the file compression interface may include a name input control, a password input control, and a selection control for inputting the name of the compressed file.
- the password input control can be hidden on the file compression interface.
- a radio button for adding a compression password is displayed on the file compression interface. When the selected input of the radio button is received, the password will be displayed on the file compression interface. Input control.
- the password input control is displayed on the file compression interface
- at least two password input controls can be displayed on the file compression interface, including a first password input control and a second password input control
- at least two selection controls are displayed , Including: the first selection control and the second selection control.
- a password input control and a selection control namely the first password input control and the first selection control
- a password add button can be displayed as a "+" button.
- a password input control and a selection control can constitute a group of encryption components; preferably, in order to facilitate the user to select all compressed files, the file compression interface can also include all Select the control, a password input control, a selection control, and a select all control can form a group of encryption components.
- the file processing method may further include the following steps: receiving an input for adding a file; in response to the adding input, determining the file to be added, And for the file to be added, it is added to the compressed file through the target compression method.
- the adding input operation can be performed for the files to be added that need to be added, so that the electronic device receives the added input and treats them.
- the added file is added to the compressed file through the target compression method, which improves the editability of the compressed package.
- the target compression method can include a non-secret compression method and an encrypted compression method. If the encrypted compression method is adopted, the compression password used for the file to be added can be the same as the compression password of the compressed file in the compressed file, or it can be It is different from the compression password of the compressed file in the compressed file.
- receiving the addition input of the added file may include: receiving a preset input for the compressed file; and after displaying the local file directory in response to the preset input, receiving the selection input of the file to be added.
- the compression request includes an encrypted compression method for at least part of the file to be compressed, wherein, when at least part of the file is all the files of the file to be compressed, the encryption At least two compression passwords are used in the compression method; in response to the compression request, a compressed file including the file to be compressed is generated, which can adopt different compression methods for the file to be compressed, and generate a compressed file, which improves the convenience of file compression , It saves the system space of electronic equipment and improves the time for users to retrieve compressed files.
- FIG. 2 shows a schematic flowchart of a file decompression method provided by an embodiment of the present invention.
- An embodiment of the present invention provides a file decompression method, which is applied to an electronic device and may include the following steps:
- Step 201 Receive a decompression request for a compressed file.
- the compressed file includes at least two compression methods. At least part of the files in the compressed file are encrypted and compressed. If at least part of the files are part of the compressed file, at least one compression password is used in the encrypted compression method. If the file is all the files in the compressed file, at least two compression passwords are used in the encryption compression method.
- Step 202 In response to the decompression request, according to the password information in the decompression request, decompress the file to be decompressed in the compressed file corresponding to the password information; wherein different password information corresponds to different files in the compressed file.
- the electronic device obtains the password information in the decompression request, determines the file to be decompressed in the compressed file corresponding to the password information based on the password information, and executes the decompression operation of the file to be decompressed, Obtain the corresponding decompressed file.
- the different password information corresponds to the files compressed by different compression methods in the compressed files. In this way, different files in the compressed file can be decompressed in response to decompression requests with different password information, which can meet the file acquisition requirements of users with different file acquisition permissions.
- the file to be decompressed in the compressed file corresponding to the password information is decompressed; wherein, different password information corresponds to the compressed file
- Different files in the file can be decompressed in response to the decompression request with different password information, which can meet the file acquisition requirements of users with different file acquisition permissions.
- the file to be decompressed may include a first file and a second file; then step 202, according to the password information in the decompression request, decompress the file to be decompressed in the compressed file corresponding to the password information, It may include the following steps: if the password information is empty, decompress the first file; if the password information is the first compressed password, decompress the first file and the second file.
- the first file is a file compressed in a compressed file using a non-encryption compression method
- the second file is a file compressed in a compressed file using a first encryption compression method
- the first encryption compression method uses a first compression password.
- the electronic device in the case that the password information in the decompression request received by the electronic device is empty, the electronic device will separately decompress the first file compressed by the encryption-free compression method; the decompression request received by the electronic device If the password information in is the first compression password, the electronic device will simultaneously decompress the first file compressed by the encryption-free compression method and the second file compressed by the first encryption compression method among the compressed files. That is to say, if the compressed file includes files compressed by the encryption-free compression method, in the case of decompressing the compressed file using the encryption compression method, the compressed file will be compressed at the same time using the encryption-free compression method. In this way, the file acquisition needs of users with different file acquisition permissions can be met.
- the file to be decompressed may include a third file and a fourth file; then step 202, according to the password information in the decompression request, decompress the file to be decompressed in the compressed file corresponding to the password information, The following steps may be included: if the password information is the third compressed password, decompress the third file; if the password information is the fourth compressed password, decompress the fourth file.
- the third file is a compressed file that is compressed using the third encryption compression method
- the fourth file is a compressed file that is compressed using the fourth encryption compression method
- the third encryption compression method uses the third compression password.
- the four-encryption compression method uses the fourth compression password
- the third compression password is different from the fourth compression password.
- the electronic device when the password information in the decompression request received by the electronic device is the third compression password, the electronic device will decompress the third file compressed by the third encryption compression method; If the password information in the decompression request is the fourth compression password, the electronic device will decompress the fourth file compressed by the fourth encryption compression method in the compressed file. That is to say, in the case of files compressed by different encryption compression methods in decompressing compressed files, the files corresponding to their encryption compression methods in the compressed files will be decompressed respectively.
- different encryption compression methods use different compression passwords, so, It can meet the file access requirements of users with different file access permissions.
- the file to be decompressed includes the first file, the second file, the third file, and the fourth file
- decompress the file to be decompressed in the compressed file corresponding to the password information Can include: if the password information is empty, decompress the first file; if the password information is the first compression password, decompress the first file and the second file; if the password information is the third compression password, decompress the first file and the third file ; If the password information is the fourth compression password, decompress the first file and the fourth file.
- the file decompression method applied to file decompression provided by the embodiment of the present invention, by receiving and responding to a decompression request for a compressed file, according to the password information in the decompression request, the file to be decompressed in the compressed file corresponding to the password information is decompressed;
- the password information corresponding to different files in the compressed file can decompress different files in the compressed file according to the decompression request with different password information, which can meet the file acquisition requirements of users with different file acquisition permissions.
- an embodiment of the present invention provides an electronic device for implementing the above method. Please refer to FIG. 3, which shows one of the schematic structural diagrams of the electronic device provided by the embodiment of the present invention.
- An embodiment of the present invention provides an electronic device 300, which may include: a first receiving module 310 and a first generating module 320.
- the first receiving module 310 is configured to receive a compression request.
- the compression request includes an encrypted compression method for at least part of the file to be compressed.
- the encrypted compression method Use at least two compression passwords;
- the first generating module 320 is configured to generate a compressed file including the file to be compressed in response to the compression request.
- the compression request may further include: an encryption-free compression method for the first file except for at least some of the files to be compressed.
- the first receiving module 310 may include: a first receiving unit and a second receiving unit.
- the first receiving unit is configured to receive a first encrypted input that adopts a first encrypted compression method for a second file in at least a part of the files;
- the second receiving unit is configured to receive a second encrypted input using a second encrypted compression method for a third file in at least some of the files;
- the first compression password adopted by the first encryption compression method is different from the second compression password adopted by the second encryption compression method.
- the electronic device 300 may further include: a second receiving module and an adding processing module.
- the second receiving module is used to receive the added input of the added file
- the adding processing module is used for determining the file to be added in response to the adding input, and adding the file to be added to the compressed file through the target compression method.
- the electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the embodiment of the file compression method in FIG.
- the electronic device receives a compression request through the first receiving module, and the compression request includes an encrypted compression method for at least part of the file to be compressed, where at least part of the file is all files of the file to be compressed Next, at least two compression passwords are used in the encryption compression method; the first generation module generates a compressed file including the file to be compressed in response to the compression request, which can adopt different compression methods for the file to be compressed, and generate a compressed file,
- the convenience of file compression is improved, the system space of the electronic device is saved, and the time for users to retrieve compressed files is improved.
- an embodiment of the present invention provides an electronic device for implementing the above method. Please refer to FIG. 4, which shows the second structural diagram of an electronic device provided by an embodiment of the present invention.
- An embodiment of the present invention provides an electronic device 400, which may include: a third receiving module 410 and a decompression module 420.
- the third receiving module 410 is configured to receive a decompression request for a compressed file
- the decompression module 420 is configured to decompress the file to be decompressed in the compressed file corresponding to the password information in response to the decompression request and according to the password information in the decompression request; wherein different password information corresponds to different files in the compressed file.
- the file to be decompressed may include a first file and a second file
- the decompression module 420 may include: a first decompression unit and a second decompression unit.
- the first decompression unit is configured to decompress the first file if the password information is empty;
- the second decompression unit is configured to decompress the first file and the second file if the password information is the first compressed password.
- the file to be decompressed may include a third file and a fourth file
- the decompression module 420 may include: a third decompression unit and a fourth decompression unit.
- the third decompression unit is configured to decompress the third file if the password information is the third compressed password
- the fourth decompression unit is used for decompressing the fourth file if the password information is the fourth compression password.
- the electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the embodiment of the file decompression method in FIG.
- the electronic device receives a decompression request for a compressed file through a third receiving module, the determining module responds to the decompression request, and according to the password information in the decompression request, decompresses the file to be decompressed in the compressed file corresponding to the password information; , Different password information corresponds to different files in the compressed file, and can decompress different files in the compressed file in response to the decompression request with different password information, which can meet the file acquisition requirements of users with different file acquisition permissions.
- Fig. 5 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention.
- the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
- a radio frequency unit 501 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
- Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device.
- the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
- electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers,
- the user input unit 507 is configured to receive a compression request.
- the compression request includes an encrypted compression method for at least part of the file to be compressed.
- the encrypted compression method At least two compression passwords are used in the process; the processor 510 is configured to generate a compressed file including the file to be compressed in response to the compression request.
- the embodiment of the present invention can adopt different compression methods for the files to be compressed and generate a compressed file, which improves the convenience of file compression, saves the system space of the electronic device, and improves the time for users to retrieve compressed files.
- the user input unit 507 is configured to receive a decompression request for the compressed file; the processor 510 is configured to respond to the decompression request and decompress the file to be decompressed corresponding to the password information in the compressed file according to the password information in the decompression request ;
- different password information corresponds to different files in the compressed file.
- the embodiment of the present invention can decompress different files in a compressed file according to a decompression request with different password information, and can meet the file acquisition requirements of users with different file acquisition permissions.
- the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; Uplink data is sent to the base station.
- the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
- the electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 503 may convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (for example, call signal reception sound, message reception sound, etc.).
- the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 504 is used to receive audio or video signals.
- the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
- the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
- the data is processed.
- the processed image frame may be displayed on the display unit 506.
- the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
- the microphone 5042 can receive sound, and can process such sound into audio data.
- the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
- the electronic device 500 further includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
- the display unit 506 is used to display information input by the user or information provided to the user.
- the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
- LCD liquid crystal display
- OLED organic light-emitting diode
- the user input unit 507 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
- the user input unit 507 includes a touch panel 5071 and other input devices 5072.
- the touch panel 5071 also known as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating).
- the touch panel 5071 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
- the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the user input unit 507 may also include other input devices 5072.
- other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
- the touch panel 5071 can be overlaid on the display panel 5061.
- the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of the touch event, and then the processor 510 responds to the touch The type of event provides corresponding visual output on the display panel 5061.
- the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
- the implementation of the input and output functions of the electronic device is not specifically limited here.
- the interface unit 508 is an interface for connecting an external device and the electronic device 500.
- the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
- the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 500 or can be used to connect the electronic device 500 to an external device. Transfer data between devices.
- the memory 509 can be used to store software programs and various data.
- the memory 509 may mainly include a storage program area and a storage data area.
- the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
- the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
- the processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
- the electronic device 500 may also include a power source 511 (such as a battery) for supplying power to various components.
- a power source 511 such as a battery
- the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
- the electronic device 500 includes some functional modules not shown, which will not be repeated here.
- the embodiment of the present invention also provides an electronic device, including a processor 510, a memory 509, a computer program stored in the memory 509 and running on the processor 510, and the computer program is executed by the processor 510 to realize the foregoing
- an electronic device including a processor 510, a memory 509, a computer program stored in the memory 509 and running on the processor 510, and the computer program is executed by the processor 510 to realize the foregoing
- the embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored.
- a computer program When the computer program is executed by a processor, the above-mentioned file compression method embodiment and/or the above-mentioned file decompression method embodiment are implemented. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
- the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
- modules, units, sub-modules, sub-units, etc. can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (Digital Signal Processing, DSP), digital signal processing equipment ( DSP Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, Other electronic units or combinations thereof that perform the functions described in this application.
- ASICs application specific integrated circuits
- DSP Digital Signal Processing
- DSP Device digital signal processing equipment
- PLD Programmable Logic Device
- Field-Programmable Gate Array Field-Programmable Gate Array
- FPGA Field-Programmable Gate Array
- the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
- a storage medium such as ROM/RAM, magnetic disk,
- the optical disc includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioethics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Storage Device Security (AREA)
Abstract
Description
Claims (16)
- 一种文件压缩方法,应用于电子设备,包括:接收压缩请求,所述压缩请求包括针对待压缩文件中的至少部分文件的加密压缩方式,其中,在至少部分文件为所述待压缩文件的全部文件的情况下,所述加密压缩方式中采用至少两种压缩密码;响应于所述压缩请求,生成包括所述待压缩文件的压缩文件。
- 根据权利要求1所述的方法,其中,所述压缩请求还包括:针对待压缩文件中除所述至少部分文件之外的第一文件的免密压缩方式。
- 根据权利要求2所述的方法,其中,所述接收压缩请求,包括:接收针对所述至少部分文件中的第二文件采用第一加密压缩方式的第一加密输入;接收针对所述至少部分文件中的第三文件采用第二加密压缩方式的第二加密输入;所述第一加密压缩方式采用的第一压缩密码不同于所述第二加密压缩方式采用的第二压缩密码。
- 根据权利要求1所述的方法,其中,所述生成包括所述待压缩文件的压缩文件之后,还包括:接收添加文件的添加输入;响应于所述添加输入,确定待添加文件,并针对所述待添加文件通过目标压缩方式添加至所述压缩文件。
- 一种文件解压方法,应用于电子设备,包括:接收针对压缩文件的解压请求;响应于所述解压请求,根据所述解压请求中的密码信息,解压所述压缩文件中与所述密码信息对应的待解压文件;其中,不同的密码信息对应于所述压缩文件中的不同文件。
- 根据权利要求5所述的方法,其中,所述待解压文件包括第一文件和第二文件,所述根据所述解压请求中的密码信息,解压所述压缩文件中与所述密码信息对应的待解压文件,包括:若所述密码信息为空,解压所述第一文件;若所述密码信息为第一压缩密码,解压所述第一文件和第二文件。
- 根据权利要求5所述的方法,其中,所述待解压文件包括第三文件和第四文件,所述根据所述解压请求中的密码信息,解压所述压缩文件中与所述密码信息对应的待解压文件,包括:若所述密码信息为第三压缩密码,解压所述第三文件;若所述密码信息为第四压缩密码,解压所述第四文件。
- 一种电子设备,包括:第一接收模块,用于接收压缩请求,所述压缩请求包括针对待压缩文件中的至少部分文件的加密压缩方式,其中,在至少部分文件为所述待压缩文件的全部文件的情况下,所述加密压缩方式中采用至少两种压缩密码;第一生成模块,用于响应于所述压缩请求,生成包括所述待压缩文件的压缩文件。
- 根据权利要求8所述的电子设备,其中,所述压缩请求还包括:针对待压缩文件中除所述至少部分文件之外的第一文件的免密压缩方式。
- 根据权利要求9所述的电子设备,其中,所述第一接收模块,包括:第一接收单元,用于接收针对所述至少部分文件中的第二文件采用第一加密压缩方式的第一加密输入;第二接收单元,用于接收针对所述至少部分文件中的第三文件采用第二加密压缩方式的第二加密输入;所述第一加密压缩方式采用的第一压缩密码不同于所述第二加密压缩方式采用的第二压缩密码。
- 根据权利要求8所述的电子设备,其中,还包括:第二接收模块,用于接收添加文件的添加输入;添加处理模块,用于响应于所述添加输入,确定待添加文件,并针对所述待添加文件通过目标压缩方式添加至所述压缩文件。
- 一种电子设备,包括:第三接收模块,用于接收针对压缩文件的解压请求;解压模块,用于响应于所述解压请求,根据所述解压请求中的密码信息, 解压所述压缩文件中与所述密码信息对应的待解压文件;其中,不同的密码信息对应于所述压缩文件中的不同文件。
- 根据权利要求12所述的电子设备,其中,所述待解压文件包括第一文件和第二文件,所述解压模块包括:第一解压单元,用于若所述密码信息为空,解压所述第一文件;第二解压单元,用于若所述密码信息为第一压缩密码,解压所述第一文件和第二文件。
- 根据权利要求12所述的电子设备,其中,所述待解压文件包括第三文件和第四文件,所述解压模块包括:第三解压单元,用于若所述密码信息为第三压缩密码,解压所述第三文件;第四解压单元,用于若所述密码信息为第四压缩密码,解压所述第四文件。
- 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的文件压缩方法和/或如权利要求5至7中任一项所述的文件解压方法的步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的文件压缩方法和/或如权利要求5至7中任一项所述的文件解压方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911063185.X | 2019-10-31 | ||
CN201911063185.XA CN110851408A (zh) | 2019-10-31 | 2019-10-31 | 一种文件压缩方法、文件解压方法和电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021083108A1 true WO2021083108A1 (zh) | 2021-05-06 |
Family
ID=69599364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/123881 WO2021083108A1 (zh) | 2019-10-31 | 2020-10-27 | 文件压缩方法、文件解压方法和电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110851408A (zh) |
WO (1) | WO2021083108A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11617981B1 (en) * | 2022-01-03 | 2023-04-04 | Saudi Arabian Oil Company | Method for capturing CO2 with assisted vapor compression |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110851408A (zh) * | 2019-10-31 | 2020-02-28 | 维沃移动通信有限公司 | 一种文件压缩方法、文件解压方法和电子设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107135062A (zh) * | 2017-05-08 | 2017-09-05 | 桂林电子科技大学 | 一种改进的大文件的加密方法 |
CN107154846A (zh) * | 2017-05-07 | 2017-09-12 | 桂林电子科技大学 | 一种大数据的改进加密方法 |
CN108667595A (zh) * | 2017-03-28 | 2018-10-16 | 吉林化工学院 | 一种大数据文件的压缩加密方法 |
CN110287719A (zh) * | 2019-06-28 | 2019-09-27 | 维沃移动通信有限公司 | 文件加密方法及移动终端 |
CN110851408A (zh) * | 2019-10-31 | 2020-02-28 | 维沃移动通信有限公司 | 一种文件压缩方法、文件解压方法和电子设备 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106503165A (zh) * | 2016-10-31 | 2017-03-15 | 杭州华为数字技术有限公司 | 压缩、解压方法、装置以及设备 |
CN107545048B (zh) * | 2017-08-18 | 2020-04-07 | 奇安信科技集团股份有限公司 | 加密压缩文件的处理方法及装置 |
-
2019
- 2019-10-31 CN CN201911063185.XA patent/CN110851408A/zh active Pending
-
2020
- 2020-10-27 WO PCT/CN2020/123881 patent/WO2021083108A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108667595A (zh) * | 2017-03-28 | 2018-10-16 | 吉林化工学院 | 一种大数据文件的压缩加密方法 |
CN107154846A (zh) * | 2017-05-07 | 2017-09-12 | 桂林电子科技大学 | 一种大数据的改进加密方法 |
CN107135062A (zh) * | 2017-05-08 | 2017-09-05 | 桂林电子科技大学 | 一种改进的大文件的加密方法 |
CN110287719A (zh) * | 2019-06-28 | 2019-09-27 | 维沃移动通信有限公司 | 文件加密方法及移动终端 |
CN110851408A (zh) * | 2019-10-31 | 2020-02-28 | 维沃移动通信有限公司 | 一种文件压缩方法、文件解压方法和电子设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11617981B1 (en) * | 2022-01-03 | 2023-04-04 | Saudi Arabian Oil Company | Method for capturing CO2 with assisted vapor compression |
Also Published As
Publication number | Publication date |
---|---|
CN110851408A (zh) | 2020-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021098678A1 (zh) | 投屏控制方法及电子设备 | |
CN108255378A (zh) | 一种显示控制方法及移动终端 | |
WO2021109907A1 (zh) | 应用分享方法、第一电子设备及计算机可读存储介质 | |
CN109857297B (zh) | 信息处理方法及终端设备 | |
CN110719319B (zh) | 一种资源共享方法、装置、终端设备及存储介质 | |
CN108052251A (zh) | 一种截屏信息显示方法和移动终端 | |
CN108629171B (zh) | 一种未读消息处理方法及终端 | |
CN107808084A (zh) | 一种触控操作方法及移动终端 | |
WO2020063107A1 (zh) | 截屏方法和终端 | |
CN108897473A (zh) | 一种界面显示方法及终端 | |
CN108762869A (zh) | 一种信息处理方法及移动终端 | |
WO2021129771A1 (zh) | 应用分享方法、第一电子设备及计算机可读存储介质 | |
WO2021083108A1 (zh) | 文件压缩方法、文件解压方法和电子设备 | |
CN111597540A (zh) | 应用程序的登录方法、电子设备及可读存储介质 | |
CN107786739A (zh) | 一种信息获取方法及移动终端 | |
CN107797728A (zh) | 一种访问应用程序的方法和移动终端 | |
CN108366106B (zh) | 通信信息的更新方法、管理方法、修改方法和相关设备 | |
WO2021073468A1 (zh) | 一种图片显示方法、电子设备及计算机可读存储介质 | |
CN110096893B (zh) | 一种对象限制方法及终端设备 | |
CN109005377B (zh) | 一种视频处理方法及终端设备 | |
CN108848270B (zh) | 一种截屏图像的处理方法和移动终端 | |
WO2020238477A1 (zh) | 编辑方法及移动终端 | |
CN111460537A (zh) | 隐藏页面内容的方法及电子设备 | |
CN110032422A (zh) | 一种应用管理方法、终端设备及计算机可读存储介质 | |
WO2021185325A1 (zh) | 一种通话处理方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20883600 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20883600 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 220223) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20883600 Country of ref document: EP Kind code of ref document: A1 |