CN105069360A - File encryption and decryption methods and terminal - Google Patents

File encryption and decryption methods and terminal Download PDF

Info

Publication number
CN105069360A
CN105069360A CN201510537093.6A CN201510537093A CN105069360A CN 105069360 A CN105069360 A CN 105069360A CN 201510537093 A CN201510537093 A CN 201510537093A CN 105069360 A CN105069360 A CN 105069360A
Authority
CN
China
Prior art keywords
group
pressing
pressing data
data
file
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201510537093.6A
Other languages
Chinese (zh)
Other versions
CN105069360B (en
Inventor
李建林
周辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510537093.6A priority Critical patent/CN105069360B/en
Publication of CN105069360A publication Critical patent/CN105069360A/en
Application granted granted Critical
Publication of CN105069360B publication Critical patent/CN105069360B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

Embodiments of the invention disclose file encryption and decryption methods and a terminal. The file encryption method comprises: reading a file in the terminal; obtaining M groups of press data generated by pressing M different points by a user, wherein the press data is at least one of press force, press time and press area, and M is an integer greater than 1; and according to the M groups of press data, encrypting the file to obtain an encrypted file. With the adoption of the embodiments of the invention, the M groups of press data can be adopted for encrypting the file, so that in the decryption process, matching is performed according to the M groups of press data; each group of press data at least comprises a press datum, and decryption can be performed only when the M groups of press data is matched successfully, so that the security of the file stored in the terminal is improved.

Description

A kind of method of file encryption, deciphering and terminal
Technical field
The embodiment of the present invention relates to technical field of electronic equipment, refers more particularly to a kind of file encryption, the method for deciphering and terminal.
Background technology
Along with the development of science and technology, terminal (as mobile phone, panel computer, Intelligent worn device etc.) is more and more universal, simultaneously, function also from strength to strength, the electronic portable device becoming a kind of integrated multifunction is developed from a kind of simple means of communication, along with the application of terminal carrying gets more and more, its safety issue also becomes main indexes time user buys terminal.
In life, when being decrypted the file in terminal, main flow adopts different numerals to be decrypted, such as, i Phone, often adopts 4 passwords, thus, there will be following situation, user is when input password, need to find correct numeral, then input one by one, this mode is easy to be spied on password by other people, especially, when the screen of terminal is larger, therefore, password is easily caused to reveal.
Summary of the invention
Embodiments provide a kind of file encryption, the method for deciphering and terminal, to improving the security of terminal file.
Embodiment of the present invention first aspect discloses a kind of method of file encryption, comprising:
File in reading terminals;
Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Be encrypted to obtain encrypt file to described file according to described M group pressing data.
In conjunction with first aspect, in the first possible embodiment of first aspect, be describedly encrypted to obtain encrypt file to described file according to described M group pressing data, comprise:
Choose the N group pressing data in described M group pressing data according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M;
M-N pressing data in described M group pressing data except described N group pressing data is generated the second character string;
By described first character string and described second word string synthesis encryption key;
Be encrypted described file according to predetermined encryption algorithm and described encryption key, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.
Embodiment of the present invention second aspect discloses a kind of method of file decryption, comprising:
Encrypt file in reading terminals;
Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Described M group pressing data and M group are preset pressing data mate;
When described M group pressing data and M group are preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.
In conjunction with second aspect, in the first possible embodiment of second aspect, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, and wherein, described first group of pressing data is pressing dynamics be K1 and compressing time is K2, described second group of pressing data is K3 for pressing area
Describedly described M group pressing data and M group preset pressing data mate, comprising:
Whether the described K1 judging in the described first group of pressing data described K2 whether be in first group of first pre-set interval and described first group of pressing data presetting the default pressing dynamics in pressing data is less than described first group of first predetermined threshold value presetting the default compressing time in pressing data;
If so, judge whether the described K3 in described second group of pressing data is greater than the second predetermined threshold value that second group is preset the default pressing area in pressing data.
In conjunction with second aspect, in the embodiment that the second of second aspect is possible, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, be pressing dynamics in described first group of pressing data be Y1, compressing time is when be Y2 and pressing area being Y3
Describedly described M group pressing data and M group preset pressing data mate, comprising:
Judge whether the described Y1 of described first group of pressing data is greater than the 3rd predetermined threshold value that first group is preset the default pressing dynamics in pressing data;
If so, judge whether the described Y2 of described first group of pressing data is in described first group of second pre-set interval presetting the default compressing time in pressing data;
If so, judge whether the described Y3 of described first group of pressing data is less than described first group of default pressing area the 4th predetermined threshold value preset in pressing data;
If so, described second group of pressing data is preset pressing data mate with second group.
The embodiment of the present invention third aspect discloses a kind of terminal of file encryption, it is characterized in that, comprising:
Reading unit, for the file in reading terminals;
Acquiring unit, press for obtaining user the M group pressing data that M difference generate, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Ciphering unit, is encrypted to obtain encrypt file to the file that described reading unit reads for the M group pressing data got according to described acquiring unit.
In conjunction with the third aspect, in the first possible embodiment of the third aspect, described ciphering unit comprises:
First generation unit, for choosing the N group pressing data in M group pressing data that described acquiring unit gets according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M;
Second generation unit, for generating the second character string by the M-N pressing data in described M group pressing data except described N group pressing data;
Synthesis unit, for the second word string synthesis encryption key the first character string of described first generation unit generation and described second generation unit generated;
Encryption sub-unit operable, for being encrypted described file according to the encryption key of predetermined encryption algorithm and the synthesis of described synthesis unit, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.
Embodiment of the present invention fourth aspect discloses a kind of terminal of file decryption, comprising:
Reading unit, for the encrypt file in reading terminals;
Acquiring unit, press for obtaining user the M group pressing data that M difference generate, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Matching unit, presets pressing data for the M group pressing data that got by described acquiring unit and M group and mates;
Decryption unit, for match at described matching unit described M group pressing data and M group preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.
In conjunction with fourth aspect, in the first possible embodiment of fourth aspect, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, and wherein, described first group of pressing data is pressing dynamics be K1 and compressing time is K2, described second group of pressing data is K3 for pressing area, and described matching unit comprises:
First judging unit, whether the described K2 whether be in first group of first pre-set interval and described first group of pressing data presetting the default pressing dynamics in pressing data of the described K1 for judging in described first group of pressing data is less than described first group of first predetermined threshold value presetting the default compressing time in pressing data;
Second judging unit, if be yes for the judged result of described first judging unit, judges whether the described K3 in described second group of pressing data is greater than the second predetermined threshold value that second group is preset the default pressing area in pressing data.
In conjunction with fourth aspect, in the embodiment that the second of fourth aspect is possible, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, described in, and be pressing dynamics in described first group of pressing data be Y1, compressing time is when be Y2 and pressing area being Y3, described matching unit comprises:
3rd judging unit, for judging whether the described Y1 of described first group of pressing data is greater than the 3rd predetermined threshold value that first group is preset the default pressing dynamics in pressing data;
4th judging unit, if be yes for the judged result of described 3rd judging unit, judges whether the described Y2 of described first group of pressing data is in described first group of second pre-set interval presetting the default compressing time in pressing data;
5th judging unit, if be yes for the judged result of described 4th judging unit, judges whether the described Y3 of described first group of pressing data is less than described first group of the 4th predetermined threshold value presetting the default pressing area in pressing data.
Whether coupling subelement, if be yes for the judged result of described 5th judging unit, preset pressing data with second group by described second group of pressing data and mate.
Implement the embodiment of the present invention, there is following beneficial effect:
Thus, adopt the embodiment of the present invention by the file in reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Be encrypted to obtain encrypt file to described file according to described M group pressing data.Thus, in decrypting process, need mate according to M group pressing data, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment, description below, apparently, accompanying drawing in the following describes is only some embodiments of the embodiment of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the first embodiment of the method for a kind of file encryption that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the second embodiment of the method for a kind of file encryption that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the first embodiment of the method for a kind of file decryption that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the second embodiment of the method for a kind of file decryption that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the first embodiment of the terminal of a kind of file encryption that Fig. 5 a provides for the embodiment of the present invention;
The another structural representation of the first embodiment of the terminal of a kind of file encryption that Fig. 5 b provides for the embodiment of the present invention;
The structural representation of the first embodiment of the terminal of a kind of file decryption that Fig. 6 a provides for the embodiment of the present invention;
The another structural representation of the first embodiment of the terminal of a kind of file decryption that Fig. 6 b provides for the embodiment of the present invention;
The another structural representation of the first embodiment of the terminal of a kind of file decryption that Fig. 6 c provides for the embodiment of the present invention;
The structural representation of the second embodiment of the terminal of a kind of file encryption that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the second embodiment of the terminal of a kind of file decryption that Fig. 8 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only embodiment of the present invention part embodiment, instead of whole embodiments.Based on the embodiment in the embodiment of the present invention, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of embodiment of the present invention protection.
In realization, in the embodiment of the present invention, terminal can include but not limited to: notebook computer, mobile phone, panel computer, intelligent wearable device etc.The system of terminal refers to the operating system of equipment, can include but not limited to: android system, Saipan system, Windows system, IOS (Mobile operating system of Apple's exploitation) etc.It should be noted that, Android terminal refers to the terminal of android system, and Saipan terminal refers to the terminal of Saipan system, etc.Above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
In specific implementation, not all file all needs encryption, and generally, the file that need encrypt is all vital document or is not easy to for privacy object the data that stranger consults.Alternatively, file can include but are not limited to: the screen locking application file, word file, excel file, picture file, video file, audio file, file, application file, desktop shortcuts file etc. of terminal.
A kind of file encryption that embodiment of the present invention composition graphs 1 to Fig. 8 provides the embodiment of the present invention, the method for deciphering and terminal are described.
Refer to Fig. 1, Fig. 1 is the first embodiment schematic flow sheet of the method for a kind of file encryption that the embodiment of the present invention provides.The method of the file encryption described in the present embodiment, comprises the following steps:
File in S101, reading terminals.
In specific implementation, terminal can read the file in terminal, and this file can be the file in network file, cache file, system file, RAM (random access memory) card or storer.
S102, obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer.
In specific implementation, terminal can obtain user and press the M group pressing data that M difference generate, and this M difference can be the arbitrfary point on touch-screen or the point in predeterminable area, this M be greater than 1 integer.
Further, the M group pressing data that this M difference generates, M difference can generate M group pressing data simultaneously, or, the M group pressing data that M difference can be generated by pressing during difference.
Further, pressing data can be dynamics that pressing touch-screen produces, the time of pressing touch-screen, the pressing contact area of touch-screen, pressing data also can be distance between different press points or multiple press points couples together the pattern formed.
Further, as a kind of special situation, when M is 1, one group of pressing data can be obtained.
S103, be encrypted to obtain encrypt file to described file according to described M group pressing data.
In specific implementation, terminal can be encrypted file according to this M group pressing data, by this M group pressing data as encryption key, and adopts predetermined encryption algorithm to be encrypted file, to obtain encrypt file.
The embodiment of the present invention is by the file in reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Be encrypted to obtain encrypt file to described file according to described M group pressing data.Adopt the embodiment of the present invention that M group pressing data can be adopted to be encrypted file, thus, in decrypting process, need mate according to M group pressing data, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Refer to Fig. 2, Fig. 2 is the second embodiment schematic flow sheet of the method for a kind of file encryption that the embodiment of the present invention provides.The method of the file encryption described in the present embodiment, comprises the following steps:
File in S201, reading terminals.
S202, obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer.
Wherein, the specific descriptions of step S201-step S202 refer to the step S101-step S102 of the method for the file encryption described in Fig. 1.
S203, choose the N group pressing data in described M group pressing data according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M.
In specific implementation, terminal can choose the N group pressing data in M group pressing data according to preset order, wherein preset order can be: when M group pressing data is difference, pressing produces, preset order can be the sequencing of pressing; Or the pressing dynamics that M is put is carried out descending sequence, and preset order is the order being up to N; Or the pressing area that M is put is carried out ascending sequence, and preset order is the minimum order to N; Or the compressing time length that M is put is carried out ascending sequence, and preset order is the minimum order to N; Further, detect the distance between M difference, chosen distance is less than the pressing data of the some correspondence of a certain threshold value as the N group pressing data chosen.After have chosen N group pressing data, this N group pressing data is generated the first character string, wherein, N is the integer being more than or equal to 1 and being less than M, such as, a kind of feasible embodiment, as: to press dynamics, pressing dynamics corresponding A 1-A5, namely the dynamics that presses is greater than 0 and is less than 12 Ns of corresponding A 1, pressing dynamics is more than or equal to 12 Ns and is less than 24 Ns of corresponding A 2, pressing dynamics is more than or equal to 24 Ns and is less than 36 Ns of corresponding A 3, pressing dynamics is more than or equal to 36 Ns and is less than 48 Ns of corresponding A 4, pressing dynamics is more than or equal to 48 Ns of corresponding A 5, pressing dynamics in first group of pressing data is 23 Ns, character in then corresponding character string is A2.
S204, the M-N pressing data in described M group pressing data except described N group pressing data is generated the second character string.
In specific implementation, the M-N group pressing data in M group pressing data except described N group pressing data can be generated the second character string by terminal.Can see step S203.
S205, by described first character string and described second word string synthesis encryption key.
In specific implementation, terminal can by the first character string and the second character string synthesis encryption key.Feasible mode can be encryption key shape as (first character string, the second character string).
S206, be encrypted described file according to predetermined encryption algorithm and described encryption key, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.
In specific implementation, terminal can be encrypted described file according to predetermined encryption algorithm and encryption key, and to obtain encrypt file, wherein, predetermined encryption algorithm is rivest, shamir, adelman.
Alternatively, alternatively, first cryptographic algorithm can include but are not limited to: data encryption algorithm is (English: DataEncryptionStandard, abbreviation: DES), IDEA is (English: InternationalDataEncryptionAlgorithm, abbreviation: IDEA), RSA, one-way hash algorithm is (English: Message-DigestAlgorithm5, abbreviation: MD5), Digital Signature Algorithm is (English: DigitalSignatureAlgorithm, abbreviation: DSA) or Advanced Encryption Standard (English: AdvancedEncryptionStandard, abbreviation: AES) etc.Preferably, predetermined encryption algorithm is rivest, shamir, adelman.
The embodiment of the present invention is by the file in reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Choose the N group pressing data in described M group pressing data according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M; M-N pressing data in described M group pressing data except described N group pressing data is generated the first character string; By described first character string and described second word string synthesis encryption key; Be encrypted described file according to predetermined encryption algorithm and described encryption key, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.Adopt the embodiment of the present invention that M group pressing data can be adopted to be encrypted file, thus, in decrypting process, need mate according to M group pressing data, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Refer to Fig. 3, Fig. 3 is the first embodiment schematic flow sheet of the method for a kind of file decryption that the embodiment of the present invention provides.The method of the file decryption described in the present embodiment, comprises the following steps:
Encrypt file in S301, reading terminals.
In specific implementation, encrypt file can be the encrypt file in network encryption file, buffer memory encrypt file, system encryption file, RAM (random access memory) card or storer.
S302, obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer.
In specific implementation, terminal can obtain user and press the M group pressing data that M difference generate, and this M difference can be the arbitrfary point on touch-screen or the point in predeterminable area, this M be greater than 1 integer.
Further, the M group pressing data that this M difference generates, M difference can generate M group pressing data simultaneously, or, the M group pressing data that M difference can be generated by pressing during difference.
Further, pressing data can be dynamics that pressing touch-screen produces, the time of pressing touch-screen, the pressing contact area of touch-screen, pressing data also can be distance between different press points or multiple press points couples together the pattern formed.
Further, as a kind of special situation, when M is 1, obtain one group of pressing data.
S303, described M group pressing data and M group are preset pressing data mate.
In specific implementation, M group pressing data and the default pressing data of M group can be mated by terminal.Such as, first group of pressing data and first group preset pressing data, each group pressing data in first group of pressing data can be preset pressing data mate with second group, or, first group of pressing data can be generated character string, default pressing data is preset characters string, judges whether this character string and preset characters string mate.
S304, when described M group pressing data and M group are preset pressing data the match is successful, described encrypt file to be decrypted, to obtain the file after deciphering.
In specific implementation, when M group pressing data and M group are preset pressing data the match is successful, this encrypt file is decrypted, to obtain the file after deciphering.
Alternatively, after M group pressing data is mated with M group preset data by terminal, in M group pressing data, N group pressing data and M group preset data are when the match is successful, information is shown at the display interface of this terminal, it fails to match for pointing out M-N group pressing data for this information, wherein, N is the integer being greater than 1 and being less than M.
Further alternatively, in M group pressing data, K group pressing data and M group preset data are when the match is successful, send safety instruction information, wherein to the account with this terminal binding, this account is mailbox or telephone number, and this K is the integer being greater than M/2 and being less than M.
Encrypt file in embodiment of the present invention reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Described M group pressing data and M group are preset pressing data mate; When described M group pressing data and M group are preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.The embodiment of the present invention is adopted to need M group pressing data to mate with the default pressing data of M group, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Refer to Fig. 4, Fig. 4 is the second embodiment schematic flow sheet of the method for a kind of file decryption that the embodiment of the present invention provides.The method of the file decryption described in the present embodiment, comprises the following steps:
Encrypt file in S401, reading terminals.
S402, obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer.
Wherein, the specific descriptions of step S401-step S402 refer to the step S301-step S302 of the method for the file encryption described in Fig. 3.
S403, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, described first group of pressing data is pressing dynamics be K1 and compressing time is K2, described second group of pressing data is K3 for pressing area, whether the described K1 judging in the described first group of pressing data described K2 whether be in first group of first pre-set interval and described first group of pressing data presetting the default pressing dynamics in pressing data is less than described first group of first predetermined threshold value presetting the default compressing time in pressing data.
In specific implementation, be 2 at M, i.e. 2 groups of pressing data, these 2 groups of pressing data can comprise first group of pressing data and second group of pressing data, wherein, first group of pressing data is: pressing dynamics is K1 and compressing time is K2, second group of pressing data is: pressing area is K3, and terminal can judge whether the described K1 in first group of pressing data is in first group and presets the first pre-set interval in pressing data and whether the K2 in described first group of pressing data is less than first group of first predetermined threshold value preset in pressing data.Such as, K1 is the 50, first pre-set interval is [40,80], then K1 is in this first pre-set interval.
S404, if so, judge whether the described K3 in described second group of pressing data is greater than the second predetermined threshold value that second group is preset the default pressing area in pressing data.
Particularly, terminal can judge whether the K3 in second group of pressing data is greater than second group of default pressing area second predetermined threshold value preset in pressing data, and this second predetermined threshold value is preset the size of pressing area.
S405, if so, described encrypt file to be decrypted, to obtain the file after deciphering.
Particularly, when M group pressing data and M group are preset pressing data the match is successful, terminal can be decrypted encrypt file, to obtain the file after deciphering.
As a kind of possible embodiment, terminal can read the encrypt file in terminal; Obtain the M group pressing data that user presses the generation of M difference, wherein, pressing data is at least one in pressing dynamics, compressing time and pressing area, M be greater than 1 integer; If M is 2, M group pressing data is 2 groups of pressing data, 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, be pressing dynamics when first group of pressing data be Y1, compressing time is when be Y2 and pressing area being Y3, can judge whether the Y1 of this first group of pressing data is greater than the 3rd predetermined threshold value that first group is preset the default pressing dynamics in pressing data; If so, judge whether the Y2 of this first group of pressing data is in the second pre-set interval that first group is preset the default compressing time in pressing data; If so, judge whether the Y3 of first group of pressing data is less than first group of default pressing area the 4th predetermined threshold value preset in pressing data; If so, second group of pressing data is preset pressing data mate with second group; If so, encrypt file is unlocked.
Thus, the embodiment of the present invention is adopted to need M group pressing data to mate with the default pressing data of M group, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Refer to Fig. 5 a, the structural representation of the first embodiment of the terminal of a kind of file encryption that Fig. 5 a provides for the embodiment of the present invention, the terminal described by the embodiment of the present invention can comprise: reading unit 501, acquiring unit 502 and ciphering unit 503, specific as follows:
Reading unit 501, for the file in reading terminals.
In specific implementation, reading unit 501 can read the file in terminal.This file can be the file in network file, cache file, system file, RAM (random access memory) card or storer.
Acquiring unit 502, press for obtaining user the M group pressing data that M difference generate, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer.
In specific implementation, acquiring unit 502 can obtain user and press the M group pressing data that M difference generate, and this M difference can be the arbitrfary point on touch-screen or the point in predeterminable area, this M be greater than 1 integer.
Further, the M group pressing data that this M difference generates, M difference can generate M group pressing data simultaneously, or, the M group pressing data that M difference can be generated by pressing during difference.
Further, pressing data can be dynamics that pressing touch-screen produces, the time of pressing touch-screen, the pressing contact area of touch-screen, pressing data also can be distance between different press points or multiple press points couples together the pattern formed.
Further, as a kind of special situation, when M is 1, obtain one group of pressing data.
Ciphering unit 503, is encrypted to obtain encrypt file to the file that described reading unit 501 reads for the M group pressing data got according to described acquiring unit 502.
In specific implementation, ciphering unit 503 can be encrypted file according to this M group pressing data, by this M group pressing data as encryption key, and adopts predetermined encryption algorithm to be encrypted file, to obtain encrypt file.
As a kind of possible embodiment, refer to Fig. 5 b, the ciphering unit of the terminal described in Fig. 5 a can comprise further: the first generation unit 5031, second generation unit 5032, synthesis unit 5033 and encryption sub-unit operable 5034, specific as follows:
First generation unit 5031, for choosing the N group pressing data in M group pressing data that described acquiring unit gets according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M.
In specific implementation, the first generation unit 5031 can choose the N group pressing data in M group pressing data according to preset order, wherein preset order can be: when M group pressing data in difference time pressing produce, preset order be pressing sequencing; Or the pressing dynamics that M is put is carried out descending sequence, and preset order is the order being up to N; Or the pressing area that M is put is carried out ascending sequence, and preset order is the minimum order to N; Or the compressing time length that M is put is carried out ascending sequence, and preset order is the minimum order to N; Further, detect the distance between M difference, chosen distance is less than the pressing data of the some correspondence of a certain threshold value as the N group pressing data chosen.After have chosen N group pressing data, this N group pressing data is generated the first character string, wherein, N is the integer being more than or equal to 1 and being less than M, such as, a kind of feasible embodiment, as: to press dynamics, pressing dynamics corresponding A 1-A5, namely the dynamics that presses is greater than 0 and is less than 12 Ns of corresponding A 1, pressing dynamics is more than or equal to 12 Ns and is less than 24 Ns of corresponding A 2, pressing dynamics is more than or equal to 24 Ns and is less than 36 Ns of corresponding A 3, pressing dynamics is more than or equal to 36 Ns and is less than 48 Ns of corresponding A 4, pressing dynamics is more than or equal to 48 Ns of corresponding A 5, pressing dynamics in first group of pressing data is 23 Ns, character in then corresponding character string is A2.
Second generation unit 5032, for generating the second character string by the M-N pressing data in described M group pressing data except described N group pressing data.
Synthesis unit 5033, for the second word string synthesis encryption key that the first character string of being generated by described first generation unit 5031 and described second generation unit 5032 generate.
In specific implementation, synthesis unit 5033 can by the first character string and the second character string synthesis encryption key.Feasible mode can be encryption key shape as (first character string, the second character string).
Encryption sub-unit operable 5034, be encrypted described file for the encryption key synthesized according to predetermined encryption algorithm and described synthesis unit 5033, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.
In specific implementation, encryption sub-unit operable 5034 can be encrypted described file according to predetermined encryption algorithm and encryption key, and to obtain encrypt file, wherein, predetermined encryption algorithm is rivest, shamir, adelman.
Alternatively, alternatively, first cryptographic algorithm can include but are not limited to: data encryption algorithm (English: DataEncryptionStandard, abbreviation: DES), IDEA IDEA, RSA, one-way hash algorithm MD5, Digital Signature Algorithm DSA or Advanced Encryption Standard AES etc.Preferably, predetermined encryption algorithm is rivest, shamir, adelman.
The terminal of the file encryption described by the embodiment of the present invention is by the file in reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Be encrypted to obtain encrypt file to described file according to described M group pressing data.Adopt the embodiment of the present invention that M group pressing data can be adopted to be encrypted file, thus, in decrypting process, need mate according to M group pressing data, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Refer to Fig. 6 a, the structural representation of the first embodiment of the terminal of a kind of file decryption that Fig. 6 a provides for the embodiment of the present invention, terminal described by the embodiment of the present invention can comprise: reading unit 601, acquiring unit 602, matching unit 603 and decryption unit 604, specific as follows:
Reading unit 601, for the encrypt file in reading terminals.
In specific implementation, reading unit 601 can read the encrypt file in terminal, and wherein, this encrypt file can be the encrypt file in network encryption file, buffer memory encrypt file, system encryption file, RAM (random access memory) card or storer.
Acquiring unit 602, press for obtaining user the M group pressing data that M difference generate, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer.
In specific implementation, acquiring unit 602 can obtain user and press the M group pressing data that M difference generate, and this M difference can be the arbitrfary point on touch-screen or the point in predeterminable area, this M be greater than 1 integer.
Further, the M group pressing data that this M difference generates, M difference can generate M group pressing data simultaneously, or, the M group pressing data that M difference can be generated by pressing during difference.
Further, pressing data can be dynamics that pressing touch-screen produces, the time of pressing touch-screen, the pressing contact area of touch-screen, pressing data also can be distance between different press points or multiple press points couples together the pattern formed.
Further, as a kind of special situation, when M is 1, obtain one group of pressing data.
Matching unit 603, presets pressing data for the M group pressing data that got by described acquiring unit 602 and M group and mates.
In specific implementation, M group pressing data and M group can be preset pressing data and mate by matching unit 603.Such as, first group of pressing data and first group preset pressing data, each group pressing data in first group of pressing data can be preset pressing data mate with second group, or, first group of pressing data can be generated character string, default pressing data is preset characters string, judges whether this character string and preset characters string mate.
Decryption unit 604, for match at described matching unit 603 described M group pressing data and M group preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.
In specific implementation, when M group pressing data and M group are preset pressing data the match is successful, decryption unit 604 is decrypted this encrypt file, to obtain the file after deciphering.
Alternatively, after M group pressing data is mated with M group preset data by terminal, in M group pressing data, N group pressing data and M group preset data are when the match is successful, information is shown at the display interface of this terminal, it fails to match for pointing out M-N group pressing data for this information, wherein, N is the integer being greater than 1 and being less than M.
Further alternatively, in M group pressing data, K group pressing data and M group preset data are when the match is successful, send safety instruction information, wherein to the account with this terminal binding, this account is mailbox or telephone number, and this K is the integer being greater than M/2 and being less than M.
As a kind of possible embodiment, as described in Fig. 6 b, the matching unit 603 of the terminal described in Fig. 6 a can comprise further: the first judging unit 6031 and the second judging unit 6032
First judging unit 6031, if be 2 for described M, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, described first group of pressing data is pressing dynamics be K1 and compressing time is K2, described second group of pressing data is K3 for pressing area, whether the described K1 judging in the described first group of pressing data described K2 whether be in first group of first pre-set interval and described first group of pressing data presetting the default pressing dynamics in pressing data is less than described first group of first predetermined threshold value presetting the default compressing time in pressing data.
Second judging unit 6032, if be yes for the judged result of described first judging unit 6031, judges whether the described K3 in described second group of pressing data is greater than the second predetermined threshold value that second group is preset the default pressing area in pressing data.
As a kind of possible embodiment, as described in Fig. 6 c, the matching unit 603 of the terminal described in Fig. 6 a can comprise further: the 3rd judging unit 604, the 4th judging unit 605, the 5th judging unit 606 and coupling subelement 604, specific as follows:
3rd judging unit 604, if be 2 for described M, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, be pressing dynamics in described first group of pressing data be Y1, compressing time is when be Y2 and pressing area being Y3, judge whether the described Y1 of described first group of pressing data is greater than the 3rd predetermined threshold value that first group is preset the default pressing dynamics in pressing data.
4th judging unit 605, if be yes for the judged result of described 3rd judging unit 604, judges whether the described Y2 of described first group of pressing data is in described first group of second pre-set interval presetting the default compressing time in pressing data.
5th judging unit 606, if be yes for the judged result of described 4th judging unit 605, judges whether the described Y3 of described first group of pressing data is less than described first group of the 4th predetermined threshold value presetting the default pressing area in pressing data.
Whether coupling subelement 607, if be yes for the judged result of described 5th judging unit 606, preset pressing data with second group that presets by described second group of pressing data and mate.
The terminal of the file decryption described by the embodiment of the present invention is by the encrypt file in reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Described M group pressing data and M group are preset pressing data mate; When described M group pressing data and M group are preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.The embodiment of the present invention is adopted to need M group pressing data to mate with the default pressing data of M group, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Refer to Fig. 7, the structural representation of the second embodiment of the terminal of a kind of file encryption that Fig. 7 provides for the embodiment of the present invention.Terminal described in the present embodiment comprises: at least one input equipment 1000; At least one output device 2000; At least one processor 3000, such as CPU; With storer 4000, above-mentioned input equipment 1000, output device 2000, processor 3000 are connected by bus 5000 with storer 4000.
Wherein, above-mentioned input equipment 1000 can be contact panel, common PC, liquid crystal display, touch screen, push button etc.
Above-mentioned storer 4000 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as magnetic disk memory.Above-mentioned storer 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output device 2000 and processor 3000, for calling the program code stored in storer 4000, perform and operate as follows:
Above-mentioned processor 3000, for:
File in reading terminals;
Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Be encrypted to obtain encrypt file to described file according to described M group pressing data.
As a kind of possible embodiment, above-mentioned processor 3000 is encrypted to obtain encrypt file to described file according to described M group pressing data, is specially:
Choose the N group pressing data in described M group pressing data according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M;
M-N pressing data in described M group pressing data except described N group pressing data is generated the second character string;
By described first character string and described second word string synthesis encryption key;
Be encrypted described file according to predetermined encryption algorithm and described encryption key, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.
The terminal of the file encryption described by the embodiment of the present invention is by the file in reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Be encrypted to obtain encrypt file to described file according to described M group pressing data.Adopt the embodiment of the present invention that M group pressing data can be adopted to be encrypted file, thus, in decrypting process, need mate according to M group pressing data, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
Refer to Fig. 8, the structural representation of the second embodiment of the terminal of a kind of file decryption that Fig. 8 provides for the embodiment of the present invention.Terminal described in the present embodiment comprises: at least one input equipment 1000; At least one output device 2000; At least one processor 3000, such as CPU; With storer 4000, above-mentioned input equipment 1000, output device 2000, processor 3000 are connected by bus 5000 with storer 4000.
Wherein, above-mentioned input equipment 1000 can be contact panel, common PC, liquid crystal display, touch screen, push button etc.
Above-mentioned storer 4000 can be high-speed RAM storer, also can be non-labile storer, such as magnetic disk memory.Above-mentioned storer 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output device 2000 and processor 3000, for calling the program code stored in storer 4000, perform and operate as follows:
Above-mentioned processor 3000, for:
Encrypt file in reading terminals;
Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Described M group pressing data and M group are preset pressing data mate;
When described M group pressing data and M group are preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.
As a kind of possible embodiment, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, described first group of pressing data is pressing dynamics be K1 and compressing time is K2, described second group of pressing data for pressing area be K3, described M group pressing data and M group are preset pressing data and are mated by above-mentioned processor 3000, are specially:
Whether the described K1 judging in the described first group of pressing data described K2 whether be in first group of first pre-set interval and described first group of pressing data presetting the default pressing dynamics in pressing data is less than described first group of first predetermined threshold value presetting the default compressing time in pressing data;
If so, judge whether the described K3 in described second group of pressing data is greater than the second predetermined threshold value that second group is preset the default pressing area in pressing data.
As a kind of possible embodiment, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, be pressing dynamics in described first group of pressing data be Y1, compressing time is when be Y2 and pressing area being Y3, described M group pressing data and the default pressing data of M group are mated by above-mentioned processor 3000, are specially:
Judge whether the described Y1 of described first group of pressing data is greater than the 3rd predetermined threshold value that first group is preset the default pressing dynamics in pressing data;
If so, judge whether the described Y2 of described first group of pressing data is in described first group of second pre-set interval presetting the default compressing time in pressing data;
If so, judge whether the described Y3 of described first group of pressing data is less than described first group of default pressing area the 4th predetermined threshold value preset in pressing data;
If so, described second group of pressing data is preset pressing data mate with second group.
The terminal of the file decryption described by the embodiment of the present invention is by the encrypt file in reading terminals; Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer; Described M group pressing data and M group are preset pressing data mate; When described M group pressing data and M group are preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.The embodiment of the present invention is adopted to need M group pressing data to mate with the default pressing data of M group, often organize pressing data and at least comprise a pressing data, and when all the match is successful for M group pressing data, just can be decrypted, thus, improve the security of the file stored in terminal.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and comprises the part or all of step of any one signal processing method recorded in said method embodiment when this program performs.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step may can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the division of such as said units, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If above-mentioned integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc., can be specifically the processor in computer equipment) perform each embodiment said method of the present invention.Wherein, and aforesaid storage medium can comprise: USB flash disk, portable hard drive, magnetic disc, CD, ROM (read-only memory) are (English: Read-OnlyMemory, abbreviation: ROM) or random access memory (English: RandomAccessMemory, abbreviation: RAM) etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a method for file encryption, is characterized in that, described method comprises:
File in reading terminals;
Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Be encrypted to obtain encrypt file to described file according to described M group pressing data.
2. the method for claim 1, is characterized in that, is describedly encrypted to obtain encrypt file to described file according to described M group pressing data, comprising:
Choose the N group pressing data in described M group pressing data according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M;
M-N pressing data in described M group pressing data except described N group pressing data is generated the second character string;
By described first character string and described second word string synthesis encryption key;
Be encrypted described file according to predetermined encryption algorithm and described encryption key, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.
3. a method for file decryption, is characterized in that, described method comprises:
Encrypt file in reading terminals;
Obtain the M group pressing data that user presses the generation of M difference, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Described M group pressing data and M group are preset pressing data mate;
When described M group pressing data and M group are preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.
4. method as claimed in claim 3, it is characterized in that, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, and wherein, described first group of pressing data is pressing dynamics be K1 and compressing time is K2, described second group of pressing data is K3 for pressing area
Describedly described M group pressing data and M group preset pressing data mate, comprising:
Whether the described K1 judging in the described first group of pressing data described K2 whether be in first group of first pre-set interval and described first group of pressing data presetting the default pressing dynamics in pressing data is less than described first group of first predetermined threshold value presetting the default compressing time in pressing data;
If so, judge whether the described K3 in described second group of pressing data is greater than the second predetermined threshold value that second group is preset the default pressing area in pressing data.
5. method as claimed in claim 3, it is characterized in that, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, be pressing dynamics in described first group of pressing data be Y1, compressing time is when be Y2 and pressing area being Y3
Describedly described M group pressing data and M group preset pressing data mate, comprising:
Judge whether the described Y1 of described first group of pressing data is greater than the 3rd predetermined threshold value that first group is preset the default pressing dynamics in pressing data;
If so, judge whether the described Y2 of described first group of pressing data is in described first group of second pre-set interval presetting the default compressing time in pressing data;
If so, judge whether the described Y3 of described first group of pressing data is less than described first group of default pressing area the 4th predetermined threshold value preset in pressing data;
If so, described second group of pressing data is preset pressing data mate with second group.
6. a terminal for file encryption, is characterized in that, described terminal comprises:
Reading unit, for the file in reading terminals;
Acquiring unit, press for obtaining user the M group pressing data that M difference generate, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Ciphering unit, is encrypted to obtain encrypt file to the file that described reading unit reads for the M group pressing data got according to described acquiring unit.
7. terminal as claimed in claim 6, it is characterized in that, described ciphering unit comprises:
First generation unit, for choosing the N group pressing data in M group pressing data that described acquiring unit gets according to preset order, and described N group pressing data is generated the first character string, wherein, described N is the integer being more than or equal to 1 and being less than described M;
Second generation unit, for generating the second character string by the M-N pressing data in described M group pressing data except described N group pressing data;
Synthesis unit, for the second word string synthesis encryption key the first character string of described first generation unit generation and described second generation unit generated;
Encryption sub-unit operable, for being encrypted described file according to the encryption key of predetermined encryption algorithm and the synthesis of described synthesis unit, to obtain encrypt file, wherein, described predetermined encryption algorithm is rivest, shamir, adelman.
8. a terminal for file decryption, is characterized in that, described terminal comprises:
Reading unit, for the encrypt file in reading terminals;
Acquiring unit, press for obtaining user the M group pressing data that M difference generate, wherein, described pressing data is at least one in pressing dynamics, compressing time and pressing area, described M be greater than 1 integer;
Matching unit, presets pressing data for the M group pressing data that got by described acquiring unit and M group and mates;
Decryption unit, for match at described matching unit described M group pressing data and M group preset pressing data the match is successful, described encrypt file is decrypted, to obtain the file after deciphering.
9. terminal as claimed in claim 8, it is characterized in that, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, and wherein, described first group of pressing data is pressing dynamics be K1 and compressing time is K2, second group of pressing data is K3 for pressing area, and described matching unit comprises:
First judging unit, whether the described K2 whether be in first group of first pre-set interval and described first group of pressing data presetting the default pressing dynamics in pressing data of the described K1 for judging in described first group of pressing data is less than described first group of first predetermined threshold value presetting the default compressing time in pressing data;
Second judging unit, if be yes for the judged result of described first judging unit, judges whether the described K3 in described second group of pressing data is greater than the second predetermined threshold value that second group is preset the default pressing area in pressing data.
10. terminal as claimed in claim 8, it is characterized in that, if described M is 2, described M group pressing data is 2 groups of pressing data, described 2 groups of pressing data comprise first group of pressing data and second group of pressing data, wherein, be pressing dynamics in described first group of pressing data be Y1, compressing time is when be Y2 and pressing area being Y3, described matching unit comprises:
3rd judging unit, for judging whether the described Y1 of described first group of pressing data is greater than the 3rd predetermined threshold value that first group is preset the default pressing dynamics in pressing data;
4th judging unit, if be yes for the judged result of described 3rd judging unit, judges whether the described Y2 of described first group of pressing data is in described first group of second pre-set interval presetting the default compressing time in pressing data;
5th judging unit, if be yes for the judged result of described 4th judging unit, judges whether the described Y3 of described first group of pressing data is less than described first group of the 4th predetermined threshold value presetting the default pressing area in pressing data.
Whether coupling subelement, if be yes for the judged result of described 5th judging unit, preset pressing data with second group by described second group of pressing data and mate.
CN201510537093.6A 2015-08-27 2015-08-27 A kind of file encryption, decryption method and terminal Expired - Fee Related CN105069360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510537093.6A CN105069360B (en) 2015-08-27 2015-08-27 A kind of file encryption, decryption method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510537093.6A CN105069360B (en) 2015-08-27 2015-08-27 A kind of file encryption, decryption method and terminal

Publications (2)

Publication Number Publication Date
CN105069360A true CN105069360A (en) 2015-11-18
CN105069360B CN105069360B (en) 2019-04-09

Family

ID=54498723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510537093.6A Expired - Fee Related CN105069360B (en) 2015-08-27 2015-08-27 A kind of file encryption, decryption method and terminal

Country Status (1)

Country Link
CN (1) CN105069360B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778376A (en) * 2015-11-24 2017-05-31 中兴通讯股份有限公司 Input method, device and user equipment
CN107038365A (en) * 2017-04-20 2017-08-11 滁州职业技术学院 The method and mobile terminal of a kind of file encryption
CN107450834A (en) * 2017-07-26 2017-12-08 珠海市魅族科技有限公司 A kind of method, apparatus of data deciphering, computer installation and computer-readable storage medium
CN107967107A (en) * 2016-10-20 2018-04-27 中兴通讯股份有限公司 One kind browses object lock method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853362A (en) * 2009-04-02 2010-10-06 鸿富锦精密工业(深圳)有限公司 Encryption/decryption system and method
CN103186744A (en) * 2011-12-29 2013-07-03 宇龙计算机通信科技(深圳)有限公司 Terminal encryption and decryption method and terminal
US20140143859A1 (en) * 2012-11-16 2014-05-22 Mario Linge Unlock touch screen using touch password
CN103870744A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Method and electronic device for verifying password
CN104281411A (en) * 2014-10-13 2015-01-14 惠州Tcl移动通信有限公司 Mobile terminal based touch screen unlocking method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853362A (en) * 2009-04-02 2010-10-06 鸿富锦精密工业(深圳)有限公司 Encryption/decryption system and method
CN103186744A (en) * 2011-12-29 2013-07-03 宇龙计算机通信科技(深圳)有限公司 Terminal encryption and decryption method and terminal
US20140143859A1 (en) * 2012-11-16 2014-05-22 Mario Linge Unlock touch screen using touch password
CN103870744A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Method and electronic device for verifying password
CN104281411A (en) * 2014-10-13 2015-01-14 惠州Tcl移动通信有限公司 Mobile terminal based touch screen unlocking method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778376A (en) * 2015-11-24 2017-05-31 中兴通讯股份有限公司 Input method, device and user equipment
CN107967107A (en) * 2016-10-20 2018-04-27 中兴通讯股份有限公司 One kind browses object lock method and system
CN107038365A (en) * 2017-04-20 2017-08-11 滁州职业技术学院 The method and mobile terminal of a kind of file encryption
CN107450834A (en) * 2017-07-26 2017-12-08 珠海市魅族科技有限公司 A kind of method, apparatus of data deciphering, computer installation and computer-readable storage medium

Also Published As

Publication number Publication date
CN105069360B (en) 2019-04-09

Similar Documents

Publication Publication Date Title
EP3289723B1 (en) Encryption system, encryption key wallet and method
CN108769027B (en) Secure communication method, device, mobile terminal and storage medium
CN105005731A (en) Data encryption and decryption methods and mobile terminal
CN107786331B (en) Data processing method, device, system and computer readable storage medium
CN104573551A (en) File processing method and mobile terminal
CN105160227A (en) Remote fingerprint verification method, user terminal and fingerprint verification system
CN105574418A (en) Data encryption method and apparatus
CN105069365A (en) Data processing method and mobile terminal
CN105069360A (en) File encryption and decryption methods and terminal
CN104915583A (en) Interface decryption processing method and mobile terminal
WO2017032128A1 (en) Terminal unlocking method and terminal
CN104768148A (en) Message encryption method and device
CN105760741A (en) Code input method, security chip and system
CN107248972B (en) Data encryption and decryption method and device and electronic equipment
CN105159589A (en) Pattern unlocking method and terminal
CN105933503B (en) Information processing method and electronic equipment
CN103985042A (en) Digital information encryption and decryption method based on NFC mobile phone and IC card
CN111368322B (en) File decryption method and device, electronic equipment and storage medium
CN105574429A (en) File data encryption and decryption method and device and terminal
CN103441854A (en) Link protection method and system
CN104994160B (en) Document transmission method and relevant apparatus and Transmission system
CN105405010B (en) Transaction device, transaction system using the same and transaction method
CN107889102A (en) The method and apparatus of information encryption and decryption in a kind of short message
CN105116997A (en) Data encryption and decryption method and smart watch
CN110147677A (en) The safe encrypted electronic signature mouse of quantum, computer and its encryption method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190409

CF01 Termination of patent right due to non-payment of annual fee