CN109361717A - Encrypted content file method, apparatus and electronic equipment - Google Patents

Encrypted content file method, apparatus and electronic equipment Download PDF

Info

Publication number
CN109361717A
CN109361717A CN201811566397.5A CN201811566397A CN109361717A CN 109361717 A CN109361717 A CN 109361717A CN 201811566397 A CN201811566397 A CN 201811566397A CN 109361717 A CN109361717 A CN 109361717A
Authority
CN
China
Prior art keywords
file
encryption
content
relevant parameter
parameter information
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.)
Pending
Application number
CN201811566397.5A
Other languages
Chinese (zh)
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.)
China Science And Technology (beijing) Co Ltd
Original Assignee
China Science And Technology (beijing) Co 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 China Science And Technology (beijing) Co Ltd filed Critical China Science And Technology (beijing) Co Ltd
Priority to CN201811566397.5A priority Critical patent/CN109361717A/en
Publication of CN109361717A publication Critical patent/CN109361717A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0625Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI

Abstract

The present invention provides a kind of encrypted content file method, apparatus and electronic equipments, are related to data encryption technology field, this method comprises: receiving file upload request, this document upload request carries the relevant parameter information of transmitting file;Upper transmitting file is obtained by way of file stream, while reading the file content of transmitting file on this;Encryption file corresponding with the file content read is generated according to relevant parameter information;Encryption file is stored in the database.User is while upper transmitting file in this way, file content is directly acquired by server end, and file content is encrypted, so that the file content of server end storage is encrypted, server end directly cannot be directly viewable its file content by obtaining physical file, to improve the safety of user information.

Description

