WO2017201999A1 - File encryption method, device, terminal and storage medium - Google Patents

File encryption method, device, terminal and storage medium Download PDF

Info

Publication number
WO2017201999A1
WO2017201999A1 PCT/CN2016/108608 CN2016108608W WO2017201999A1 WO 2017201999 A1 WO2017201999 A1 WO 2017201999A1 CN 2016108608 W CN2016108608 W CN 2016108608W WO 2017201999 A1 WO2017201999 A1 WO 2017201999A1
Authority
WO
WIPO (PCT)
Prior art keywords
predetermined file
file
encrypted
password
gesture
Prior art date
Application number
PCT/CN2016/108608
Other languages
French (fr)
Chinese (zh)
Inventor
相薇
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017201999A1 publication Critical patent/WO2017201999A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Abstract

Provided are a file encryption method, a device, a terminal, and a storage medium, wherein the method comprises: acquiring an input encryption password before a predetermined file is generated or during the generation of the predetermined file (S202); and while the predetermined file is generated, the predetermined file is encrypted using the aforementioned encryption password (S204). Through this method, the security of the file can be guaranteed, thereby effectively solving the problem of low security of the file in the related art.

Description

文件加密方法、装置、终端及存储介质File encryption method, device, terminal and storage medium 技术领域Technical field
本发明涉及通信领域,具体而言,尤其涉及一种文件加密方法、装置、终端及存储介质。The present invention relates to the field of communications, and in particular, to a file encryption method, apparatus, terminal, and storage medium.
背景技术Background technique
随着科技的发展,智能终端的应用越来普遍,基本上家家户户都在使用,下面以智能手机中的拍照功能为例进行说明:在现代科技中,智能手机上的应用越来越多,其中,智能手机中的照相机已经基本上可以代替专业数码相机的功能了,智能手机中存储的照片会越来越多,那手机照像及保存安全吗?答案是否的,有很多人因为手机丢失,导致照片泄露,或者照片被他人非法获取,而导致名声大损,以及由此引起的相关损失也是非常大的。With the development of technology, the application of smart terminals is becoming more and more common. Basically, every household is using it. The following is an example of the camera function in a smart phone: in modern technology, there are more and more applications on smart phones, among which The camera in the smartphone has basically replaced the function of the professional digital camera. The photos stored in the smartphone will be more and more. Is the phone photo and safe to store? The answer is yes. There are many people who have lost their photos, caused photos to be leaked, or the photos have been illegally obtained by others. As a result, their reputations are greatly damaged, and the related losses caused by them are also very large.
在当前的拍照技术中,拍照过程中是不会进行加密处理的,一般是在拍照完成并且将照片保存到存储器后才可以进行适当加密,从而无法实现在照片拍完到加密过程中的照片的保密处理;并且,目前的主要加密方式是指纹加密,而指纹加密是不够严密的,手机上已注册的所有指纹均可解密,不具有唯一性。In the current photographing technology, the encryption process is not performed during the photographing process, and generally, the photographing is completed and the photograph is saved to the memory before the appropriate encryption can be performed, thereby failing to realize the photo in the process of photographing the photo to the encryption process. Confidential processing; and, the current main encryption method is fingerprint encryption, and fingerprint encryption is not strict enough, all fingerprints registered on the mobile phone can be decrypted, not unique.
除了上述的照片外,终端中的视频、短信或者其他存储在终端中的文件都是需要在创建完成且存储之后才能进行加密处理,从而导致文件的安全性比较低。In addition to the above photos, the video, short message or other files stored in the terminal need to be encrypted after the creation and storage, resulting in a relatively low file security.
针对相关技术中存在的上述问题,目前尚未提出有效的解决方案。 In view of the above problems existing in the related art, an effective solution has not yet been proposed.
发明内容Summary of the invention
本发明实施例提供了一种文件加密方法、装置、终端及存储介质,以至少解决相关技术中存在的文件的安全性低的问题。The embodiment of the invention provides a file encryption method, device, terminal and storage medium to solve at least the problem of low security of files existing in the related art.
根据本发明的一个实施例,提供了一种文件加密方法,包括:在生成预定文件之前或生成预定文件的过程中,获取输入的加密密码;在生成所述预定文件时,利用所述加密密码对所述预定文件进行加密。According to an embodiment of the present invention, a file encryption method is provided, comprising: acquiring an input encrypted password before generating a predetermined file or generating a predetermined file; and using the encrypted password when generating the predetermined file The predetermined file is encrypted.
上述方案中,在利用所述加密密码对所述预定文件进行加密之后,所述方法还包括:隐藏加密后的所述预定文件。In the above solution, after encrypting the predetermined file by using the encrypted password, the method further includes: hiding the encrypted predetermined file.
上述方案中,获取输入的加密密码包括:利用两个以上红外线传感器获取输入的第一手势动作;通过模数转换将所述第一手势动作转换为第一数字信号;确定所述第一数字信号为所述加密密码。In the above solution, obtaining the input encrypted password includes: acquiring a first gesture action by using two or more infrared sensors; converting the first gesture action into a first digital signal by analog-to-digital conversion; determining the first digital signal For the encrypted password.
上述方案中,利用所述加密密码对所述预定文件进行加密包括:确定所述预定文件的文件名的后缀;通过利用所述加密密码对所述后缀进行修改的方式对所述预定文件进行加密。In the above solution, the encrypting the predetermined file by using the encrypted password comprises: determining a suffix of a file name of the predetermined file; and encrypting the predetermined file by modifying the suffix by using the encrypted password .
上述方案中,在利用所述加密密码对所述预定文件进行加密之后,所述方法还包括:获取输入的解密密码;利用所述解密密码对加密后的所述预定文件进行解密,并显示所述预定文件。In the above solution, after encrypting the predetermined file by using the encrypted password, the method further includes: acquiring an input decryption password; decrypting the encrypted predetermined file by using the decryption password, and displaying the Describe the document.
上述方案中,获取输入的所述解密密码包括:在进入用于存储所述预定文件的存储界面后,获取输入的所述解密密码。In the above solution, obtaining the input decryption password includes: after entering a storage interface for storing the predetermined file, acquiring the input decryption password.
上述方案中,获取输入的所述解密密码包括:利用两个以上红外线传感器获取输入的第二手势动作;通过模数转换将所述第二手势动作转换为第二数字信号;确定所述第二数字信号为所述解密密码。In the above solution, the obtaining the input decryption password comprises: acquiring a second gesture action by using two or more infrared sensors; converting the second gesture action into a second digital signal by analog-to-digital conversion; determining the The second digital signal is the decryption password.
上述方案中,当所述加密密码为对利用两个以上所述红外线传感器获取的第一手势动作进行转换得到的第一数字信号时,所述第二手势动作的滑动路径与所述第一手势动作的滑动路径相反。 In the above solution, when the encrypted password is a first digital signal obtained by converting a first gesture obtained by using two or more infrared sensors, a sliding path of the second gesture and the first The sliding path of the gesture action is reversed.
上述方案中,当通过利用所述加密密码对所述预定文件的文件名的后缀进行修改的方式对所述预定文件进行加密时,利用所述解密密码对加密后的所述预定文件进行解密,并显示所述预定文件包括:利用所述解密密码恢复所述预定文件的文件名的后缀;显示恢复了后缀的所述预定文件。In the above solution, when the predetermined file is encrypted by modifying the suffix of the file name of the predetermined file by using the encrypted password, the encrypted file is decrypted by using the decrypted password. And displaying the predetermined file includes: restoring a suffix of the file name of the predetermined file by using the decryption password; and displaying the predetermined file with the suffix restored.
上述方案中,在显示所述预定文件之后,所述方法还包括:当确定退出用于显示所述预定文件的显示界面时,再次使用所述加密密码对所述预定文件进行加密。In the above solution, after displaying the predetermined file, the method further comprises: when it is determined to exit the display interface for displaying the predetermined file, encrypting the predetermined file again by using the encrypted password.
根据本发明的一个实施例,提供了一种文件加密装置,包括:获取模块,配置于在生成预定文件之前或生成预定文件的过程中,获取输入的加密密码;加密模块,配置于在生成所述预定文件时,利用所述加密密码对所述预定文件进行加密。According to an embodiment of the present invention, a file encryption apparatus is provided, including: an acquisition module configured to acquire an input encryption password before generating a predetermined file or generating a predetermined file; and an encryption module configured at the generation site When the predetermined file is described, the predetermined file is encrypted by using the encrypted password.
根据本发明的一个实施例,提供了一种终端,所述终端包括上述所述的装置。According to an embodiment of the present invention, there is provided a terminal comprising the apparatus described above.
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行上述步骤的程序代码。According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is arranged to store program code for performing the above steps.
本发明实施例所述的文件加密方法、装置、终端及存储介质,由于是在生成预定文件的同时对该预定文件进行加密的,从而无需在保存了预定文件之后再执行加密操作,有效保证了文件的安全性,有效解决相关技术中存在的文件的安全性低的问题。The file encryption method, device, terminal, and storage medium according to the embodiments of the present invention encrypt the predetermined file while generating the predetermined file, thereby eliminating the need to perform the encryption operation after saving the predetermined file, thereby effectively ensuring that the file is encrypted. The security of the file effectively solves the problem of low security of files existing in the related art.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是本发明实施例的一种文件加密方法的移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal of a file encryption method according to an embodiment of the present invention;
图2是根据本发明实施例的文件加密方法的流程图; 2 is a flowchart of a file encryption method according to an embodiment of the present invention;
图3是根据本发明实施例的红外线传感器的分布示意图;3 is a schematic view showing the distribution of an infrared sensor according to an embodiment of the present invention;
图4是根据本发明实施例的手势示意图;4 is a schematic diagram of a gesture according to an embodiment of the present invention;
图5是根据本发明实施例的拍照过程的加密框图;FIG. 5 is an encrypted block diagram of a photographing process according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的拍照过程的加密流程图;6 is an encryption flowchart of a photographing process according to an embodiment of the present invention;
图7是根据本发明实施例的解密框图;Figure 7 is a block diagram of decryption in accordance with an embodiment of the present invention;
图8是根据本发明实施例的解密流程图;Figure 8 is a flowchart of decryption in accordance with an embodiment of the present invention;
图9是根据本发明实施例的加密、解密手势顺序示意图;9 is a schematic diagram of a sequence of encryption and decryption gestures according to an embodiment of the present invention;
图10是根据本发明实施例的文件加密装置的结构框图。FIG. 10 is a block diagram showing the structure of a file encryption apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
本发明实施例中所提供的方法可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种文件加密方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、配置于存储数据的存储器104、以及配置于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method provided in the embodiments of the present invention may be performed in a mobile terminal, a computer terminal, or the like. Taking a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal of a file encryption method according to an embodiment of the present invention. As shown in FIG. 1, mobile terminal 10 may include one or more (only one shown in FIG. 1) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. And a memory 104 that stores data and a transmission device 106 that is disposed in a communication function. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器104可配置于存储应用软件的软件程序以及模块,如本发明实施例中的文件加密方法对应的程序指令/模块,处理器102通过运行存储在 存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be configured in a software program and a module for storing application software, such as a program instruction/module corresponding to the file encryption method in the embodiment of the present invention, and the processor 102 is stored by running The software program and modules within the memory 104 perform various functional applications and data processing, i.e., implement the methods described above. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106配置于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其配置于通过无线方式与互联网进行通讯。Transmission device 106 is configured to receive or transmit data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
在本实施例中提供了一种运行于上述移动终端的文件加密方法,图2是根据本发明实施例的文件加密方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a file encryption method running on the mobile terminal is provided. FIG. 2 is a flowchart of a file encryption method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,在生成预定文件之前或生成预定文件的过程中,获取输入的加密密码;Step S202, acquiring an input encrypted password before generating a predetermined file or generating a predetermined file;
步骤S204,在生成上述预定文件时,利用上述加密密码对预定文件进行加密。Step S204, when generating the predetermined file, encrypting the predetermined file by using the encrypted password.
其中,执行上述操作的可以是终端。Wherein, the above operation may be performed by the terminal.
通过上述步骤,由于是在生成预定文件的同时对该预定文件进行加密的,从而无需在保存了预定文件之后再执行加密操作,有效保证了文件的安全性,有效解决相关技术中存在的文件的安全性低的问题。Through the above steps, since the predetermined file is encrypted while the predetermined file is generated, it is not necessary to perform the encryption operation after the predetermined file is saved, thereby effectively ensuring the security of the file and effectively solving the file existing in the related art. The problem of low security.
在一个可选的实施例中,在上述步骤S204之后,还可以执行如下操作: 隐藏加密后的预定文件。在本实施例中,可以对加密后的文件进行隐藏,从而使得其他用户无法察觉预定文件的存在,进一步提高了预定文件的安全系数。当然,在实际应用中,也可以仅对预定文件进行加密,而不对加密后的预定文件进行隐藏,即,其他用户可以觉察到预定文件的存在,但是无法正常打开该预定文件。In an optional embodiment, after the above step S204, the following operations may also be performed: Hide the encrypted scheduled file. In this embodiment, the encrypted file can be hidden, so that other users cannot perceive the existence of the predetermined file, and the security factor of the predetermined file is further improved. Of course, in practical applications, it is also possible to encrypt only the predetermined file without hiding the encrypted predetermined file, that is, other users can perceive the existence of the predetermined file, but cannot open the predetermined file normally.
在一个可选的实施例中,在上述步骤S202中可以通过如下方式获取输入的加密密码:利用两个以上红外线传感器获取输入的第一手势动作;通过模数转换将上述第一手势动作转换为第一数字信号;确定上述第一数字信号为上述加密密码。在本实施例中,可以将红外线传感器捕获的手势动作转化为加密密码,其中,一个终端中的红外线传感器的数量可以灵活设置,例如,设置成四个,并且分别在终端屏幕的四个角上设置,如图3所示;或者,设置成五个,除了在终端屏幕的四个角上各设置一个红外线传感器之外,还可以在终端屏幕的正中间设置一个红外线传感器。在本实施例中,上述的第一手势动作可以是隔空划的8字,如图4所示,上述第一数字信号可以包括16进制的数字信号。In an optional embodiment, the input encrypted password may be acquired in the above step S202 by acquiring the input first gesture action by using two or more infrared sensors; converting the first gesture action into a first digital signal; determining that the first digital signal is the encrypted password. In this embodiment, the gesture action captured by the infrared sensor can be converted into an encrypted password, wherein the number of infrared sensors in one terminal can be flexibly set, for example, set to four, and respectively at the four corners of the terminal screen. The settings are as shown in FIG. 3; or, set to five, in addition to setting an infrared sensor on each of the four corners of the terminal screen, an infrared sensor may be disposed in the middle of the terminal screen. In this embodiment, the first gesture action may be 8 words in the air. As shown in FIG. 4, the first digital signal may include a hexadecimal digital signal.
在一个可选的实施例中,利用上述加密密码对上述预定文件进行加密包括:确定上述预定文件的文件名的后缀;通过利用上述加密密码对后缀进行修改的方式对上述预定文件进行加密。在本实施例中,当修改了上述预定文件的文件名的后缀之后,上述预定文件会无法正常打开,因此,可以通过修改文件名的后缀的方式对文件进行加密。在实际操作中,还可以通过修改预定文件的属性的方式进行加密。In an optional embodiment, encrypting the predetermined file by using the encrypted password includes: determining a suffix of the file name of the predetermined file; and encrypting the predetermined file by modifying the suffix by using the encrypted password. In this embodiment, after the suffix of the file name of the predetermined file is modified, the predetermined file may not be opened normally, and therefore, the file may be encrypted by modifying the suffix of the file name. In actual operation, encryption can also be performed by modifying the attributes of the predetermined file.
在一个可选的实施例中,在利用上述加密密码对上述预定文件进行加密之后,上述方法还包括:获取输入的解密密码;利用上述解密密码对加密后的预定文件进行解密,并显示上述预定文件。In an optional embodiment, after encrypting the predetermined file by using the encryption password, the method further includes: acquiring an input decryption password; decrypting the encrypted predetermined file by using the decryption password, and displaying the predetermined reservation file.
在一个可选的实施例中,获取输入的上述解密密码包括:在进入用于 存储上述预定文件的存储界面后,获取输入的上述解密密码。例如,当上述预定文件为照片时,上述存储界面可以是终端中的图库,进入图库之后,在图库显示界面上输入解密密码,可以将对应的加密文件解密出来并进行显示。In an optional embodiment, obtaining the input decryption password includes: After storing the storage interface of the predetermined file, the input decryption password is obtained. For example, when the predetermined file is a photo, the storage interface may be a library in the terminal. After entering the library, the decryption password is input on the gallery display interface, and the corresponding encrypted file may be decrypted and displayed.
在一个可选的实施例中,获取输入的上述解密密码包括:利用两个以上红外线传感器获取输入的第二手势动作;通过模数转换将该第二手势动作转换为第二数字信号;确定上述第二数字信号为解密密码。在本实施例中,也可以利用上述的红外线传感器捕获手势动作,并将捕获的手势动作转化为解密密码。In an optional embodiment, the obtaining the input decryption password includes: acquiring a second gesture action by using two or more infrared sensors; and converting the second gesture action into a second digital signal by analog-to-digital conversion; The second digital signal is determined to be a decryption password. In this embodiment, the above-described infrared sensor can also be used to capture the gesture action and convert the captured gesture action into a decryption password.
在一个可选的实施例中,当上述加密密码为对利用两个以上上述红外线传感器获取的第一手势动作进行转换得到的第一数字信号时,该第二手势动作的滑动路径与上述第一手势动作的滑动路径相反。通过反方向手势动作的解密处理可以进一步提高文件的安全性。In an optional embodiment, when the encrypted password is a first digital signal obtained by converting a first gesture obtained by using two or more infrared sensors, a sliding path of the second gesture and the foregoing The sliding path of a gesture action is reversed. The decryption process of the gesture in the opposite direction can further improve the security of the file.
在一个可选的实施例中,当通过利用上述加密密码对上述预定文件的文件名的后缀进行修改的方式对上述预定文件进行加密时,利用解密密码对加密后的预定文件进行解密,并显示上述预定文件包括:利用解密密码恢复上述预定文件的文件名的后缀;显示恢复了后缀的预定文件。In an optional embodiment, when the predetermined file is encrypted by modifying the suffix of the file name of the predetermined file by using the encrypted password, the encrypted predetermined file is decrypted by using the decrypted password, and displayed. The predetermined file includes: a suffix for restoring the file name of the predetermined file by using the decryption password; and displaying the predetermined file with the suffix restored.
在一个可选的实施例中,在显示上述预定文件之后,上述方法还包括:当确定退出用于显示上述预定文件的显示界面时,再次使用上述加密密码对预定文件进行加密。在本实施例中,当用户查阅预定文件完毕后,且退出预定文件的存储界面时,终端会在退出该存储界面的同时立即对上述预定文件进行再次加密,且可以采用原来的加密密码进行加密处理。In an optional embodiment, after displaying the predetermined file, the method further includes: when it is determined to exit the display interface for displaying the predetermined file, encrypting the predetermined file again by using the encrypted password. In this embodiment, when the user browses the predetermined file and exits the storage interface of the predetermined file, the terminal re-encrypts the predetermined file immediately after exiting the storage interface, and may encrypt the original encrypted password. deal with.
下面以上述预定文件为图片或视频文件为例对本发明实施例进行说明:The following describes an embodiment of the present invention by taking the above-mentioned predetermined file as a picture or a video file as an example:
在本实施例中,在拍照或者摄像过程中进行加密操作,加密是通过红 外线传感器实现的复杂手势动作完成。并且,终端中内置了4个小型红外线传感器,通过手掌隔空化8字方式对图像进行加密处理。生成的8字图形经过模数转换成变换成16进制数字信号,作为生成图片或者视频文件名前两位和对应后缀名(也可以只作为图片或视频文件的后缀名)。并且,在本实施例中,生成的图片或者视频由于进行了加密处理,所以在图库中一般是看不见的,只有对应用户知道该图片的存在,当用户进入图库准备打开加密图片之前,可以进行相应的手指操作(即,解密操作),该操作被接收,并转换成对应数字信号,然后和已保存图片所使用的密约进行匹配,如果一致,则暂时去除文件命名前两个字节,恢复原有的文件后缀名,正确命名文件供用户查阅,如果查阅完毕,退出图库界面,则立即再次加密处理。其中,在进行解密操作时,可以使用反方向手势动作进行解密,经过一系列处理后变成一串数字码,该数字码再经过反序排列处理后,才能和加密密约进行比对,安全性更高。In this embodiment, the encryption operation is performed during the photographing or imaging process, and the encryption is performed by red. The complex gestures implemented by the outside sensor are completed. In addition, four small infrared sensors are built in the terminal, and the image is encrypted by a palm-shaped 8-word method. The generated 8-word graphic is converted into a hexadecimal digital signal by analog-to-digital conversion as the first two digits of the generated picture or video file name and the corresponding suffix name (may also be used as the suffix name of the picture or video file). Moreover, in this embodiment, the generated picture or video is generally invisible in the library because of the encryption process, and only the corresponding user knows the existence of the picture, and the user can proceed before the user enters the library to open the encrypted picture. The corresponding finger operation (ie, the decryption operation), the operation is received, and converted into a corresponding digital signal, and then matched with the secret used by the saved picture. If they are consistent, the first two bytes of the file name are temporarily removed, and the operation is resumed. The original file suffix name, the correct naming file for the user to consult, if the review is completed, exit the gallery interface, then immediately encrypt again. Wherein, when the decryption operation is performed, the reverse direction gesture action can be used for decryption, and after a series of processing, it becomes a string of digital codes, and the digital code can be compared with the encryption secret after the reverse order processing, and the security is performed. higher.
在本实施例中,该智能终端前面板可以内置4个红外线传感器,如上图3所示,该4个红外线传感器需放置在该终端四个角(假设左上角的红外线传感器的编号为101、右上角的红外线传感器的编号为102、左下角的红外线传感器的编号为103、右下角的红外线传感器的编号为104),当手掌(或手指)按顺序101~102~103~104~101顺序划过,则根据红外光返回值的大小及时间,生成一个手掌划过的图形如图4所示。In this embodiment, the front panel of the smart terminal can have four infrared sensors built in, as shown in FIG. 3 above, the four infrared sensors need to be placed at the four corners of the terminal (assuming that the infrared sensor in the upper left corner is numbered 101, upper right The number of the infrared sensor of the corner is 102, the number of the infrared sensor in the lower left corner is 103, and the number of the infrared sensor in the lower right corner is 104), and the palm (or finger) is sequentially drawn in the order of 101 to 102 to 103 to 104 to 101. According to the size and time of the infrared light return value, a figure drawn by the palm is generated as shown in FIG. 4 .
下面对红外手势原理进行说明:四个红外线传感器均在接收反射回来的红外光值及对应时间值,并根据接收红外光出现最大值先后顺序,恢复出手掌划过的图形。需要说明的是,上述的终端中的红外线传感器的数量和位置可以灵活设置,并且手掌划过的图像也可以自由定义(例如,划一个长方形),因此,对于单一用于而言,手掌划过的图像可以是唯一的。The following describes the principle of the infrared gesture: the four infrared sensors receive the reflected infrared light value and the corresponding time value, and recover the graphic drawn by the palm according to the maximum order of the received infrared light. It should be noted that the number and position of the infrared sensors in the above terminal can be flexibly set, and the image swiped by the palm can also be freely defined (for example, a rectangle is drawn). Therefore, for a single use, the palm is crossed. The image can be unique.
下面结合具体实施例对拍照加密过程进行说明: The following describes the photo encryption process in conjunction with a specific embodiment:
本实施例中提供了一种加密方法,如图5所示,图5为拍照过程加密过程示意图。其中,拍照过程加密操作主要涉及5个模块,分别是图像传感器模块、手势传感器、A/D转换模块、加密处理模块、存储模块,具体过程如下:An encryption method is provided in this embodiment. As shown in FIG. 5, FIG. 5 is a schematic diagram of a process of encrypting a photographing process. Among them, the photo process encryption operation mainly involves five modules, namely an image sensor module, a gesture sensor, an A/D conversion module, an encryption processing module, and a storage module. The specific process is as follows:
第一步:打开摄像头进入取景模式,手势传感器、图像传感器分别进入工作模式。用户在手机屏幕正上方操作自己的手势动作,比如画八字、画正方形、红外手势传感器根据手掌反射回来的最强红外光时间先后顺序恢复出手势图形;Step 1: Turn on the camera to enter the framing mode, and the gesture sensor and image sensor enter the working mode respectively. The user operates his own gestures directly above the screen of the mobile phone, such as drawing a character, drawing a square, and the infrared gesture sensor recovers the gesture pattern according to the time of the strongest infrared light reflected from the palm;
第二步:手指点击拍照按键,图像传感器开始对接收的景物不同强度光线进行接收,并转换成模拟电信号;Step 2: The finger clicks on the camera button, and the image sensor starts to receive the different intensity light of the received scene and converts it into an analog electrical signal;
第三步:模拟图像电信号,模拟的手势信号同时进入A/D转换模块,A/D转换模块主要是将模拟信号转换成便于中央处理器处理的数字信号;The third step: analog image electrical signal, the simulated gesture signal enters the A/D conversion module at the same time, and the A/D conversion module mainly converts the analog signal into a digital signal that is convenient for the central processor to process;
第四步:图像数字信号、手势数字信号分别进入加密处理模块,这里的加密处理模块包含几个方面工作,首先将接收数字信号进行优化,放大,修正等处理,并经过复杂的数字运算转换成可在显示器显示出来的图片信号;其次:手势数字信号转换成特定的字码,作为图像文件命名前两个首字母或者作为图像文件后缀名,被手势加密后的图片再保存到存储器中,但由于被加密了,所以未使用同样手势解密人员,将看不到该图片。The fourth step: the image digital signal and the gesture digital signal respectively enter the encryption processing module. Here, the encryption processing module includes several aspects of work, firstly, the digital signal is received for optimization, amplification, correction, etc., and is converted into a complex digital operation. The picture signal that can be displayed on the display; secondly: the gesture digital signal is converted into a specific code, and the first two letters of the image file are named or the image file suffix name, and the image encrypted by the gesture is saved in the memory, but Since it is encrypted, the same gesture is not used to decrypt the person and the picture will not be visible.
图6是根据本发明实施例的拍照过程的加密流程图,如图6所示,包括如下步骤:FIG. 6 is an encryption flowchart of a photographing process according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
步骤S600:开始。Step S600: Start.
步骤S601:对于照相机功能,用户打开终端设备照相机,进入取景模式;对于摄像机功能,用户直接进入录制界面。Step S601: For the camera function, the user turns on the terminal device camera to enter the framing mode; for the camera function, the user directly enters the recording interface.
步骤S602:对于照相功能,取景模式系统会自动给予一定等待时间,该时间段,手势传感器处于工作状态,监控是否有手势动作信号,如果有 直接进入手势信号接收步骤,转至步骤S603;如果在规定时间段内未收到手势信号,则直接进入拍照步骤S604,对于摄像机功能,手势传感器可以和图像传感器同步工作。Step S602: For the camera function, the framing mode system automatically gives a certain waiting time, during which the gesture sensor is in a working state, monitoring whether there is a gesture action signal, if any Directly entering the gesture signal receiving step, go to step S603; if the gesture signal is not received within the prescribed time period, directly enter the photographing step S604, and for the camera function, the gesture sensor can work synchronously with the image sensor.
步骤S603:通过红外线传感器将接收到手势模拟信号恢复出来,然后进行特定模数转换后进入下一个加密处理模块,转至步骤S606。Step S603: recovering the received gesture analog signal by the infrared sensor, and then performing specific analog-to-digital conversion, and then proceeds to the next encryption processing module, and proceeds to step S606.
步骤S604:如果未发现用户有任何手势动作,则直接进行拍照或者视频录制。Step S604: If the user does not find any gesture action, directly take a photo or video recording.
步骤S605:将接收到图片模拟信号,经过模数转换,经过一系列数字运算,变成特定的数字信号。Step S605: The picture analog signal will be received, and after analog-to-digital conversion, a series of digital operations will become a specific digital signal.
步骤S606:然后再用手势数字信号进行加密操作,这里的加密操作典型特点是:手势动作输出的数字信号,转换成16进制数,然后16进制数作为生成图片文件名首两位和对应的后缀名,这里的算法也可自定义。Step S606: Then use the gesture digital signal to perform the encryption operation. The typical operation of the encryption operation here is: the digital signal output by the gesture action is converted into a hexadecimal number, and then the hexadecimal number is used as the first two digits of the generated image file name and corresponding The suffix name, the algorithm here can also be customized.
步骤S607:加密后图片进入存储器保存,流程结束。Step S607: After the encryption, the picture enters the memory saving, and the process ends.
需要说明的是:上述的手势不仅应用于图片,在视频、短信、语音通话以及所有的手机功能操作上均可以应用。It should be noted that the above gestures are not only applied to pictures, but also can be applied in video, short message, voice call and all mobile phone function operations.
加密图形用户也可以自定义,可以复杂可以简单,给用户开放最大操作权限。Encrypted graphics users can also be customized, complex and simple, and give users maximum operational privileges.
其中,对于拍照由于过程非常快速,因此在拍照取景界面系统会预留一定等待时间,当等待时间到时,如果还未收到任何手势,则认为本次拍照不加密。对于视频录制,由于录制过程时间比较长,因此输入手势和录制视频可以同时开展。Because the process is very fast, the camera will reserve a certain waiting time in the camera view interface. When the waiting time expires, if the gesture has not been received, the camera is considered not to be encrypted. For video recording, since the recording process takes a long time, input gestures and recorded video can be performed simultaneously.
下面结合具体实施例对拍照解密过程进行说明:The following describes the process of camera decryption in conjunction with a specific embodiment:
在本实施例中,提供了一种图片解密方法,如图7所示,图7为根据本发明实施例的图片解密过程框图。In this embodiment, a picture decryption method is provided. As shown in FIG. 7, FIG. 7 is a block diagram of a picture decryption process according to an embodiment of the present invention.
图片解密共包含6个部分,分别是打开图库,隔空画手势、手势传感 模块、A/D转换模块、图片解密模块,最后存储器中图片显示。首先用户进入终端存储器显示界面,然后在控制画手势,手势传感器立即接受反射回来的红外光,然后根据时间先后顺序以及红外光强弱恢复处原始的图形,A/D转换模块将接收到的模拟信号转换成对应的数字信号,图片解密模块主要是分析处理图片文件命中前两位,然后和获取手势信号值进行比对,如果匹配,则更改图片命名,图片可见,可编辑,如果不一致,图片不显示,即不允许用户查看相关内容。The image decryption consists of 6 parts, which are open the gallery, draw gestures, gestures The module, the A/D conversion module, the picture decryption module, and the picture in the last memory are displayed. First, the user enters the terminal memory display interface, and then controls the gesture, the gesture sensor immediately accepts the reflected infrared light, and then the original image is restored according to the chronological order and the intensity of the infrared light, and the A/D conversion module will receive the simulation. The signal is converted into a corresponding digital signal. The image decryption module mainly analyzes and processes the first two digits of the image file, and then compares with the acquired gesture signal value. If it matches, the image name is changed, the image is visible, and the image can be edited. Do not display, that is, users are not allowed to view related content.
图8是根据本发明实施例的解密流程图,如图8所示,该流程包括如下步骤:FIG. 8 is a flowchart of decryption according to an embodiment of the present invention. As shown in FIG. 8, the process includes the following steps:
步骤S800,开始;Step S800, starting;
步骤S801,用户打开图片存储器;Step S801, the user opens the picture memory;
步骤S802:用户在空中隔空画手势;Step S802: The user draws a gesture in the air;
步骤S803:手势传感器将接收到手势信号转换成电信号,然后根据电信号模拟出对应的手势动作,然后将手势动作经过A\D转换以后,变成一连串数字信号;Step S803: the gesture sensor converts the received gesture signal into an electrical signal, and then simulates a corresponding gesture motion according to the electrical signal, and then converts the gesture motion into a series of digital signals after being converted by A\D;
步骤S804:接收到手势数字信号,按照倒序重新排列,然后再变成16进制数,最后生成的16进制数直接和已加密的所有图片文件名中首两个字母、文件后缀名进行核对;Step S804: Receive the gesture digital signal, rearrange it in reverse order, and then change to a hexadecimal number. The generated hexadecimal number is directly checked with the first two letters and the file suffix name of all the image file names that have been encrypted. ;
步骤S805,如果匹配,则图片可以进行显示,可操作,如果不匹配,图片不显示,不可见;Step S805, if the match, the picture can be displayed and can be operated. If it does not match, the picture is not displayed, and is invisible;
步骤S806,流程结束。In step S806, the process ends.
需要说明的是,如果用户打开加密图片后查看后,并未删除,则关闭存储器瞬间,图片继续保持加密模式。It should be noted that if the user opens the encrypted picture and then does not delete it after viewing the encrypted picture, the memory is turned off momentarily, and the picture continues to remain in the encryption mode.
图9是根据本发明实施例的加密、解密手势顺序示意图,其中,图9中的数字代表滑动的顺序,图9中左边的图可以是加密的示意图,右边的 图可以是解密的示意图,由于本发明实施例中的算法处理器采用的反向倒序的计算方式,因此用户在浏览图片或者视频前,输入的手势务必和加密使用的顺序相反,如果解密和加密使用手势完全一致,则匹配失败。9 is a schematic diagram of a sequence of encryption and decryption gestures according to an embodiment of the present invention, wherein the numbers in FIG. 9 represent the order of sliding, and the left diagram in FIG. 9 may be an encrypted schematic diagram, on the right side. The figure may be a schematic diagram of decryption. Due to the reverse reverse order calculation method adopted by the algorithm processor in the embodiment of the present invention, before the user browses the picture or video, the input gesture must be opposite to the order of encryption, if decrypted and encrypted. If the gestures are exactly the same, the match fails.
本发明实施例中的方案主要应用于拍照加密:具体过程为:用户打开拍照功能,然后在控制画特定的手势,然后即可开始拍照,拍照完成图片被加密保存,并在图库等存储器中不显示。如果用户想查看图片,则打开图库,然后在空中画同样的手势,则可以打开图片进行浏览,或者各种相应操作。The solution in the embodiment of the present invention is mainly applied to photo-encryption: the specific process is: the user opens the photographing function, and then controls the drawing of the specific gesture, and then can start taking the photograph, the photographing is completed, the image is encrypted, and is not stored in the library and the like. display. If the user wants to view the image, open the gallery and then draw the same gesture in the air, you can open the image for browsing, or various corresponding operations.
本实施例所采用的方法还可以适用于较多场景,除上述的照像过程加密、录制视频过程加密,还有短信书写界面,通话过程均可应用,比如:当用户想将某些人电话作为加密电话,不想让其他人接听时,则可以在联系人中设置手势密码,当该联系人打电话过来,则界面不显示人员姓名,其他用户无法接近,只有特定用户拿起手机在控制画特定手势,方可接听电话。The method used in this embodiment can also be applied to more scenarios, in addition to the above-mentioned photo process encryption, recording video process encryption, and a short message writing interface, and the call process can be applied, for example, when the user wants to call some people. As an encrypted phone, if you don't want other people to answer, you can set the gesture password in the contact. When the contact calls, the interface does not display the name of the person. Other users cannot access it. Only the specific user picks up the phone and controls the picture. A specific gesture is required to answer the call.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
本发明实施例还记载了一种计算机存储介质,所述第一种计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例中图2所示的文件加密方法。 The embodiment of the present invention further describes a computer storage medium. The first type of computer storage medium stores a computer program for executing the file encryption method shown in FIG. 2 in the embodiment of the present invention.
在本实施例中还提供了一种文件加密装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a file encryption device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图10是根据本发明实施例的文件加密装置的结构框图,如图10所示,该装置包括获取模块102和加密模块104,下面对该装置进行说明:FIG. 10 is a structural block diagram of a file encryption apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus includes an acquisition module 102 and an encryption module 104, which are described below:
获取模块102,配置于在生成预定文件之前或生成预定文件的过程中,获取输入的加密密码;加密模块104,连接至上述获取模块102,配置于在生成上述预定文件时,利用加密密码对上述预定文件进行加密。The obtaining module 102 is configured to acquire the input encrypted password before generating the predetermined file or in the process of generating the predetermined file. The encryption module 104 is connected to the obtaining module 102, and configured to use the encrypted password to generate the predetermined file. The scheduled file is encrypted.
在一个可选的实施例中,上述装置还包括隐藏模块,配置于在利用上述加密密码对预定文件进行加密之后,隐藏加密后的上述预定文件。In an optional embodiment, the apparatus further includes a hiding module configured to hide the encrypted predetermined file after encrypting the predetermined file by using the encrypted password.
在一个可选的实施例中,上述获取模块102可以通过如下方式获取输入的加密密码:利用两个以上红外线传感器获取输入的第一手势动作;通过模数转换将上述第一手势动作转换为第一数字信号;确定上述第一数字信号为加密密码。In an optional embodiment, the obtaining module 102 may obtain the input encrypted password by acquiring the input first gesture action by using two or more infrared sensors, and converting the first gesture action into the first by analog-to-digital conversion. a digital signal; determining that the first digital signal is an encrypted password.
在一个可选的实施例中,上述加密模块104可以通过如下方式对上述预定文件进行加密:确定上述预定文件的文件名的后缀;通过利用上述加密密码对上述后缀进行修改的方式对预定文件进行加密。In an optional embodiment, the encryption module 104 may encrypt the predetermined file by determining a suffix of the file name of the predetermined file, and modifying the suffix by using the encrypted password. encryption.
在一个可选的实施例中,上述装置还包括解密模块,配置于在利用上述加密密码对预定文件进行加密之后,获取输入的解密密码;利用上述解密密码对加密后的预定文件进行解密,并显示上述预定文件。In an optional embodiment, the apparatus further includes a decryption module configured to: after encrypting the predetermined file by using the encrypted password, acquire an input decryption password; decrypt the encrypted predetermined file by using the decryption password, and The above predetermined file is displayed.
在一个可选的实施例中,上述解密模块获取可以通过如下方式获取输入的上述解密密码:在进入用于存储上述预定文件的存储界面后,获取输入的上述解密密码。 In an optional embodiment, the decryption module acquires the input decryption password that can be obtained by acquiring the input decryption password after entering a storage interface for storing the predetermined file.
在一个可选的实施例中,上述解密模块获取可以通过如下方式获取输入的上述解密密码:利用两个以上红外线传感器获取输入的第二手势动作;通过模数转换将上述第二手势动作转换为第二数字信号;确定上述第二数字信号为上述解密密码。In an optional embodiment, the decryption module acquires the decryption password that can be input by: acquiring a second gesture action by using two or more infrared sensors; and performing the second gesture by analog-to-digital conversion Converting to a second digital signal; determining that the second digital signal is the decryption password.
在一个可选的实施例中,当上述加密密码为对利用两个以上红外线传感器获取的第一手势动作进行转换得到的第一数字信号时,上述第二手势动作的滑动路径与第一手势动作的滑动路径相反。In an optional embodiment, when the encrypted password is a first digital signal obtained by converting a first gesture obtained by using two or more infrared sensors, the sliding path of the second gesture and the first gesture The sliding path of the action is reversed.
在一个可选的实施例中,当通过利用所述加密密码对所述预定文件的文件名的后缀进行修改的方式对所述预定文件进行加密时,上述解密模块可以通过如下方式利用解密密码对加密后的预定文件进行解密,并显示上述预定文件包括:利用上述解密密码恢复预定文件的文件名的后缀;显示恢复了后缀的上述预定文件。In an optional embodiment, when the predetermined file is encrypted by modifying the suffix of the file name of the predetermined file by using the encrypted password, the decryption module may utilize the decrypted password pair by The encrypted predetermined file is decrypted, and displaying the predetermined file includes: restoring a suffix of the file name of the predetermined file by using the decryption password; and displaying the predetermined file with the suffix restored.
在一个可选的实施例中,上述加密模块104还配置于在显示上述预定文件之后,当确定退出用于显示上述预定文件的显示界面时,再次使用上述加密密码对上述预定文件进行加密。In an optional embodiment, the encryption module 104 is further configured to encrypt the predetermined file by using the encrypted password again after determining to exit the display interface for displaying the predetermined file after displaying the predetermined file.
根据本发明的一个实施例,还提供了一种终端,该终端包括上述的文件加密装置。According to an embodiment of the present invention, there is also provided a terminal comprising the above file encryption device.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行上述方法实施例中的各步骤的程序代码。Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the steps in the foregoing method embodiments.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random  Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a random access memory (Random). Access Memory (referred to as RAM), mobile hard disk, disk or optical disk, and other media that can store program code.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述各方法实施例中的步骤。Optionally, in this embodiment, the processor executes the steps in the foregoing method embodiments according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例由于是在生成预定文件的同时对该预定文件进行加密的,从而无需在保存了预定文件之后再执行加密操作,有效保证了文件的安全性,有效解决相关技术中存在的文件的安全性低的问题。 In the embodiment of the present invention, the predetermined file is encrypted while the predetermined file is generated, so that the encryption operation is not performed after the predetermined file is saved, the security of the file is effectively ensured, and the file existing in the related art is effectively solved. The problem of low security.

