Safe social platform
Technical Field
The invention relates to the field of internet social contact, in particular to a safe social contact platform with functions of user data encryption and automatic data classification.
Background
The demands of people are various, and more demands in daily life are often solved by strangers, such as job hunting, recruitment transaction, dating and dating, difficult help seeking, finding people for doing things instead, and other needs to perform various generalized cooperation. Requiring to help strangers on the premise that corresponding data such as skills, resources, abilities, location areas and the like of the strangers are public or trusty, so that various talents wanted by the strangers can be quickly and accurately searched according to the requirements of the strangers, and then negotiation cooperation or help seeking is carried out; it is needless to say that the social platform such as WeChat friend circle and QQ friend circle may issue help information to "help universal friend circle" to be seen by various talents.
Most of the existing social platforms allocate accounts to each user at a client, when a session is established, account information of the users is displayed in the communication process, even other users in the network can see friend-making print information of other users under the account of the user when the other users communicate with friends of the user, so privacy of the users in a friend-making network is often leaked, the social platforms such as a WeChat friend circle, a QQ friend circle and the like need to add friends to see the friend circle of the other users, and with the arrangement, although the information of the users is protected to a certain extent, the information of the user still has the problem that the user account information is leaked because the users add strangers randomly into the friend circle or the account of the user is stolen, and because the arrangement of the friend circle, acquaintance and friend resources of each person are quite limited, the friend circle seeking help can not find friend resources which can match the demand, moreover, it is certainly a waste of time and energy for other friends in the circle of friends to see the message, but if the circle of friends has relevant talents or resources, but there is also a possibility that friends do not notice the help information and may miss a possibility of help or cooperation, which is unfortunate.
Chinese patent (CN102594721B) discloses an anonymous friend-making method, a system and a network server, wherein the anonymous friend-making system comprises a network server and a client of a friend-making information receiver, the network server simultaneously encrypts a network address and an account number of a friend-making information sender, randomly pairs personal attribute information keywords of the sender and the receiver in the friend-making system, and finally sends the encrypted friend-making information of the sender to the friend-making information receiver. Although the patent encrypts the personal account and the network address of the friend-making sender, so that the friend-making receiver receives friend-making information with the encrypted account and address, the privacy of the friend-making sender can only be protected to a certain extent, but information which is not desired to be displayed by other senders of the sender is still seen by the receiver, the sender user cannot define privacy data, the account and the personal information of the receiver user can be acquired by the sender, and in addition, although the friend-making system randomly matches the friend-making receiver for the sender according to the personal attributes of the two users, the system does not define and store the user information in a classified manner in advance, when the user quantity is large, the matching speed is slow, the efficiency is low, and even the best or most preferred friend-making receiver cannot be provided for the sender.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a social platform which can encrypt the user data of the social platform and automatically classify and store the data, has high confidentiality on the user information and can quickly push matched friend-making objects for the user through classified information, and a data encryption and classification method thereof, and the technical scheme is as follows:
the social platform comprises a client and a server in wireless communication connection with the client, wherein the client comprises a registration and login module, an information publishing and pushing module and a user communication module, the server comprises a user information database for storing user personal registration information and information published by a user at the client, and the social platform is characterized in that:
the registration and login module is used for registering a new user and registering a registered user, the personal registration information item of the user comprises personal basic information, friend making requirements, core skills, specialties, interests, professions, owned resources and one or more labels which can represent the self friend making requirements and are set by the user, the new user can select whether to encrypt partial or all information of personal registration according to privacy requirements during registration, the registered user can reset the encryption condition of the personal registration information item according to requirements after login, the server comprises an encryption and decryption module used for encrypting or decrypting the encrypted personal registration information item selected by the new user or the encrypted personal registration information item reset by the registered user, the user account and the network address, and the classification storage module is used for automatically classifying and storing data according to the personal registration information of the new user.
Preferably, the registration and login module further comprises a user information adding and deleting unit and a user information modifying unit, wherein the user information adding and deleting unit can enable a registered user to delete or add new information to the user personal registration information item as required, the user information modifying module can enable the registered user to modify the user personal registration information item as required, and the classification storage unit performs corresponding adding, deleting and/or reclassifying on the user personal registration information item which is previously classified and stored by the user after the registered user adds, deletes and/or modifies the user personal registration information item through the user information adding and deleting unit and/or the user information modifying unit.
Preferably, when the registered user deletes or modifies the user personal registration information item through the user information adding and deleting unit and/or the user information modifying unit and the user personal registration information item to be deleted or modified is in an encrypted state, the encryption and decryption module preferentially decrypts the user personal registration information item to be deleted or modified, and after the registered user adds or modifies the user personal registration information item through the user information adding and deleting unit and/or the user information modifying unit, the registration and login module of the client can remind the user whether to encrypt the added or modified user personal registration information item.
Preferably, the encryption and decryption module includes a key generation unit, the basic information in the user personal registration information item at least includes gender and age, and the gender and age are information necessary for user registration, and the registered user cannot delete the two items of information, and the key generation unit encrypts the privacy registration information selected by the user with a matrix key formed by combining the acquired 4-segment network IP address of the user, the gender of the user and the age of the user.
More preferably, the 4-segment network IP address of the user is denoted as a.b.c.d, the gender of the user is denoted as sex, and sex ═ 1 denotes male, and sex ═ 0 denotes female, the age of the user is denoted by age, and the matrix key is a 4 × 4 order square matrix as follows:
in addition, the invention also provides a method for encrypting the user data and automatically classifying the data of the social platform, which comprises the following steps:
(1) when a new user registers at the client or a registered user logs in the client, partial or all registered information of personal registration is selected or reset to be encrypted according to privacy requirements;
(2) the encryption and decryption module encrypts the encrypted personal registration information selected in the step (1) when the new user is registered or the encrypted personal registration information reset by the registered user;
(3) and the classification storage module automatically classifies and stores the data according to the personal registration information of the new user.
When the social platform of claim 2 is used to encrypt the user data and automatically classify the data, the classification storage module performs corresponding addition, deletion and/or reclassification on the user personal registration information items previously classified and stored by the user after the registered user performs addition, deletion and/or modification on the user personal registration information items through the user information addition, deletion and/or user information modification unit.
The basic information in the user personal registration information item at least comprises gender and age, the gender and the age are necessary information when the user registers, the registered user cannot delete the two items of information, and a key generation unit of the encryption and decryption module encrypts the privacy registration information selected by the user by using a matrix key formed by combining the acquired 4-segment network IP address of the user, the gender of the user and the age of the user.
The beneficial technical effects obtained by the invention are as follows: 1) the method and the system solve the defects in the prior art, and the user can set and define the private personal registration information items needing to be encrypted according to the requirement in the social platform, so that not only can the personal account and the network address of the user be encrypted, but also other private personal registration information encryption items selected when the user registers or the private personal registration information encryption items needing to be changed after the user logs in can be encrypted, and the safety of the user using the social platform is improved; 2) the social platform is provided with a personal registration information classification storage module which can automatically classify and store the personal registration information of a new user, a user information adding and deleting unit and a user information modifying unit, so that the registered user can modify the personal registration information item according to the friend making requirement and can automatically classify and store the modified registration information, and the classification and storage mode can more accurately and efficiently match friend making objects or message pushing objects according to information classification when the user makes friends or the social platform pushes messages; 3) the encryption and decryption module in the invention constructs a dynamic matrix key to encrypt the encrypted data by acquiring the network address of the user and the sex and age information in the personal registration information, and the encryption mode is simple, safe and efficient.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a functional block diagram of a secure social platform according to the present invention;
fig. 2 is a schematic diagram of a process of encrypting data of a newly registered user and automatically classifying the data of the social platform according to the present invention.
Fig. 3 is a schematic diagram illustrating a process of encrypting registered user data and automatically classifying the data of the social platform according to the present invention.
Detailed Description
The technical implementation process of the present invention is further explained in the following with reference to the drawings and the embodiments.
Example 1
As shown in fig. 1, the present invention provides a social platform with user data encryption and automatic data classification, the social platform includes a client and a server in wireless communication connection with the client, the client includes a registration and login module, an information publishing and pushing module, and a user communication module, the server includes a user information database for storing personal registration information of a user and information published by the user at the client;
the registration and login module is used for registering a new user and registering a registered user, the personal registration information of the user comprises personal basic information, friend making requirements, core skills, specialties, interests, professions, owned resources and one or more labels which can represent the friend making requirements of the user, the new user can select whether to encrypt partial or all information of personal registration according to privacy requirements during registration, the registered user can reset the encryption condition of the personal registration information according to requirements after login, the server comprises an encryption and decryption module used for encrypting or decrypting the encrypted personal registration information selected by the new user or the encrypted personal registration information reset by the registered user, the user account and the network address, the classification storage module automatically classifies and stores data according to the personal registration information of the new user;
the registered user can interactively communicate with other users through the user communication module at the client side through the social platform, when the user sets the own registration information to be in an encrypted state, other users cannot check the encrypted registration information of the user and cannot obtain the user account and the network address of the user, an anonymous friend-making mode is adopted between the user and other users, the information publishing and pushing module can enable the user to publish information to other users with required friend-making labels or personal registration information classification, or the social platform can also push related information according to matched friend-making labels or users with person registration information classification.
Preferably, in this embodiment, the registration and login module of the social platform further includes a user information adding and deleting unit and a user information modifying unit, wherein the user information adding and deleting unit can delete or add new information to the user personal registration information as required by the registered user, the user information modifying module can modify the user personal registration information as required by the registered user, and after the registered user adds, deletes and/or modifies the user personal registration information by the user information adding and deleting unit and/or the user information modifying unit, the classification and storage unit performs corresponding adding, deleting and/or reclassifying on the user personal registration information which is previously classified and stored by the user; when a registered user deletes or modifies the personal registration information of the user through the user information adding and deleting unit and/or the user information modifying unit and the personal registration information of the user needing to be deleted or modified is in an encrypted state, the encryption and decryption module preferentially decrypts the personal registration information of the user needing to be deleted or modified, and after the registered user adds or modifies the personal registration information of the user through the user information adding and deleting unit and/or the user information modifying unit, the registration and login module of the client can remind the user whether to encrypt the added or modified personal registration information of the user;
in the preferred embodiment, the basic information in the user personal registration information at least includes gender and age, and gender and age are the necessary information for user registration, and the registered user cannot delete the two items of information, the key generation unit encrypts the privacy registration information selected by the user by using a matrix key formed by combining the acquired 4 segments of network IP addresses of the user, the user gender and the user age, for example, the 4 segments of IP addresses of the social platform are 163.98.37.11, the user gender is male (male gender is represented by 1, female gender is represented by 0), and the user age is 21 years old, and then the privacy encryption data set by the user are preferably encrypted by using a 4 × 4-order matrix, that is:
example 2
In the embodiment, as shown in fig. 2, for a new user, in a client registration process, the user first needs to fill in personal registration information including personal basic information, friend making requirements, core skills, speciality, interests, occupation, owned resources, and one or more tags which can represent the friend making requirements and are set by the user, and needs to select a personal registration information item which the user does not want to disclose as needing to be encrypted, after the user selects and determines, an encryption and decryption module at the server side performs encryption operation on the encrypted personal registration information item selected in the step of registering the new user, and after the encryption is completed, a classification storage module at the server side performs automatic data classification and storage according to the personal registration information of the new user, so that different users can be divided into different categories according to the labels or other classified information, and the friend making requirements of the users can be conveniently matched; the basic information in the user personal registration information at least includes gender and age, and gender and age are information that is necessary for user registration, and the registered user cannot delete the two items of information, the key generation unit of the encryption and decryption module encrypts and decrypts the privacy registration information selected by the user by using a matrix key formed by combining the acquired 4-segment network IP address of the user, the user gender and the user age, for example, the user dynamic matrix key used in the above embodiment 1.
Example 3
The embodiment is to use the social platform with user data encryption and automatic data classification in the above embodiment 1 to perform encryption operation and automatic data classification on registered user data, as shown in fig. 2, for a registered user, when the user uses the client, the user can enter the registration and login module to perform encryption item reset on encrypted personal registration information in personal registration information, and also can perform add/delete or modify operation on personal information items previously registered by the user, the registered user deletes or adds new information to the personal registration information of the user as required, the user information modification module can enable the registered user to modify the personal registration information of the user as required, and when the registered user adds/deletes and/or modifies the personal registration information of the user through the user information add/delete unit and/or the user information modification unit, the classified storage unit makes corresponding addition, deletion and/or reclassification on the personal registration information of the user which is classified and stored previously; when the registered user deletes or modifies the user personal registration information through the user information adding and deleting unit and/or the user information modifying unit and the user personal registration information needing to be deleted or modified is in an encrypted state, the encryption and decryption module preferentially decrypts the user personal registration information needing to be deleted or modified, after the registered user adds or modifies the user personal registration information through the user information adding and deleting unit and/or the user information modifying unit, the registration and login module of the client can remind the user whether to encrypt the added or modified user personal registration information, and when the user chooses to encrypt the added or modified personal data, the encryption and decryption module of the server segment encrypts the 4 segments of network IP addresses of the user, acquired through the key generating unit of the encryption and decryption module, The private registration information selected by the user is encrypted by a matrix key formed by combining the gender and the age of the user, and then the personal registration information added or modified by the user is automatically reclassified and stored, so that different users can be classified into different categories according to labels or other classification information, and the friend-making requirements of the users can be conveniently matched.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.