Encrypted content file method, apparatus and electronic equipment
Technical field
The present invention relates to data encryption technology fields, more particularly, to a kind of encrypted content file method, apparatus and electronics Equipment.
Background technique
Web (World Wide Web, global wide area network, also referred to as WWW) application program is that one kind can pass through Web The application program of access, the largest benefit of web application are that user is easy to access application, and user only needs browsing Device does not need to install other software again.
It is such as public especially in the stronger local area network of some confidentiality in the management system of traditional web application Pacify in Intranet, for the convenience of work, upper transmitting file is that directly the file of unencryption is uploaded onto the server, that is to say, that tool The system manager of high permission can be directly viewable file content in server end, to affect user information Safety.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of encrypted content file method, apparatus and electronic equipments, not Influence the safety that user uploads or user information can be improved while downloading convenience.
In a first aspect, being applied to server end, the side the embodiment of the invention provides a kind of encrypted content file method Method includes:
File upload request is received, the file upload request carries the relevant parameter information of transmitting file;
The upper transmitting file is obtained by way of file stream, while reading the file content of the upper transmitting file;
Encryption file corresponding with the file content read is generated according to the relevant parameter information;
In the database by encryption file storage.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute State the file content for reading the upper transmitting file, comprising:
Byte reading is carried out to the file content of the upper transmitting file.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute Stating relevant parameter information includes file name;It is described corresponding with the file content read according to relevant parameter information generation Encryption file, comprising:
Cryptographic operation is carried out to the file content read;
New name is the physical file of the file name;
File content after encryption is written in the physical file, encryption file is obtained.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute Stating will be after encryption file storage in the database, which comprises
The relevant parameter information is recorded in a manner of corresponding with the encryption file in the database, under providing It carries;Wherein, the relevant parameter information includes file uplink time, file name, file size and file type.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect Possible embodiment, wherein it is described recorded in a manner of corresponding to the encryption file in the database it is described related Parameter information, after downloading to be provided, the method also includes:
The file download request that client is sent is received, carries file parameters in the file download request;
Encryption file corresponding with the file parameters is searched in the database;
The encryption file found is subjected to corresponding decryption oprerations, obtains decryption file;
The decryption file is issued to the client.
Second aspect, the embodiment of the present invention also provide a kind of encrypted content file device, are applied to server end, the dress It sets and includes:
First receiving module, for receiving file upload request, the file upload request carries the phase of transmitting file Close parameter information;
Read module for obtaining the upper transmitting file by way of file stream, while reading the upper transmitting file File content;
Generation module, for generating encryption text corresponding with the file content read according to the relevant parameter information Part;
Memory module, for storing in the database the encryption file.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute Stating relevant parameter information includes file name;The generation module is specifically used for:
Cryptographic operation is carried out to the file content read;
New name is the physical file of the file name;
File content after encryption is written in the physical file, encryption file is obtained.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein institute State device further include:
Logging modle, for recording the relevant parameter in a manner of corresponding with the encryption file in the database Information, to provide downloading;Wherein, the relevant parameter information includes file uplink time, file name, file size and file Type.
In conjunction with second of possible embodiment of second aspect, the embodiment of the invention provides the third of second aspect Possible embodiment, wherein described device further include:
Second receiving module carries in the file download request for receiving the file download request of client transmission There are file parameters;
Searching module, for searching encryption file corresponding with the file parameters in the database;
Deciphering module, the encryption file for will find carry out corresponding decryption oprerations, obtain decryption file;
Module is issued, for the decryption file to be issued to the client.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, including memory, processor, the memory In be stored with the computer program that can be run on the processor, the processor is realized when executing the computer program State method described in first aspect or its any possible embodiment.
The embodiment of the present invention bring it is following the utility model has the advantages that
In the embodiment of the present invention, file upload request is received, this document upload request carries the related ginseng of transmitting file Number information;Upper transmitting file is obtained by way of file stream, while reading the file content of transmitting file on this;According to relevant parameter Information generates encryption file corresponding with the file content read;Encryption file is stored in the database.User exists in this way While upper transmitting file, file content is directly acquired by server end, and file content is encrypted, so that service Device end storage file content be it is encrypted, server end cannot directly by acquisition physical file be directly viewable its file Content.Therefore, using encrypted content file method, apparatus provided in an embodiment of the present invention and electronic equipment, neither influence user It uploads, the convenience of downloading, and improves the safety of user information.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification and attached drawing Specifically noted structure is achieved and obtained.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of encrypted content file method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another encrypted content file method provided in an embodiment of the present invention;
Fig. 3 is a kind of interaction schematic diagram of server end and client provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of encrypted content file device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another encrypted content file device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
In the higher local area network of some safeties, such as public security Intranet, in order to improve working efficiency, WEB application program pipe Reason system such as census register management system etc., upper transmitting file are that directly the file of unencryption is uploaded onto the server.And server admin Person is only technology operation maintenance personnel, although the permission in system administration is very high, does not have the permission for knowing file content.One As in order to system operation management, server managers can often check, delete file content and configuration user's power Limit etc. has highest permission.A large amount of household register data, case data are stored but in police field, in file server, These file contents only allow related personnel in charge of the case to know, are only that the server managers of IT operation maintenance personnel obtain without that should allow Know, but the file content of user's upload can be directly viewable in server end at present, the safety of user information is lower.It is based on This, a kind of encrypted content file method, apparatus provided in an embodiment of the present invention and electronic equipment, by adding to file content Close processing can prevent server end to be directly viewable the file content of user's upload, do while not influencing convenience for users The confidentiality of user information has been arrived, namely has improved the safety of user information.
For convenient for understanding the present embodiment, first to a kind of encrypted content file side disclosed in the embodiment of the present invention Method describes in detail.
Embodiment one:
The embodiment of the invention provides a kind of encrypted content file method, this method is applied to server end, and this method can To be executed by server end.The corresponding web application of server end can be, but not limited to be based on Spring Boot frame structure It builds, such as using Spring Boot, JPA, Mysql frame builds the corresponding web application of server end.
Fig. 1 is a kind of flow diagram of encrypted content file method provided in an embodiment of the present invention, as shown in Figure 1, should Method including the following steps:
Step S102, receives file upload request, and this document upload request carries the relevant parameter information of transmitting file.
After user logs in the upload file components page write in advance on the browser of client, filesselected is simultaneously executed When upload operation, server end can receive file upload request.Server end parses this document upload request can be with Obtain the relevant parameter information of transmitting file, relevant parameter information can be, but not limited to include file uplink time, file name, File size and file type etc..
Step S104 obtains upper transmitting file by way of file stream, while reading the file content of transmitting file on this.
After user executes upload operation on the client, client uploads onto the server file to be uploaded in a streaming manner End;While server end obtains upper transmitting file by way of stream, byte reading is carried out to file content.
Step S106 generates encryption file corresponding with the file content read according to above-mentioned relevant parameter information.
After server end reads file content, the file content read is encrypted, regeneration is corresponding to be added Ciphertext part.Symmetric encipherment algorithm, such as DES (Data Encryption Standard, data encryption mark can be used when encryption It is quasi-) algorithm (also known as data encryption algorithm, Data Encryption Algorithm, DEA), 3DES algorithm, Blowfish calculation Method or RC5 algorithm etc.;Rivest, shamir, adelman can also be used, such as RSA cryptographic algorithms, ElGamal Encryption Algorithm, knapsack are calculated Method or ECC (Elliptic Curve Cryptography, elliptic curve encryption algorithm) etc..
In some possible embodiments, above-mentioned relevant parameter information includes file name, read file content with Afterwards, the physical file of same file name is generated, then the file content after encryption is written to newly-generated physical file In.This completes the operations for uploading encrypted content file.Based on this, in some possible embodiments, above-mentioned steps S106 includes: to carry out cryptographic operation to the file content read;New name is the physical file of above-mentioned file name;It will add Close treated that file content is written in the physical file, obtains encryption file.
Step S108, in the database by the storage of above-mentioned encryption file.
Database can use Mysql database.After above-mentioned encryption file is stored in Mysql database, Relevant parameter information (file uplink time, file name, file size, the files classes of upper transmitting file are recorded in Mysql database Type etc.), to provide downloading.In this way, the file stored in database is encrypted state, can not directly be viewed in server end File content.
In the embodiment of the present invention, file upload request is received, this document upload request carries the related ginseng of transmitting file Number information;Upper transmitting file is obtained by way of file stream, while reading the file content of transmitting file on this;According to relevant parameter Information generates encryption file corresponding with the file content read;Encryption file is stored in the database.User exists in this way While upper transmitting file, file content is directly acquired by server end, and file content is encrypted, so that service Device end storage file content be it is encrypted, server end cannot directly by acquisition physical file be directly viewable its file Content.Therefore, using encrypted content file method provided in an embodiment of the present invention, the safety of user information is improved.
Fig. 2 is the flow diagram of another encrypted content file method provided in an embodiment of the present invention, and this method is Fig. 1 The follow-up process of shown step, as shown in Fig. 2, method includes the following steps:
Step S202 receives the file download request that client is sent, carries file parameters in this document downloading request.
In downloading process, user enters the listed files page on the browser of client, by clicking download function, By relevant file parameters (the relevant parameter information of file) incoming service device end.
Step S204 searches encryption file corresponding with above-mentioned file parameters in the database.
Corresponding physical file is searched out in the database according to above-mentioned file parameters.
The encryption file found is carried out corresponding decryption oprerations by step S206, obtains decryption file.
The file content of the encryption file found is read, this document content is encrypted state, is needed by solving accordingly Operation is decrypted in close algorithm again, could revert back original content and come.Here the decipherment algorithm that uses and when encrypting before The Encryption Algorithm of use is corresponding.Specifically, encrypted file content is read in a streaming manner, carries out corresponding decryption behaviour Make, obtains decryption file.
Above-mentioned decryption file is issued to client by step S208.
The file content of user local is downloaded in this way with regard to still original content, and the file content on server is to add After close, such server-side directly cannot be directly viewable its file content by obtaining physical file.
In order to make it easy to understand, the embodiment of the invention also provides the interaction schematic diagrames of a kind of server end and client, such as Shown in Fig. 3, client uploads files to server end, and server end carries out the file content of upload in a manner of file stream Des encryption, and encryption file is stored into database;Client request downloading file when, server end from Corresponding physical file is found in database, DES decryption is carried out in a manner of file stream to the physical file found, and will Decryption file is issued to client.
DES public key can store in server in some independent region, and server reads public key content when upper transmitting file File is encrypted.When user downloads file, server reads public key content and is decrypted while file download.It is right It is not influenced in the user for uploading and downloading, user perceives the process less than encrypting and decrypting, also obtains less than public key content, guarantees Public key does not leak.And the people for directly accessing server, due to that can not know public key, also just can not directly decrypt file from And learn file content, it ensure that the safety of file.
It should be noted that 2 server ends shown in Fig. 3 are the same server end, using 2 server ends Form just for the sake of clearly identifying upload procedure and downloading process.
Lower mask body introduces des encryption:
(1) data encryption algorithm is a kind of symmetric encipherment algorithm.Cryptographic algorithm is the general designation of Encryption Algorithm and decipherment algorithm, It is the core of cipher system.Cryptographic algorithm can regard the combination of some exchanges as.When input is plaintext, by these changes It changes, output is just ciphertext, this is the process of encryption exchange, and cryptographic algorithm is known as Encryption Algorithm at this time.Conversely, when inputting as ciphertext When, by cryptographic transformation, export as in plain text, here it is the processes of decryption exchange, and cryptographic algorithm is known as decipherment algorithm at this time.
(2) (the 8th of every group is as odd even school for DES uses one 56 key and additional 8 bit parity check position Test position), generate maximum 64 packet sizes.This is the block cipher of an iteration, using the referred to as technology of Feistel, It is middle that the text block of encryption is split into two halves.Using sub-key to wherein half application circulatory function, then by output and the other half Carry out nonequivalence operation;Then this two halves is exchanged, this process will continue to down, but the last one circulation does not exchange.DES is used 16 wheel circulations, use four kinds of exclusive or, displacement, replacement, shifting function basic operations.
Embodiment two:
Corresponding to above-described embodiment one, the embodiment of the invention also provides a kind of encrypted content file device, which is answered For server end.Fig. 4 is a kind of structural schematic diagram of encrypted content file device provided in an embodiment of the present invention, such as Fig. 4 institute Show, which includes:
First receiving module 42, for receiving file upload request, this document upload request carries the phase of transmitting file Close parameter information;
Read module 44 for obtaining upper transmitting file by way of file stream, while being read in the file of upper transmitting file Hold;
Generation module 46, for generating encryption text corresponding with the file content read according to above-mentioned relevant parameter information Part;
Memory module 48, for file storage will to be encrypted in the database.
Optionally, above-mentioned read module 44 is specifically used for: carrying out byte reading to the file content of upper transmitting file.
Optionally, above-mentioned relevant parameter information includes file name;Above-mentioned generation module has 46 bodies and is used for: to what is read File content carries out cryptographic operation;New name is the physical file of above-mentioned file name;By the file content after encryption It is written in the physical file, obtains encryption file.
In the embodiment of the present invention, the first receiving module 42 receives file upload request, and this document upload request carries The relevant parameter information of transmitting file;Read module 44 obtains upper transmitting file by way of file stream, while reading upload text The file content of part;Generation module 46 generates encryption file corresponding with the file content read according to relevant parameter information; Memory module 48 will encrypt file storage in the database.User so directly obtains while upper transmitting file, by server end File content is taken, and file content is encrypted, so that the file content of server end storage is encrypted, clothes Business device end directly cannot be directly viewable its file content by obtaining physical file.Therefore, it is provided using the embodiment of the present invention Encrypted content file device, improve the safety of user information.
Fig. 5 is the structural schematic diagram of another encrypted content file device provided in an embodiment of the present invention, as shown in figure 5, On the basis of fig. 4, above-mentioned apparatus further include:
Logging modle 50, for recording relevant parameter information in a manner of corresponding with encryption file in the database, to mention For downloading;Wherein, relevant parameter information includes file uplink time, file name, file size and file type.
Further, as shown in figure 5, above-mentioned apparatus further include:
Second receiving module 52 carries in this document downloading request for receiving the file download request of client transmission There are file parameters;
Searching module 54, for searching encryption file corresponding with file parameters in the database;
Deciphering module 56, the encryption file for will find carry out corresponding decryption oprerations, obtain decryption file;
Module 58 is issued, is issued to client for file will to be decrypted.
Embodiment three:
Referring to Fig. 6, the embodiment of the present invention also provides a kind of electronic equipment 100, comprising: processor 60, memory 61, bus 62 and communication interface 63, the processor 60, communication interface 63 and memory 61 are connected by bus 62;Processor 60 is for holding The executable module stored in line storage 61, such as computer program.
Wherein, memory 61 may include high-speed random access memory (RAM, Random Access Memory), It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least One communication interface 63 (can be wired or wireless) realizes the communication between the system network element and at least one other network element Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 62 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 6, it is not intended that an only bus or A type of bus.
Wherein, memory 61 is for storing program, and the processor 60 executes the journey after receiving and executing instruction Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle In device 60, or realized by processor 60.
Processor 60 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 60 or the instruction of software form.Above-mentioned Processor 60 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the storage medium of field maturation.The storage medium is located at memory 61, and processor 60 reads the information in memory 61, in conjunction with Its hardware completes the step of above method.
In encrypted content file device and electronic equipment, with file provided by the above embodiment provided in an embodiment of the present invention Hold encryption method technical characteristic having the same and reaches identical technical effect so also can solve identical technical problem.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description And the specific work process of electronic equipment, it can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table It is not limit the scope of the invention up to formula and numerical value.
The flow chart and block diagram in the drawings show the productions of the method and computer program of multiple embodiments according to the present invention The architecture, function and operation in the cards of product.In this regard, each box in flowchart or block diagram can represent one A part of a module, section or code, a part of the module, section or code include one or more for real The executable instruction of logic function as defined in existing.It should also be noted that in some implementations as replacements, it is marked in the box Function can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually substantially simultaneously It executes capablely, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that frame The combination of figure and/or each box in flow chart and the box in block diagram and or flow chart, can be as defined in executing Function or the dedicated hardware based system of movement are realized, or can be come using a combination of dedicated hardware and computer instructions It realizes.
The computer program product of encrypted content file method is carried out provided by the embodiment of the present invention, including stores place The computer readable storage medium of the executable non-volatile program code of device is managed, the instruction that said program code includes can be used for Previous methods method as described in the examples is executed, specific implementation can be found in embodiment of the method, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can combine Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be through some communication interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of encrypted content file method, which is characterized in that be applied to server end, which comprises
File upload request is received, the file upload request carries the relevant parameter information of transmitting file;
The upper transmitting file is obtained by way of file stream, while reading the file content of the upper transmitting file;
Encryption file corresponding with the file content read is generated according to the relevant parameter information;
In the database by encryption file storage.
2. the method according to claim 1, wherein the file content for reading the upper transmitting file, comprising:
Byte reading is carried out to the file content of the upper transmitting file.
3. the method according to claim 1, wherein the relevant parameter information includes file name;It is described to press Encryption file corresponding with the file content read is generated according to the relevant parameter information, comprising:
Cryptographic operation is carried out to the file content read;
New name is the physical file of the file name;
File content after encryption is written in the physical file, encryption file is obtained.
4. the method according to claim 1, wherein it is described by the encryption file storage in the database it Afterwards, which comprises
The relevant parameter information is recorded, in a manner of corresponding with the encryption file in the database to provide downloading; Wherein, the relevant parameter information includes file uplink time, file name, file size and file type.
5. according to the method described in claim 4, it is characterized in that, it is described in the database with the encryption file pair The mode answered records the relevant parameter information, after downloading to be provided, the method also includes:
The file download request that client is sent is received, carries file parameters in the file download request;
Encryption file corresponding with the file parameters is searched in the database;
The encryption file found is subjected to corresponding decryption oprerations, obtains decryption file;
The decryption file is issued to the client.
6. a kind of encrypted content file device, which is characterized in that be applied to server end, described device includes:
First receiving module, for receiving file upload request, the file upload request carries the related ginseng of transmitting file Number information;
Read module for obtaining the upper transmitting file by way of file stream, while reading the file of the upper transmitting file Content;
Generation module, for generating encryption file corresponding with the file content read according to the relevant parameter information;
Memory module, for storing in the database the encryption file.
7. device according to claim 6, which is characterized in that the relevant parameter information includes file name;The life It is specifically used at module:
Cryptographic operation is carried out to the file content read;
New name is the physical file of the file name;
File content after encryption is written in the physical file, encryption file is obtained.
8. device according to claim 6, which is characterized in that described device further include:
Logging modle, for recording the relevant parameter letter in a manner of corresponding with the encryption file in the database Breath, to provide downloading;Wherein, the relevant parameter information includes file uplink time, file name, file size and files classes Type.
9. device according to claim 8, which is characterized in that described device further include:
Second receiving module carries text in the file download request for receiving the file download request of client transmission Part parameter;
Searching module, for searching encryption file corresponding with the file parameters in the database;
Deciphering module, the encryption file for will find carry out corresponding decryption oprerations, obtain decryption file;
Module is issued, for the decryption file to be issued to the client.
10. a kind of electronic equipment, including memory, processor, it is stored with and can runs on the processor in the memory Computer program, which is characterized in that the processor realizes any one of claim 1-5 when executing the computer program The method.
CN201811566397.5A 2018-12-20 2018-12-20 Encrypted content file method, apparatus and electronic equipment Pending CN109361717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811566397.5A CN109361717A (en) 2018-12-20 2018-12-20 Encrypted content file method, apparatus and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811566397.5A CN109361717A (en) 2018-12-20 2018-12-20 Encrypted content file method, apparatus and electronic equipment