Claims (13)

  1. 一种文件加密方法,包括:A file encryption method, including:
    在生成预定文件之前或生成预定文件的过程中,获取输入的加密密码;Obtaining the input encrypted password before generating the predetermined file or during the process of generating the predetermined file;
    在生成所述预定文件时,利用所述加密密码对所述预定文件进行加密。The predetermined file is encrypted with the encrypted password when the predetermined file is generated.
  2. 根据权利要求1所述的方法,其中,在利用所述加密密码对所述预定文件进行加密之后,所述方法还包括:The method of claim 1, wherein after encrypting the predetermined file with the encrypted password, the method further comprises:
    隐藏加密后的所述预定文件。The encrypted predetermined file is hidden.
  3. 根据权利要求1所述的方法,其中,获取输入的加密密码包括:The method of claim 1, wherein obtaining the input encrypted password comprises:
    利用两个以上红外线传感器获取输入的第一手势动作;Acquiring the first gesture action of the input by using two or more infrared sensors;
    通过模数转换将所述第一手势动作转换为第一数字信号;Converting the first gesture action into a first digital signal by analog to digital conversion;
    确定所述第一数字信号为所述加密密码。Determining that the first digital signal is the encrypted password.
  4. 根据权利要求1所述的方法,其中,利用所述加密密码对所述预定文件进行加密包括:The method of claim 1, wherein encrypting the predetermined file with the encrypted password comprises:
    确定所述预定文件的文件名的后缀;Determining a suffix of the file name of the predetermined file;
    通过利用所述加密密码对所述后缀进行修改的方式对所述预定文件进行加密。The predetermined file is encrypted by modifying the suffix with the encrypted password.
  5. 根据权利要求1至4中任一项所述的方法,其中,在利用所述加密密码对所述预定文件进行加密之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein after encrypting the predetermined file with the encrypted password, the method further comprises:
    获取输入的解密密码;Obtain the input decryption password;
    利用所述解密密码对加密后的所述预定文件进行解密,并显示所述预定文件。The encrypted predetermined file is decrypted using the decryption password, and the predetermined file is displayed.
  6. 根据权利要求5所述的方法,其中,获取输入的所述解密密码包括:The method of claim 5, wherein the obtaining the decrypted password comprises:
    在进入用于存储所述预定文件的存储界面后,获取输入的所述解密密码。After entering the storage interface for storing the predetermined file, the input decryption password is acquired.
  7. 根据权利要求5所述的方法,其中,获取输入的所述解密密码包括: The method of claim 5, wherein the obtaining the decrypted password comprises:
    利用两个以上红外线传感器获取输入的第二手势动作;Acquiring a second gesture action of the input using two or more infrared sensors;
    通过模数转换将所述第二手势动作转换为第二数字信号;Converting the second gesture action into a second digital signal by analog to digital conversion;
    确定所述第二数字信号为所述解密密码。Determining the second digital signal as the decryption password.
  8. 根据权利要求7所述的方法,其中,当所述加密密码为对利用两个以上所述红外线传感器获取的第一手势动作进行转换得到的第一数字信号时,所述第二手势动作的滑动路径与所述第一手势动作的滑动路径相反。The method according to claim 7, wherein when the encrypted password is a first digital signal obtained by converting a first gesture obtained by using the two or more infrared sensors, the second gesture is The sliding path is opposite to the sliding path of the first gesture action.
  9. 根据权利要求5所述的方法,其中,当通过利用所述加密密码对所述预定文件的文件名的后缀进行修改的方式对所述预定文件进行加密时,利用所述解密密码对加密后的所述预定文件进行解密,并显示所述预定文件包括:The method according to claim 5, wherein when said predetermined file is encrypted by modifying said suffix of said file name of said predetermined file by said encrypted password, said encrypted password is used to encrypt said Decrypting the predetermined file and displaying the predetermined file includes:
    利用所述解密密码恢复所述预定文件的文件名的后缀;Recovering a suffix of a file name of the predetermined file by using the decryption password;
    显示恢复了后缀的所述预定文件。The predetermined file in which the suffix is restored is displayed.
  10. 根据权利要求5所述的方法,其中,在显示所述预定文件之后,所述方法还包括:The method of claim 5, wherein after displaying the predetermined file, the method further comprises:
    当确定退出用于显示所述预定文件的显示界面时,再次使用所述加密密码对所述预定文件进行加密。When it is determined to exit the display interface for displaying the predetermined file, the predetermined file is encrypted again using the encrypted password.
  11. 一种文件加密装置,包括:A file encryption device comprising:
    获取模块,配置于在生成预定文件之前或生成预定文件的过程中,获取输入的加密密码;Obtaining a module, configured to acquire an input encrypted password before generating a predetermined file or generating a predetermined file;
    加密模块,配置于在生成所述预定文件时,利用所述加密密码对所述预定文件进行加密。The encryption module is configured to encrypt the predetermined file by using the encrypted password when the predetermined file is generated.
  12. 一种终端,包括权利要求11所述的装置。A terminal comprising the apparatus of claim 11.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行前述权利要求1至10任一项所述的文件加密方法。 A computer storage medium storing a computer program for performing the file encryption method according to any one of claims 1 to 10.
