CN108512824B - Management method of home cloud files and mobile terminal - Google Patents
Management method of home cloud files and mobile terminal Download PDFInfo
- Publication number
- CN108512824B CN108512824B CN201810055910.8A CN201810055910A CN108512824B CN 108512824 B CN108512824 B CN 108512824B CN 201810055910 A CN201810055910 A CN 201810055910A CN 108512824 B CN108512824 B CN 108512824B
- Authority
- CN
- China
- Prior art keywords
- file
- cloud server
- sequence
- request instruction
- cloud
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3242—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a family cloud file management method and a mobile terminal, wherein each sequence in a list is associated with an account number on a family cloud, namely one account number corresponds to one sequence, the sequence comprises physical addresses of mobile terminals of all family members, and when a file is uploaded, the file is directly stored in the account number corresponding to the sequence comprising the first physical address through a cloud server, so that the convenience of uploading the file by the family members is improved, and the uploaded file can be stored in a storage space of the account number corresponding to the family cloud; meanwhile, when the download file is acquired, the cloud server encrypts the file first, then the mobile terminal acquires the encrypted file issued by the cloud server, decrypts the encrypted file through the corresponding decryption algorithm, so that the corresponding download file can be acquired, the problem that the file is easily attacked maliciously by hackers in the downloading process can be effectively prevented, and the safety of the user using the family cloud is ensured.
Description
Technical Field
The invention relates to the technical field of cloud ends, in particular to a management method of a family cloud end file and a mobile terminal.
Background
With the development of scientific technology, the cloud (cloud disk) technology is developed rapidly, so that uploading, downloading, using, managing, backing up and the like of files are greatly facilitated for users, the cloud storage system has a very prominent advantage, meanwhile, in order to meet the requirements of family members, the family cloud comes along with the operation, and family storage provides services such as information storage, reading, downloading and the like for family users. The user can upload common files, including an installation package, Word documents, PPT, EXCEL, pictures, video files, audio files, compressed files and the like to a family storage sharing space, namely, the files are stored in a family cloud, and as long as the user belonging to the family member of the current user can perform directory creation, file browsing, downloading sharing and the like in respective account cloud disks, but when the existing family cloud downloads the files, the mobile terminal directly downloads the files after logging in an account, the files are easy to be maliciously attacked by a hacker in the downloading process, so that data is tampered and implanted into a Trojan, the economic loss of the user is caused, and meanwhile, the user needs to log in an account and a password in each data uploading process, and the convenience is poor.
Disclosure of Invention
In view of the above, the present invention provides a method for managing a home cloud file and a mobile terminal, which solve the problem that the home cloud file is vulnerable to malicious attacks by hackers during the downloading process, and improve the convenience of uploading the file by a user.
In order to achieve the purpose, the invention adopts the technical scheme that:
the invention provides a management method of a family cloud file, which comprises the following steps:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
s3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
s4: and receiving an encrypted file issued by the cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction.
The invention also provides a mobile terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the following steps:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
s3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
s4: and receiving an encrypted file issued by the cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction.
The beneficial effects of the above technical scheme are:
the invention provides a family cloud file management method and a mobile terminal, wherein each sequence in a list is associated with an account number on a family cloud, namely one account number corresponds to one sequence, the sequence comprises physical addresses of mobile terminals of all family members, and when a file is uploaded, the file is directly stored in the account number corresponding to the sequence comprising the first physical address through a cloud server, so that the convenience of uploading the file by the family members is improved, and the uploaded file can be stored in a storage space of the account number corresponding to the family cloud; meanwhile, when the download file is acquired, the cloud server encrypts the file first, then the mobile terminal acquires the encrypted file issued by the cloud server, decrypts the encrypted file through the corresponding decryption algorithm, so that the corresponding download file can be acquired, the problem that the file is easily attacked maliciously by hackers in the downloading process can be effectively prevented, and the safety of the user using the family cloud is ensured.
Drawings
Fig. 1 is a schematic diagram illustrating major steps of a home cloud file management method;
fig. 2 is a schematic structural diagram of the mobile terminal.
The reference numbers illustrate:
1. a memory; 2. a processor.
Detailed Description
The invention is further described below with reference to the following figures and specific examples:
as shown in fig. 1, the present invention provides a method for managing a home cloud file, including the following steps:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
s3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
s4: and receiving an encrypted file issued by the cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction.
From the above description, the invention provides a management method of a family cloud file, wherein each sequence in a list is associated with an account on a family cloud, namely one account corresponds to one sequence, the sequence comprises physical addresses of mobile terminals of all family members, and when the file is uploaded, the file is directly stored in the account corresponding to the sequence comprising the first physical address through a cloud server, so that the convenience of uploading the file by the family members is improved, and the uploaded file can be ensured to be stored in a storage space of the account corresponding to the family cloud; meanwhile, when the download file is acquired, the cloud server encrypts the file first, then the mobile terminal acquires the encrypted file issued by the cloud server, decrypts the encrypted file through the corresponding decryption algorithm, so that the corresponding download file can be acquired, the problem that the file is easily attacked maliciously by hackers in the downloading process can be effectively prevented, and the safety of the user using the family cloud is ensured.
Further, the S3 specifically includes:
s31: the method comprises the steps that a sent login request instruction is sent to a cloud server, the login request instruction comprises a login account and a login password for logging in the family cloud, so that the cloud server can verify the legality of the login account and the login password, and if the verification result is legal, all files corresponding to the login account in the family cloud are loaded on a mobile terminal;
s32: selecting a required download file according to all the loaded files, and generating a second request instruction corresponding to the download file;
s33: sending the second request instruction to a cloud server, so that the cloud server acquires a first file corresponding to the second request instruction according to the second request instruction; acquiring a sequence corresponding to the login account in the list to obtain a second sequence; respectively calculating the hash value of each physical address in the second sequence and the hash value of the first file through a hash algorithm to obtain a plurality of hash values; storing the plurality of hash values in a preset first list; encrypting the first file through a preset private key to obtain an encrypted file; and packaging the encrypted file and the first list to obtain a file package, and issuing the file package.
As can be seen from the above description, according to the method, after the cloud server verifies the validity of the account and the password, a second sequence corresponding to the account is obtained, the hash values of each physical address and the first file in the second sequence are respectively calculated to obtain a plurality of hash values, and the plurality of hash values are stored in a preset first list; encrypting the first file through a preset private key to obtain an encrypted file; and packaging the encrypted file and the first list to obtain a file package, and issuing the file package, so that the cloud server is ensured not to be easily tampered with in the process of issuing the file package, and the security of file downloading is ensured.
Further, the S4 specifically includes:
receiving the file packet issued by the cloud server;
obtaining a first encrypted file and a second list according to the file packet;
decrypting the encrypted file according to the stored public key to obtain a second file; the public key is matched with the private key;
calculating to obtain a corresponding first hash value through a hash algorithm according to the first physical address and the second file, judging whether the first hash value exists in the second list, and if so, outputting the second file to be safe; otherwise, the second file is output, so that safety risk exists.
According to the description, the method can ensure that the mobile terminal can effectively judge the security of the file packet according to the first physical address of the mobile terminal, can effectively remind the user, further solves the problem that the mobile terminal is easy to be maliciously attacked by hackers in the downloading process, and ensures the security of the user using the home cloud.
Further, the S1 specifically includes:
sending a first request instruction for uploading a file to a cloud server, so that the cloud server generates request message information for acquiring a physical address after responding to the first request instruction;
receiving request message information issued by a cloud server;
responding the request message information to obtain response message information, wherein the response message information comprises a preset first physical address;
and sending response message information to the cloud server so that the cloud server obtains a first physical address according to the response message information, judging whether a sequence comprising the first physical address exists in the list or not, and if so, issuing response information responding to the first request instruction.
According to the description, the data can be safely and effectively processed when the home cloud file is uploaded by the method, and the convenience of uploading the file by a user is further ensured.
Further, the S2 specifically includes:
receiving response information sent by a cloud server, wherein the response information comprises first random generated by the cloud server randomly;
calculating a second hash value through a hash algorithm according to the first random number of the response information and the file to be uploaded;
sending the file and the second hash value to a cloud server, so that the cloud server calculates a third hash value through a hash algorithm according to the first random number in the stored response information and the received file; judging whether the third hash value is the same as the received second hash value or not, and if so, acquiring a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud; otherwise, deleting the file and transmitting failure information of file uploading to the first mobile terminal
According to the description, the method can ensure the security of file uploading and prevent lawless persons from maliciously uploading files to further attack the cloud server.
As shown in fig. 2, the present invention provides a mobile terminal, which includes a memory 1, a processor 2 and a computer program stored in the memory 1 and operable on the processor 2, wherein the processor 2 implements the following steps when executing the computer program:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
s3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
s4: and receiving an encrypted file issued by the cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction.
Further, in the mobile terminal, the S3 is specifically:
s31: the method comprises the steps that a sent login request instruction is sent to a cloud server, the login request instruction comprises a login account and a login password for logging in the family cloud, so that the cloud server can verify the legality of the login account and the login password, and if the verification result is legal, all files corresponding to the login account in the family cloud are loaded on a mobile terminal;
s32: selecting a required download file according to all the loaded files, and generating a second request instruction corresponding to the download file;
s33: sending the second request instruction to a cloud server, so that the cloud server acquires a first file corresponding to the second request instruction according to the second request instruction; acquiring a sequence corresponding to the login account in the list to obtain a second sequence; respectively calculating the hash value of each physical address in the second sequence and the hash value of the first file through a hash algorithm to obtain a plurality of hash values; storing the plurality of hash values in a preset first list; encrypting the first file through a preset private key to obtain an encrypted file; and packaging the encrypted file and the first list to obtain a file package, and issuing the file package.
Further, in the mobile terminal, the S4 is specifically:
receiving the file packet issued by the cloud server;
obtaining a first encrypted file and a second list according to the file packet;
decrypting the encrypted file according to the stored public key to obtain a second file; the public key is matched with the private key;
and calculating to obtain a corresponding first hash value through a hash algorithm according to the first physical address and the second file, judging whether the first hash value exists in the second list, and if so, outputting the second file to be safe.
Further, in the mobile terminal, the S1 is specifically:
sending a first request instruction for uploading a file to a cloud server, so that the cloud server generates request message information for acquiring a physical address after responding to the first request instruction;
receiving request message information issued by a cloud server;
responding the request message information to obtain response message information, wherein the response message information comprises a preset first physical address;
and sending response message information to the cloud server so that the cloud server obtains a first physical address according to the response message information, judging whether a sequence comprising the first physical address exists in the list or not, and if so, issuing response information responding to the first request instruction.
Further, in the mobile terminal, the S2 is specifically:
receiving response information sent by a cloud server, wherein the response information comprises first random generated by the cloud server randomly;
calculating a second hash value through a hash algorithm according to the first random number of the response information and the file to be uploaded;
sending the file and the second hash value to a cloud server, so that the cloud server calculates a third hash value through a hash algorithm according to the first random number in the stored response information and the received file; judging whether the third hash value is the same as the received second hash value or not, and if so, acquiring a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud; and otherwise, deleting the file and transmitting failure information uploaded by the file to the first mobile terminal.
Some preferred embodiments or application examples are listed below to help those skilled in the art to better understand the technical content of the present invention and the technical contribution of the present invention with respect to the prior art:
first preferred embodiment (or first application embodiment):
the invention provides a management method of a family cloud file, which is characterized by comprising the following steps:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
the S1 specifically includes:
sending a first request instruction for uploading a file to a cloud server, so that the cloud server generates request message information for acquiring a physical address after responding to the first request instruction;
receiving request message information issued by a cloud server;
responding the request message information to obtain response message information, wherein the response message information comprises a preset first physical address;
and sending response message information to the cloud server so that the cloud server obtains a first physical address according to the response message information, judging whether a sequence comprising the first physical address exists in the list or not, and if so, issuing response information responding to the first request instruction.
Wherein, one sequence comprises the physical addresses of the mobile terminals corresponding to all members of a family;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
the S2 specifically includes:
receiving response information sent by a cloud server, wherein the response information comprises first random generated by the cloud server randomly;
calculating a second hash value through a hash algorithm according to the first random number of the response information and the file to be uploaded;
sending the file and the second hash value to a cloud server, so that the cloud server calculates a third hash value through a hash algorithm according to the first random number in the stored response information and the received file; judging whether the third hash value is the same as the received second hash value or not, and if so, acquiring a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud; and otherwise, deleting the file and transmitting failure information uploaded by the file to the first mobile terminal.
S3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
the S3 specifically includes:
s31: the method comprises the steps that a sent login request instruction is sent to a cloud server, the login request instruction comprises a login account and a login password for logging in the family cloud, so that the cloud server can verify the legality of the login account and the login password, and if the verification result is legal, all files corresponding to the login account in the family cloud are loaded on a mobile terminal;
s32: selecting a required download file according to all the loaded files, and generating a second request instruction corresponding to the download file;
s33: sending the second request instruction to a cloud server, so that the cloud server acquires a first file corresponding to the second request instruction according to the second request instruction; acquiring a sequence corresponding to the login account in the list to obtain a second sequence; respectively calculating the hash value of each physical address in the second sequence and the hash value of the first file through a hash algorithm to obtain a plurality of hash values; storing the plurality of hash values in a preset first list; encrypting the first file through a preset private key to obtain an encrypted file; and packaging the encrypted file and the first list to obtain a file package, and issuing the file package.
S4: receiving an encrypted file issued by a cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction;
the S4 specifically includes:
receiving the file packet issued by the cloud server;
obtaining a first encrypted file and a second list according to the file packet;
decrypting the encrypted file according to the stored public key to obtain a second file; the public key is matched with the private key;
and calculating to obtain a corresponding first hash value through a hash algorithm according to the first physical address and the second file, judging whether the first hash value exists in the second list, and if so, outputting the second file to be safe.
Preferred embodiment two (or application embodiment two):
the invention provides a mobile terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the following steps:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
the S1 specifically includes:
sending a first request instruction for uploading a file to a cloud server, so that the cloud server generates request message information for acquiring a physical address after responding to the first request instruction;
receiving request message information issued by a cloud server;
responding the request message information to obtain response message information, wherein the response message information comprises a preset first physical address;
and sending response message information to the cloud server so that the cloud server obtains a first physical address according to the response message information, judging whether a sequence comprising the first physical address exists in the list or not, and if so, issuing response information responding to the first request instruction.
Wherein, one sequence comprises the physical addresses of the mobile terminals corresponding to all members of a family;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
the S2 specifically includes:
receiving response information sent by a cloud server, wherein the response information comprises first random generated by the cloud server randomly;
calculating a second hash value through a hash algorithm according to the first random number of the response information and the file to be uploaded;
sending the file and the second hash value to a cloud server, so that the cloud server calculates a third hash value through a hash algorithm according to the first random number in the stored response information and the received file; judging whether the third hash value is the same as the received second hash value or not, and if so, acquiring a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud; and otherwise, deleting the file and transmitting failure information uploaded by the file to the first mobile terminal.
S3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
the S3 specifically includes:
s31: the method comprises the steps that a sent login request instruction is sent to a cloud server, the login request instruction comprises a login account and a login password for logging in the family cloud, so that the cloud server can verify the legality of the login account and the login password, and if the verification result is legal, all files corresponding to the login account in the family cloud are loaded on a mobile terminal;
s32: selecting a required download file according to all the loaded files, and generating a second request instruction corresponding to the download file;
s33: sending the second request instruction to a cloud server, so that the cloud server acquires a first file corresponding to the second request instruction according to the second request instruction; acquiring a sequence corresponding to the login account in the list to obtain a second sequence; respectively calculating the hash value of each physical address in the second sequence and the hash value of the first file through a hash algorithm to obtain a plurality of hash values; storing the plurality of hash values in a preset first list; encrypting the first file through a preset private key to obtain an encrypted file; and packaging the encrypted file and the first list to obtain a file package, and issuing the file package.
S4: receiving an encrypted file issued by a cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction;
the S4 specifically includes:
receiving the file packet issued by the cloud server;
obtaining a first encrypted file and a second list according to the file packet;
decrypting the encrypted file according to the stored public key to obtain a second file; the public key is matched with the private key;
and calculating to obtain a corresponding first hash value through a hash algorithm according to the first physical address and the second file, judging whether the first hash value exists in the second list, and if so, outputting the second file to be safe.
The present invention has been described with reference to the above embodiments and the accompanying drawings, however, the above embodiments are only examples for carrying out the present invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. Rather, modifications and equivalent arrangements included within the spirit and scope of the claims are included within the scope of the invention.
Claims (8)
1. A management method of a home cloud file is characterized by comprising the following steps:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
s3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
s4: receiving an encrypted file issued by a cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction;
the S3 specifically includes:
s31: the method comprises the steps that a sent login request instruction is sent to a cloud server, the login request instruction comprises a login account and a login password for logging in the family cloud, so that the cloud server can verify the legality of the login account and the login password, and if the verification result is legal, all files corresponding to the login account in the family cloud are loaded on a mobile terminal;
s32: selecting a required download file according to all the loaded files, and generating a second request instruction corresponding to the download file;
s33: sending the second request instruction to a cloud server, so that the cloud server acquires a first file corresponding to the second request instruction according to the second request instruction; acquiring a sequence corresponding to the login account in the list to obtain a second sequence; respectively calculating the hash value of each physical address in the second sequence and the hash value of the first file through a hash algorithm to obtain a plurality of hash values; storing the plurality of hash values in a preset first list; encrypting the first file through a preset private key to obtain an encrypted file; and packaging the encrypted file and the first list to obtain a file package, and issuing the file package.
2. The method for managing the home cloud file according to claim 1, wherein the S4 specifically includes:
receiving the file packet issued by the cloud server;
obtaining a first encrypted file and a second list according to the file packet;
decrypting the encrypted file according to the stored public key to obtain a second file; the public key is matched with the private key;
and calculating to obtain a corresponding first hash value through a hash algorithm according to the first physical address and the second file, judging whether the first hash value exists in the second list, and if so, outputting the second file to be safe.
3. The method for managing the home cloud file according to claim 1, wherein the S1 specifically includes:
sending a first request instruction for uploading a file to a cloud server, so that the cloud server generates request message information for acquiring a physical address after responding to the first request instruction;
receiving request message information issued by a cloud server;
responding the request message information to obtain response message information, wherein the response message information comprises a preset first physical address;
and sending response message information to the cloud server so that the cloud server obtains a first physical address according to the response message information, judging whether a sequence comprising the first physical address exists in the list or not, and if so, issuing response information responding to the first request instruction.
4. The method for managing the home cloud file according to claim 1, wherein the S2 specifically includes:
receiving response information sent by a cloud server, wherein the response information comprises first random generated by the cloud server randomly;
calculating a second hash value through a hash algorithm according to the first random number of the response information and the file to be uploaded;
sending the file and the second hash value to a cloud server, so that the cloud server calculates a third hash value through a hash algorithm according to the first random number in the stored response information and the received file; judging whether the third hash value is the same as the received second hash value or not, and if so, acquiring a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud; and otherwise, deleting the file and transmitting failure information uploaded by the file to the first mobile terminal.
5. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
s1: sending a preset first physical address and a first request instruction corresponding to a file to be uploaded to a cloud server, so that the cloud server judges whether a sequence comprising the first physical address exists in the list or not according to a preset list, and if so, issuing response information responding to the first request instruction; the list comprises a plurality of sequences, each sequence comprises a plurality of physical addresses, and the sequences correspond to a plurality of account numbers preset on a family cloud in a one-to-one mode;
s2: after receiving the response information, sending a file to be uploaded to a cloud server so that the cloud server obtains a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud;
s3: sending a second request instruction for downloading the file to the cloud server, so that the cloud server encrypts the file corresponding to the second request instruction in the family cloud end to obtain an encrypted file, and issuing the encrypted file;
s4: receiving an encrypted file issued by a cloud server, and decrypting the encrypted file through a preset decryption algorithm to obtain a file corresponding to the second request instruction;
the S3 specifically includes:
s31: the method comprises the steps that a sent login request instruction is sent to a cloud server, the login request instruction comprises a login account and a login password for logging in the family cloud, so that the cloud server can verify the legality of the login account and the login password, and if the verification result is legal, all files corresponding to the login account in the family cloud are loaded on a mobile terminal;
s32: selecting a required download file according to all the loaded files, and generating a second request instruction corresponding to the download file;
s33: sending the second request instruction to a cloud server, so that the cloud server acquires a first file corresponding to the second request instruction according to the second request instruction; acquiring a sequence corresponding to the login account in the list to obtain a second sequence; respectively calculating the hash value of each physical address in the second sequence and the hash value of the first file through a hash algorithm to obtain a plurality of hash values; storing the plurality of hash values in a preset first list; encrypting the first file through a preset private key to obtain an encrypted file; and packaging the encrypted file and the first list to obtain a file package, and issuing the file package.
6. The mobile terminal according to claim 5, wherein the S4 is specifically:
receiving the file packet issued by the cloud server;
obtaining a first encrypted file and a second list according to the file packet;
decrypting the encrypted file according to the stored public key to obtain a second file; the public key is matched with the private key;
and calculating to obtain a corresponding first hash value through a hash algorithm according to the first physical address and the second file, judging whether the first hash value exists in the second list, and if so, outputting the second file to be safe.
7. The mobile terminal according to claim 5, wherein the S1 is specifically:
sending a first request instruction for uploading a file to a cloud server, so that the cloud server generates request message information for acquiring a physical address after responding to the first request instruction;
receiving request message information issued by a cloud server;
responding the request message information to obtain response message information, wherein the response message information comprises a preset first physical address;
and sending response message information to the cloud server so that the cloud server obtains a first physical address according to the response message information, judging whether a sequence comprising the first physical address exists in the list or not, and if so, issuing response information responding to the first request instruction.
8. The mobile terminal according to claim 5, wherein the S2 is specifically:
receiving response information sent by a cloud server, wherein the response information comprises first random generated by the cloud server randomly;
calculating a second hash value through a hash algorithm according to the first random number of the response information and the file to be uploaded;
sending the file and the second hash value to a cloud server, so that the cloud server calculates a third hash value through a hash algorithm according to the first random number in the stored response information and the received file; judging whether the third hash value is the same as the received second hash value or not, and if so, acquiring a sequence including a first physical address in a list to obtain a first sequence; acquiring a first account corresponding to the first sequence, and storing the file in a storage space corresponding to the first account in the family cloud; and otherwise, deleting the file and transmitting failure information uploaded by the file to the first mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810055910.8A CN108512824B (en) | 2018-01-20 | 2018-01-20 | Management method of home cloud files and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810055910.8A CN108512824B (en) | 2018-01-20 | 2018-01-20 | Management method of home cloud files and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108512824A CN108512824A (en) | 2018-09-07 |
CN108512824B true CN108512824B (en) | 2020-10-16 |
Family
ID=63374855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810055910.8A Active CN108512824B (en) | 2018-01-20 | 2018-01-20 | Management method of home cloud files and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108512824B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114006895A (en) * | 2021-09-23 | 2022-02-01 | 银盛通信有限公司 | Method for uploading file with high security |
CN114168555A (en) * | 2021-11-02 | 2022-03-11 | 北京中合谷投资有限公司 | Family cloud node equipment for distributed network |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231744A (en) * | 2011-06-30 | 2011-11-02 | Tcl集团股份有限公司 | Media file protection method, system, media file server and terminal |
CN102724302A (en) * | 2012-05-30 | 2012-10-10 | 中兴通讯股份有限公司 | Family data center system based on cloud storage and family data management method |
CN103295135A (en) * | 2012-02-22 | 2013-09-11 | 株式会社理光 | Device management apparatus, and device management system |
CN104283875A (en) * | 2014-09-28 | 2015-01-14 | 深圳市中科无软件有限公司 | Cloud disk authority management method |
CN104301436A (en) * | 2014-11-04 | 2015-01-21 | 北京奇虎科技有限公司 | Push method and device of content to be displayed, subscription method and device of content to be displayed and update method and device of content to be displayed |
CN105550593A (en) * | 2015-12-11 | 2016-05-04 | 北京奇虎科技有限公司 | Cloud disk file monitoring method and device based on local area network |
CN105740097A (en) * | 2016-01-26 | 2016-07-06 | 努比亚技术有限公司 | Terminal radio-frequency parameter processing apparatus and method |
CN105897667A (en) * | 2015-10-22 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Device access history tracking method, apparatus, server and system |
CN106658093A (en) * | 2016-12-27 | 2017-05-10 | 深圳市九洲电器有限公司 | Set top box and server interaction method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101818961B1 (en) * | 2011-11-16 | 2018-01-16 | 엘지전자 주식회사 | Contents transferring method and device, server using the method |
-
2018
- 2018-01-20 CN CN201810055910.8A patent/CN108512824B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231744A (en) * | 2011-06-30 | 2011-11-02 | Tcl集团股份有限公司 | Media file protection method, system, media file server and terminal |
CN103295135A (en) * | 2012-02-22 | 2013-09-11 | 株式会社理光 | Device management apparatus, and device management system |
CN102724302A (en) * | 2012-05-30 | 2012-10-10 | 中兴通讯股份有限公司 | Family data center system based on cloud storage and family data management method |
CN104283875A (en) * | 2014-09-28 | 2015-01-14 | 深圳市中科无软件有限公司 | Cloud disk authority management method |
CN104301436A (en) * | 2014-11-04 | 2015-01-21 | 北京奇虎科技有限公司 | Push method and device of content to be displayed, subscription method and device of content to be displayed and update method and device of content to be displayed |
CN105897667A (en) * | 2015-10-22 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Device access history tracking method, apparatus, server and system |
CN105550593A (en) * | 2015-12-11 | 2016-05-04 | 北京奇虎科技有限公司 | Cloud disk file monitoring method and device based on local area network |
CN105740097A (en) * | 2016-01-26 | 2016-07-06 | 努比亚技术有限公司 | Terminal radio-frequency parameter processing apparatus and method |
CN106658093A (en) * | 2016-12-27 | 2017-05-10 | 深圳市九洲电器有限公司 | Set top box and server interaction method and system |
Non-Patent Citations (1)
Title |
---|
未设置终端MAC绑定的情况下,提示"终端MAC地址绑定检查失败"或"绑定终端数量达到限制"问题的解决方法";马光彬;《http://kms2.h3c.com/View.aspx?id=40947》;20161208;第1-3页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108512824A (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9832016B2 (en) | Methods, systems and computer program product for providing verification code recovery and remote authentication | |
US8196186B2 (en) | Security architecture for peer-to-peer storage system | |
CN106063183B (en) | Method and apparatus for cloud assisted cryptography | |
CN108241517B (en) | Software upgrading method, client and electronic equipment | |
KR101786132B1 (en) | Low-latency peer session establishment | |
WO2015180691A1 (en) | Key agreement method and device for verification information | |
CN110597538A (en) | Software upgrading method based on OTA upgrading system and OTA upgrading system | |
US11153074B1 (en) | Trust framework against systematic cryptographic | |
CN112989426B (en) | Authorization authentication method and device, and resource access token acquisition method | |
CN107948235B (en) | JAR-based cloud data security management and audit device | |
CN114244508B (en) | Data encryption method, device, equipment and storage medium | |
CN108289074B (en) | User account login method and device | |
CN115473655B (en) | Terminal authentication method, device and storage medium for access network | |
US10122755B2 (en) | Method and apparatus for detecting that an attacker has sent one or more messages to a receiver node | |
CN109361681A (en) | The close certificate authentication method of state, device and equipment | |
US20140237239A1 (en) | Techniques for validating cryptographic applications | |
CN108512824B (en) | Management method of home cloud files and mobile terminal | |
CN111639357A (en) | Encryption network disk system and authentication method and device thereof | |
US20240039899A1 (en) | System and method for web-browser based end-to-end encrypted messaging and for securely implementing cryptography using client-side scripting in a web browser | |
CN109302442B (en) | Data storage proving method and related equipment | |
CN108259609B (en) | Family cloud data management method and cloud server | |
CN112437046A (en) | Communication method, system, electronic device and storage medium for preventing replay attack | |
CN112565156B (en) | Information registration method, device and system | |
CN116527292A (en) | File processing method, device, equipment and storage medium based on block chain | |
CN113037490A (en) | WEB access verification method, WEB access method, computer device, and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |