Key transmission system and method during slimming data sharing
Technical Field
The invention relates to the technical field of data processing, in particular to a key transmission system and a key transmission method during slimming data sharing.
Background
With the development of society, the concept of data sharing has become more and more popular. A plurality of users can upload and download data through the interaction of the client and the cloud server, and can acquire the data uploaded by other people, so that more applications based on big data are realized. However, in the data sharing era, data security cannot be ignored while data acquisition is facilitated.
The user can produce some relevant with the body-building action relevant data of body in the realization weight-reducing process through the body-building mode, through the theory of data sharing, can realize the sharing of weight-reducing data, can refer to other people's body-building frequency, body-building intensity and weight-reducing achievement for example and assist and appoint oneself weight-reducing body-building plan. However, if a complete slimming data sharing platform is established, on the basis of realizing data cloud sharing, private information of a user is also ensured, which is a technical problem still to be solved currently.
Disclosure of Invention
The invention provides a key transmission system and a key transmission method during weight-reducing data sharing, which aim to overcome the defects in the prior art, carry out hierarchical management on the weight-reducing data, and ensure the sharing of the weight-reducing data and the safety of some private information because different users have different reading authorities.
In order to achieve the above object, the present invention has the following configurations:
the key transmission method during the thin body data sharing comprises the following steps:
the cloud server receives and stores slimming data of a plurality of users, records the acquiring time of the slimming data, and divides the slimming data of each user into slimming data with a plurality of reading authorities;
the cloud server sets different temporary keys for the slimming data of each reading authority respectively, and encrypts the corresponding slimming data by using the temporary keys;
the cloud server updates the temporary key of the slimming data of each reading authority at intervals of preset time, and re-encrypts the corresponding slimming data by using the updated temporary key;
the cloud server stores account names and account passwords of all registered users and reading authorities of the registered users;
the method comprises the steps that a cloud server receives a slimming data acquisition request sent by a user through a client, wherein the slimming data acquisition request comprises an account name and an account password of the user;
the cloud server judges whether the user is a platform registered user or not according to the account name and the account password of the user in the slimming data acquisition request, if so, judges whether the account password is correct, and if the account password is correct, the user logs in successfully;
after the user logs in successfully, the cloud server inquires the reading authority of the user and sends a temporary key corresponding to the slimming data of which the reading authority is equal to or lower than the reading authority of the user to the user;
after the user logs in successfully, the cloud server searches whether the slimming data of the user are stored or not, and if yes, a temporary key of the slimming data of the user is sent to the user;
and the client of the user downloads the corresponding slimming data to the local according to the slimming data acquisition request of the user, and decrypts the downloaded slimming data by adopting the temporary secret key corresponding to the slimming data.
Optionally, the slimming data includes body assessment data of the user and fitness data of the user, and the cloud server receives the slimming data of the users, including the cloud server receiving the fitness data of the user from the fitness devices and receiving the body assessment data of the user from the fitness devices.
Optionally, the cloud server receives slimming data of a plurality of users, including the following steps:
the cloud server sets a body evaluation data acquisition cycle of each user, and determines the next time of uploading body evaluation data of the user according to the latest body evaluation data uploading time of the user;
when the next time of uploading the body evaluation data of the user is reached, the cloud server sends the body evaluation prompt to the client of the user;
when the body evaluation equipment judges that a user uses the equipment, the equipment is communicated with a client of the user to acquire identity authentication information of the user, and body evaluation data, evaluation time and the identity authentication information of the user are uploaded to the cloud server;
the cloud server sets the body mass index of a user as data of a first level authority after receiving body evaluation data of the user, sets height information and weight information of the user as data of a second level authority, sets basic metabolic rate, body fat rate, chest circumference information, waist circumference information and hip circumference information of the user as data of a third level authority, and sets identity information of the user as data of a fourth level authority, wherein the authority level is gradually increased from the first level authority, the second level authority, the third level authority to the fourth level authority.
Optionally, the cloud server receives slimming data of a plurality of users, including the following steps:
when the fitness equipment detects that a user uses the fitness equipment, the fitness equipment communicates with a client of the user to acquire identity authentication information of the user, and uploads fitness data, fitness starting time, fitness duration and the identity authentication information of the user to the cloud server;
after receiving the fitness data of the user, the cloud server sets the fitness equipment type and the fitness duration of the user as data of a first-level authority, sets the fitness equipment name and the fitness start time of the user as data of a second-level authority, sets the fitness equipment number and the fitness equipment position of the user as data of a third-level authority, and sets the identity information of the user as data of a fourth-level authority, wherein the authority level is gradually increased from the first-level authority, the second-level authority, the third-level authority to the fourth-level authority.
Optionally, after the cloud server receives and stores the slimming data of the plurality of users, the method further includes the following steps:
the cloud server sets a data updating time period, and respectively increases the authority of the slimming data of the user in the previous data updating time period by one level, wherein the slimming data of the fourth-level authority still keeps in the fourth-level authority.
Optionally, the cloud server is further configured to store a corresponding relationship between the fitness user and the coach user;
when the cloud server receives a slimming data acquisition request sent by a user through a client, judging whether the user is a coach user or not according to the identity authentication information of the user;
if the user is a coach user, the cloud server judges whether the slimming data corresponding to the slimming data acquisition request comprises a part of fitness users corresponding to the coach user, and if so, the temporary keys of the slimming data under all reading authorities corresponding to the part are returned.
The embodiment of the invention also provides a key transmission system for the slimming data sharing, which is applied to the key transmission method for the slimming data sharing, wherein the system comprises a cloud server and a client, the cloud server comprises a data storage module, a data encryption module, a user login module and a key transmission module, the client comprises a request sending module, a data downloading module and a data decryption module, and the cloud server and the client are used for executing the following steps:
the data storage module receives and stores slimming data of a plurality of users, records the acquiring time of the slimming data, and divides the slimming data of each user into slimming data with a plurality of reading authorities;
the data encryption module is used for setting different temporary keys for the slimming data of each reading right respectively, encrypting the corresponding slimming data by using the temporary keys, updating the temporary keys of the slimming data of each reading right by the cloud server every other preset time, and re-encrypting the corresponding slimming data by using the updated temporary keys;
the data storage module stores account names and account passwords of all registered users and reading authorities of the registered users;
the user login module receives a slimming data acquisition request sent by a request sending module of the client, wherein the slimming data acquisition request comprises an account name and an account password of a user;
the user login module judges whether the user is a platform registered user or not according to the account name and the account password of the user in the slimming data acquisition request, if so, judges whether the account password is correct, and if the account password is correct, the user login is successful;
after the user logs in successfully, the key transmission module inquires the reading authority of the user and sends a temporary key corresponding to the slimming data of which the reading authority is equal to or lower than the reading authority of the user to the user;
after the user successfully logs in, the key transmission module searches whether the slimming data of the user is stored or not, and if so, the temporary key of the slimming data of the user is sent to the user;
the data downloading module of the client downloads corresponding slimming data to the local according to the slimming data acquisition request of the user;
and the data decryption module of the client decrypts the downloaded slimming data by adopting the temporary key corresponding to the slimming data.
Optionally, the data storage module receives fitness data for the user from a plurality of fitness equipment and receives body assessment data for the user from a plurality of body assessment equipment.
Optionally, the system further comprises a body assessment device; wherein the body assessment apparatus performs the steps of:
the data storage module sets a body evaluation data acquisition cycle of each user, and determines the next time of uploading body evaluation data of the user according to the latest body evaluation data uploading time of the user;
when the next time the body evaluation data of the user is uploaded, the data storage module sends the body evaluation prompt to the client of the user;
when the body evaluation equipment judges that a user uses the equipment, the equipment communicates with a client of the user to acquire identity authentication information of the user, and uploads body evaluation data, evaluation time and the identity authentication information of the user to the data storage module;
the data storage module sets the body mass index of a user as data of a first level authority after receiving body evaluation data of the user, sets height information and weight information of the user as data of a second level authority, sets basic metabolic rate, body fat rate, chest circumference information, waist circumference information and hip circumference information of the user as data of a third level authority, and sets identity information of the user as data of a fourth level authority, wherein the authority level is gradually increased from the first level authority, the second level authority, the third level authority to the fourth level authority.
Optionally, the system further comprises exercise equipment; wherein the fitness apparatus performs the steps of:
when the fitness equipment detects that a user uses the fitness equipment, the fitness equipment communicates with a client of the user to acquire identity authentication information of the user, and uploads fitness data, fitness starting time, fitness duration and the identity authentication information of the user to the data storage module;
after receiving the fitness data of the user, the data storage module sets the fitness equipment category and the fitness duration of the user as data of a first-level authority, sets the fitness equipment name and the fitness starting time of the user as data of a second-level authority, sets the fitness equipment number and the fitness equipment position of the user as data of a third-level authority, and sets the identity information of the user as data of a fourth-level authority, wherein the authority level is gradually increased from the first-level authority, the second-level authority, the third-level authority to the fourth-level authority.
By adopting the key transmission system and method for sharing the slimming data, the invention has the following beneficial effects:
(1) according to the privacy degree of the slimming data, the slimming data is managed in a grading way, different users have different reading authorities, and therefore the slimming data sharing is guaranteed, and the safety of some private information is also guaranteed;
(2) the user is managed in a grading way, the user may have a coach user, a fitness user and a data sharing platform manager with the highest authority, in order to ensure that the data of the user is not leaked, the general fitness user can only check the slimming data of some users with lower reading authority, the coach user can check all the data of the corresponding fitness users, the fitness plan and the progress of the fitness users can be better understood and guided, and the data sharing platform manager can check all the slimming data and manage and control the slimming data conveniently;
(3) the registration management is carried out on the users, and for the non-registered users, the slimming data of all the users cannot be checked, so that the safety of the slimming data is guaranteed in an all-round way and the slimming data is not stolen by others.
Drawings
Fig. 1 is a flowchart of a key transmission method for thin data sharing according to an embodiment of the present invention;
FIG. 2 is a flow chart of body assessment data acquisition in one embodiment of the present invention;
FIG. 3 is a flow chart of fitness data acquisition in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a key transmission system during thin data sharing according to an embodiment of the present invention.
Detailed Description
In order to more clearly describe the technical contents of the present invention, the following further description is given in conjunction with specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a key transmission method for sharing thin-body data, including the following steps:
the cloud server receives and stores slimming data of a plurality of users, records the acquiring time of the slimming data, and divides the slimming data of each user into slimming data with a plurality of reading authorities;
the cloud server sets different temporary keys for the slimming data of each reading authority respectively, and encrypts the corresponding slimming data by using the temporary keys;
the cloud server updates the temporary key of the slimming data of each reading authority at intervals of preset time, and re-encrypts the corresponding slimming data by using the updated temporary key;
the cloud server stores account names and account passwords of all registered users and reading authorities of the registered users;
the method comprises the steps that a cloud server receives a slimming data acquisition request sent by a user through a client, wherein the slimming data acquisition request comprises an account name and an account password of the user;
the cloud server judges whether the user is a platform registered user or not according to the account name and the account password of the user in the slimming data acquisition request, if so, judges whether the account password is correct, and if the account password is correct, the user logs in successfully;
after the user logs in successfully, the cloud server inquires the reading authority of the user and sends a temporary key corresponding to the slimming data of which the reading authority is equal to or lower than the reading authority of the user to the user;
after the user logs in successfully, the cloud server searches whether the slimming data of the user are stored or not, and if yes, a temporary key of the slimming data of the user is sent to the user;
and the client of the user downloads the corresponding slimming data to the local according to the slimming data acquisition request of the user, and decrypts the downloaded slimming data by adopting the temporary secret key corresponding to the slimming data.
Optionally, the slimming data includes body assessment data of the user and fitness data of the user, and the cloud server receives the slimming data of the users, including the cloud server receiving the fitness data of the user from the fitness devices and receiving the body assessment data of the user from the fitness devices.
As shown in fig. 2, the cloud server receives slimming data of a plurality of users, and includes the following steps:
the cloud server sets a body evaluation data acquisition cycle of each user, and determines the next time of uploading body evaluation data of the user according to the latest body evaluation data uploading time of the user;
when the next time of uploading the body evaluation data of the user is reached, the cloud server sends the body evaluation prompt to the client of the user;
when the body evaluation equipment judges that a user uses the equipment, the equipment is communicated with a client of the user to acquire identity authentication information of the user, and body evaluation data, evaluation time and the identity authentication information of the user are uploaded to the cloud server;
the cloud server sets the body mass index of a user as data of a first level authority after receiving body evaluation data of the user, sets height information and weight information of the user as data of a second level authority, sets basic metabolic rate, body fat rate, chest circumference information, waist circumference information and hip circumference information of the user as data of a third level authority, and sets identity information of the user as data of a fourth level authority, wherein the authority level is gradually increased from the first level authority, the second level authority, the third level authority to the fourth level authority.
As shown in fig. 3, the cloud server receives slimming data of a plurality of users, and includes the following steps:
when the fitness equipment detects that a user uses the fitness equipment, the fitness equipment communicates with a client of the user to acquire identity authentication information of the user, and uploads fitness data, fitness starting time, fitness duration and the identity authentication information of the user to the cloud server;
after receiving the fitness data of the user, the cloud server sets the fitness equipment type and the fitness duration of the user as data of a first-level authority, sets the fitness equipment name and the fitness start time of the user as data of a second-level authority, sets the fitness equipment number and the fitness equipment position of the user as data of a third-level authority, and sets the identity information of the user as data of a fourth-level authority, wherein the authority level is gradually increased from the first-level authority, the second-level authority, the third-level authority to the fourth-level authority.
In this embodiment, after the cloud server receives and stores the slimming data of a plurality of users, the method further includes the following steps:
the cloud server sets a data updating time period, and respectively increases the authority of the slimming data of the user in the previous data updating time period by one level, wherein the slimming data of the fourth-level authority still keeps in the fourth-level authority.
In this embodiment, the cloud server is further configured to store a correspondence between the fitness user and the trainer user;
when the cloud server receives a slimming data acquisition request sent by a user through a client, judging whether the user is a coach user or not according to the identity authentication information of the user;
if the user is a coach user, the cloud server judges whether the slimming data corresponding to the slimming data acquisition request comprises a part of fitness users corresponding to the coach user, and if so, the temporary keys of the slimming data under all reading authorities corresponding to the part are returned.
As shown in fig. 4, an embodiment of the present invention further provides a key transmission system for use in slimming data sharing, which is applied to the key transmission method for use in slimming data sharing, where the system includes a cloud server and a client, the cloud server includes a data storage module, a data encryption module, a user login module and a key transmission module, the client includes a request sending module, a data downloading module and a data decryption module, and the cloud server and the client are configured to perform the following steps:
the data storage module receives and stores slimming data of a plurality of users, records the acquiring time of the slimming data, and divides the slimming data of each user into slimming data with a plurality of reading authorities;
the data encryption module is used for setting different temporary keys for the slimming data of each reading right respectively, encrypting the corresponding slimming data by using the temporary keys, updating the temporary keys of the slimming data of each reading right by the cloud server every other preset time, and re-encrypting the corresponding slimming data by using the updated temporary keys;
the data storage module stores account names and account passwords of all registered users and reading authorities of the registered users;
the user login module receives a slimming data acquisition request sent by a request sending module of the client, wherein the slimming data acquisition request comprises an account name and an account password of a user;
the user login module judges whether the user is a platform registered user or not according to the account name and the account password of the user in the slimming data acquisition request, if so, judges whether the account password is correct, and if the account password is correct, the user login is successful;
after the user logs in successfully, the key transmission module inquires the reading authority of the user and sends a temporary key corresponding to the slimming data of which the reading authority is equal to or lower than the reading authority of the user to the user;
after the user successfully logs in, the key transmission module searches whether the slimming data of the user is stored or not, and if so, the temporary key of the slimming data of the user is sent to the user;
the data downloading module of the client downloads corresponding slimming data to the local according to the slimming data acquisition request of the user;
and the data decryption module of the client decrypts the downloaded slimming data by adopting the temporary key corresponding to the slimming data.
In this embodiment, the data storage module receives fitness data for the user from a plurality of fitness equipment and body assessment data for the user from a plurality of body assessment equipment.
In this embodiment, the system further comprises a body assessment device; wherein the body assessment apparatus performs the steps of:
the data storage module sets a body evaluation data acquisition cycle of each user, and determines the next time of uploading body evaluation data of the user according to the latest body evaluation data uploading time of the user;
when the next time the body evaluation data of the user is uploaded, the data storage module sends the body evaluation prompt to the client of the user;
when the body evaluation equipment judges that a user uses the equipment, the equipment communicates with a client of the user to acquire identity authentication information of the user, and uploads body evaluation data, evaluation time and the identity authentication information of the user to the data storage module;
the data storage module sets the body mass index of a user as data of a first level authority after receiving body evaluation data of the user, sets height information and weight information of the user as data of a second level authority, sets basic metabolic rate, body fat rate, chest circumference information, waist circumference information and hip circumference information of the user as data of a third level authority, and sets identity information of the user as data of a fourth level authority, wherein the authority level is gradually increased from the first level authority, the second level authority, the third level authority to the fourth level authority.
In this embodiment, the system further comprises exercise equipment; wherein the fitness apparatus performs the steps of:
when the fitness equipment detects that a user uses the fitness equipment, the fitness equipment communicates with a client of the user to acquire identity authentication information of the user, and uploads fitness data, fitness starting time, fitness duration and the identity authentication information of the user to the data storage module;
after receiving the fitness data of the user, the data storage module sets the fitness equipment category and the fitness duration of the user as data of a first-level authority, sets the fitness equipment name and the fitness starting time of the user as data of a second-level authority, sets the fitness equipment number and the fitness equipment position of the user as data of a third-level authority, and sets the identity information of the user as data of a fourth-level authority, wherein the authority level is gradually increased from the first-level authority, the second-level authority, the third-level authority to the fourth-level authority.
Compared with the prior art, the key transmission system and the key transmission method for sharing the slimming data have the following beneficial effects that:
(1) according to the privacy degree of the slimming data, the slimming data is managed in a grading way, different users have different reading authorities, and therefore the slimming data sharing is guaranteed, and the safety of some private information is also guaranteed;
(2) the user is managed in a grading way, the user may have a coach user, a fitness user and a data sharing platform manager with the highest authority, in order to ensure that the data of the user is not leaked, the general fitness user can only check the slimming data of some users with lower reading authority, the coach user can check all the data of the corresponding fitness users, the fitness plan and the progress of the fitness users can be better understood and guided, and the data sharing platform manager can check all the slimming data and manage and control the slimming data conveniently;
(3) the registration management is carried out on the users, and for the non-registered users, the slimming data of all the users cannot be checked, so that the safety of the slimming data is guaranteed in an all-round way and the slimming data is not stolen by others.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, embodiments of the system are substantially similar to the method embodiments, so that they are described in a relatively simple manner, and reference may be made to some descriptions of the method embodiments for relevant points.
In this specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.