PCT/CN2016/108608 2016-05-23 2016-12-05 File encryption method, device, terminal and storage medium WO2017201999A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610343947.1 2016-05-23
CN201610343947.1A CN107423628A (en) 2016-05-23 2016-05-23 File encrypting method, device and terminal

Publications (1)

Publication Number Publication Date
WO2017201999A1 true WO2017201999A1 (en) 2017-11-30

Family

ID=60411048

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108608 WO2017201999A1 (en) 2016-05-23 2016-12-05 File encryption method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN107423628A (en)
WO (1) WO2017201999A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552938A (en) * 2020-04-29 2020-08-18 上海明略人工智能(集团)有限公司 File encryption method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287733B (en) * 2019-06-05 2021-07-23 杭州迪普科技股份有限公司 File tamper-proofing method and device
CN111967032B (en) * 2020-08-27 2023-08-25 长城计算机软件与系统有限公司 File encryption method and decryption method based on confusion processing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295341A (en) * 2008-06-25 2008-10-29 腾讯科技(深圳)有限公司 Portable equipment and data protection method thereof
CN103699847A (en) * 2013-11-29 2014-04-02 上海合合信息科技发展有限公司 Fingerprint encryption method and device, and encrypted shooting method and device
CN104978541A (en) * 2015-04-28 2015-10-14 努比亚技术有限公司 Method and apparatus for hiding audio/video file
CN105426746A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Password setting apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295341A (en) * 2008-06-25 2008-10-29 腾讯科技(深圳)有限公司 Portable equipment and data protection method thereof
CN103699847A (en) * 2013-11-29 2014-04-02 上海合合信息科技发展有限公司 Fingerprint encryption method and device, and encrypted shooting method and device
CN104978541A (en) * 2015-04-28 2015-10-14 努比亚技术有限公司 Method and apparatus for hiding audio/video file
CN105426746A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Password setting apparatus and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552938A (en) * 2020-04-29 2020-08-18 上海明略人工智能(集团)有限公司 File encryption method and device
CN111552938B (en) * 2020-04-29 2024-03-15 上海明略人工智能(集团)有限公司 File encryption method and device