Publications (1)

Publication Number Publication Date
CN109361717A true CN109361717A (en) 2019-02-19

Family

ID=65329992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811566397.5A Pending CN109361717A (en) 2018-12-20 2018-12-20 Encrypted content file method, apparatus and electronic equipment

Country Status (1)

Country Link
CN (1) CN109361717A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021164462A1 (en) * 2020-02-21 2021-08-26 深圳壹账通智能科技有限公司 Data encryption method, data decryption method, computer device, and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2921982A1 (en) * 2014-03-20 2015-09-23 Gould Tech Solutions Limited Apparatus and method for content handling
US20150381587A1 (en) * 2012-08-29 2015-12-31 Box, Inc. Upload and download streaming encryption to/from a cloud-based platform
CN106254324A (en) * 2016-07-26 2016-12-21 杭州文签网络技术有限公司 A kind of encryption method storing file and device
CN106657267A (en) * 2016-11-15 2017-05-10 华中科技大学 Cloud storage system based on edge server
CN107528917A (en) * 2017-09-13 2017-12-29 马上消费金融股份有限公司 A kind of file memory method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150381587A1 (en) * 2012-08-29 2015-12-31 Box, Inc. Upload and download streaming encryption to/from a cloud-based platform
EP2921982A1 (en) * 2014-03-20 2015-09-23 Gould Tech Solutions Limited Apparatus and method for content handling
CN106254324A (en) * 2016-07-26 2016-12-21 杭州文签网络技术有限公司 A kind of encryption method storing file and device
CN106657267A (en) * 2016-11-15 2017-05-10 华中科技大学 Cloud storage system based on edge server
CN107528917A (en) * 2017-09-13 2017-12-29 马上消费金融股份有限公司 A kind of file memory method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021164462A1 (en) * 2020-02-21 2021-08-26 深圳壹账通智能科技有限公司 Data encryption method, data decryption method, computer device, and medium