Also Published As

Publication number Publication date
CN107423628A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
EP3079082B1 (en) Method and apparatus for album display
CN107659416B (en) Conference record sharing method and device, conference terminal and storage medium
CN105069075B (en) Photo be shared method and apparatus
WO2018000585A1 (en) Interface theme recommendation method, apparatus, terminal and server
US20150356121A1 (en) Position location-enabled, event-based, photo sharing software and service
KR102327779B1 (en) Method for processing image data and apparatus for the same
KR20190141790A (en) Gallery of messages with a shared interest
JP2023519625A (en) Video processing method, apparatus, electronic equipment and non-transitory computer-readable storage medium
US20150205993A1 (en) Method for providing control function using fingerprint sensor and electronic device thereof
WO2019109976A1 (en) Multimedia file play record saving method, terminal and storage medium
CN103561072A (en) Cloud data processing method based on Internet and cloud digital photo frame
CN110826103B (en) Method, device, equipment and storage medium for processing document authority based on blockchain
WO2017118250A1 (en) Facial beautification method, apparatus, and terminal device
KR102386893B1 (en) Method for securing image data and electronic device implementing the same
CN110472558B (en) Image processing method and device
WO2017201999A1 (en) File encryption method, device, terminal and storage medium
US20230316529A1 (en) Image processing method and apparatus, device and storage medium
CN111368232A (en) Password sharing reflux method and device, electronic equipment and storage medium
CN105095787A (en) Information processing method and device
CN104869144A (en) Information sharing method and electronic equipment
JP2016085594A (en) Portrait right protection program, information communication apparatus and portrait right protection method
WO2023030116A1 (en) Display method and apparatus
CN105025203B (en) With reference to the image encipher-decipher method and its image capturing device of physiological characteristic
CN111581622A (en) Information processing method and device and electronic equipment
WO2018230378A1 (en) Information processing device, information processing method, and information processing program

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16902983

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16902983

Country of ref document: EP

Kind code of ref document: A1