Similar Documents

Publication Publication Date Title
TWI750223B (en) Blockchain encrypted radio frequency chip storage design method
CN109040090B (en) A kind of data ciphering method and device
CN110768787B (en) Data encryption and decryption method and device
CN110061840A (en) Data ciphering method, device, computer equipment and storage medium
CN106961427B (en) A kind of ciphertext data search method based on 5g communication standard
CN106571905A (en) Numeric data homomorphic order-preserving encryption method
CN109922084A (en) Key management method, device and electronic equipment
CN111783124A (en) Data processing method and device based on privacy protection and server
CN105071927A (en) Mobile device data local storage method
CN103873236A (en) Searchable encryption method and equipment thereof
JP2014175970A (en) Information distribution system, information processing device, and program
CN104967693A (en) Document similarity calculation method facing cloud storage based on fully homomorphic password technology
CN110474767A (en) Chip keys method for burn-recording and system under a kind of off-line state
CN109005184A (en) File encrypting method and device, storage medium, terminal
KR101697868B1 (en) Method for encrypting data for sharing or searching the data and apparatus for performing the method
CN110175169A (en) A kind of encryption data De-weight method, system and relevant apparatus
CN108540486A (en) The generation of cloud key and application method
CN112074889A (en) Secret search device and secret search method
KR101899130B1 (en) Methods for encrypting data, decrypting data and apparatus using the same
US10027632B2 (en) Data view based on context
TW201630378A (en) Key splitting
CN112380404B (en) Data filtering method, device and system
CN109923829A (en) Reach an agreement to secret value
CN109361717A (en) Encrypted content file method, apparatus and electronic equipment
CN108365952A (en) A kind of method of registration, system and intelligent key safety equipment

Legal Events

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

Address after: Zone B, 19 / F, building A1, 3333 Xiyou Road, hi tech Zone, Hefei City, Anhui Province

Applicant after: Dingfu Intelligent Technology Co.,Ltd.

Address before: Room 630, 6th floor, Block A, Wanliu Xingui Building, 28 Wanquanzhuang Road, Haidian District, Beijing

Applicant before: DINFO (BEIJING) SCIENCE DEVELOPMENT Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20190219

RJ01 Rejection of invention patent application after publication