[go: up one dir, main page]

HK1232994B - Method and device for acquiring electronical prescription - Google Patents

Method and device for acquiring electronical prescription Download PDF

Info

Publication number
HK1232994B
HK1232994B HK17106620.6A HK17106620A HK1232994B HK 1232994 B HK1232994 B HK 1232994B HK 17106620 A HK17106620 A HK 17106620A HK 1232994 B HK1232994 B HK 1232994B
Authority
HK
Hong Kong
Prior art keywords
information
verification
user
platform server
mobile phone
Prior art date
Application number
HK17106620.6A
Other languages
Chinese (zh)
Other versions
HK1232994A1 (en
Inventor
李克鹏
李凯
Original Assignee
阿里巴巴集团控股有限公司
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of HK1232994A1 publication Critical patent/HK1232994A1/en
Publication of HK1232994B publication Critical patent/HK1232994B/en

Links

Description

获取电子文件的方法及装置Method and device for obtaining electronic files

技术领域Technical Field

本申请涉及信息技术领域,尤其涉及一种获取电子文件的方法及装置。The present application relates to the field of information technology, and in particular to a method and device for obtaining electronic files.

背景技术Background Art

为了加强处方药的流通管理,保证民众用药安全、有效,处方药的销售需要依据医生开具的纸质处方才可以销售。目前国家正逐渐放开在线销售处方药,以进一步降低国家和民众的医疗成本、提高药品采购的便利性。电子处方相对于纸质处方,具有格式规范、内容全面清晰、便于医患查询历史记录等优点,是规模推广处方药在线销售的基础。To strengthen the management of prescription drug distribution and ensure the safety and effectiveness of medication, prescription drugs must be sold based on a doctor's written prescription. China is gradually liberalizing online sales of prescription drugs to further reduce healthcare costs for both the government and the public and improve the convenience of drug procurement. Compared to paper prescriptions, electronic prescriptions offer standardized formats, comprehensive and clear content, and facilitate historical records for both doctors and patients. These electronic prescriptions are the foundation for the large-scale promotion of online sales of prescription drugs.

为保护电子处方中涉及到的患者的隐私信息,在使用电子处方的流程中,将患者的姓名、病历号、住址等患者隐私信息进行隐藏、删除或加解密处理。但电子处方在使用过程中会涉及不同的用户角色,例如,医生、患者、药房等,此外,医生在核对患者既往诊疗信息时、监管部门在进行案例审查时,还需要核对电子处方中涉及到的患者身份。因此单纯的隐藏或删除患者的身份信息,会因为丢失患者的关键信息而无法追溯患者的既往就诊记录。To protect the privacy of patients included in electronic prescriptions, private information such as the patient's name, medical record number, and address is hidden, deleted, or encrypted during the electronic prescription process. However, electronic prescriptions involve different user roles, such as doctors, patients, and pharmacies. Furthermore, doctors need to verify the patient's identity when verifying their previous medical records, and regulators need to verify their case reviews. Therefore, simply hiding or deleting a patient's identity information will result in the loss of critical patient information and the inability to trace their previous medical records.

发明内容Summary of the Invention

有鉴于此,本申请提供一种新的技术方案,可以解决现有技术中不能有效地保护用户的隐私信息的技术问题。In view of this, the present application provides a new technical solution that can solve the technical problem that the existing technology cannot effectively protect the user's privacy information.

为实现上述目的,本申请提供技术方案如下:To achieve the above objectives, this application provides the following technical solutions:

根据本申请的第一方面,提出了一种获取电子文件的方法,应用在终端设备上,包括:According to a first aspect of the present application, a method for obtaining an electronic file is proposed, which is applied on a terminal device and includes:

向平台服务器发送用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;Sending a first request message for obtaining an electronic file to the platform server, wherein the first request message carries a first identifier of an information providing server that provides the electronic file;

接收来自所述平台服务器根据所述第一请求消息返回的第一提示信息;Receiving first prompt information returned by the platform server according to the first request message;

根据所述第一提示信息确定用于身份验证的第一验证信息,向所述平台服务器发送所述第一验证信息;Determining first verification information for identity authentication according to the first prompt information, and sending the first verification information to the platform server;

在所述平台服务器根据所述第一标识确定所述信息提供服务器,以及根据所述终端设备的用户在所述平台服务器的第一登录信息确定所述用户在所述信息提供服务器注册的用户标识,并将所述第一验证信息、所述用户标识发送至所述信息提供服务器后,接收所述平台服务器转发的来自所述信息提供服务器的所述电子文件,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。After the platform server determines the information providing server based on the first identifier, and determines the user identifier registered by the user of the terminal device on the platform server based on the first login information of the user, and sends the first verification information and the user identifier to the information providing server, the platform server receives the electronic file from the information providing server forwarded by the platform server, and the private information in the electronic file is encrypted using the first encryption key of the information providing server.

根据本申请的第二方面,提出了一种获取电子文件的方法,应用在平台服务器上,包括:According to a second aspect of the present application, a method for obtaining an electronic file is proposed, which is applied on a platform server and includes:

接收来自终端设备的用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;receiving a first request message for obtaining an electronic file from a terminal device, wherein the first request message carries a first identifier of an information providing server that provides the electronic file;

根据所述第一请求消息向所述终端设备返回第一提示信息;Returning first prompt information to the terminal device according to the first request message;

在所述终端设备根据所述第一提示信息确定用于身份验证的第一验证信息后,接收来自所述终端设备的第一验证信息;After the terminal device determines first verification information for identity authentication according to the first prompt information, receiving the first verification information from the terminal device;

根据所述第一标识确定所述信息提供服务器,将所述第一验证信息、所述终端设备的用户在所述信息提供服务器注册的用户标识发送至所述信息提供服务器;Determining the information providing server according to the first identifier, and sending the first verification information and the user identifier of the user of the terminal device registered in the information providing server to the information providing server;

在所述信息提供服务器对所述第一验证信息验证通过并根据所述用户标识确定所述电子文件后,接收来自所述信息提供服务器的所述电子文件,将所述电子文件转发至所述终端设备,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。After the information providing server verifies the first verification information and determines the electronic file based on the user identifier, the electronic file is received from the information providing server and forwarded to the terminal device. The private information in the electronic file is encrypted using the first encryption key of the information providing server.

根据本申请的第三方面,提出了一种获取电子文件的方法,应用在信息提供服务器上,包括:According to a third aspect of the present application, a method for obtaining an electronic file is proposed, which is applied on an information providing server, comprising:

接收来自平台服务器的第一验证信息、终端设备的用户在所述信息提供服务器注册的用户标识;Receiving first verification information from the platform server and a user identifier of a user of a terminal device registered on the information providing server;

对所述第一验证信息进行验证,在验证通过后根据所述用户标识确定所述电子文件;Verifying the first verification information, and determining the electronic file according to the user identifier after the verification is passed;

将所述电子文件中的隐私信息通过所述信息提供服务器的第一加密密钥加密;encrypting the private information in the electronic file using a first encryption key of the information providing server;

将所述电子文件发送至所述平台服务器,以供所述平台服务器将所述电子文件转发至所述终端设备。The electronic file is sent to the platform server, so that the platform server forwards the electronic file to the terminal device.

根据本申请的第四方面,提出了一种获取电子文件的装置,应用在终端色设备上,包括:According to a fourth aspect of the present application, a device for acquiring an electronic file is provided, which is applied to a terminal device and includes:

第一发送模块,用于向平台服务器发送用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;A first sending module is configured to send a first request message for obtaining an electronic file to the platform server, wherein the first request message carries a first identifier of an information providing server that provides the electronic file;

第一接收模块,用于接收来自所述平台服务器根据所述第一发送模块发送的所述第一请求消息返回的第一提示信息;a first receiving module, configured to receive first prompt information returned from the platform server according to the first request message sent by the first sending module;

第一确定模块,用于根据所述第一接收模块接收到的所述第一提示信息确定用于身份验证的第一验证信息,向所述平台服务器发送所述第一验证信息;a first determining module, configured to determine first verification information for identity authentication according to the first prompt information received by the first receiving module, and send the first verification information to the platform server;

第二接收模块,用于在所述平台服务器根据所述第一标识确定所述信息提供服务器,以及根据所述终端设备的用户在所述平台服务器的第一登录信息确定所述用户在所述信息提供服务器注册的用户标识,并将所述第一确定模块确定的所述第一验证信息、所述用户标识发送至所述信息提供服务器后,接收所述平台服务器转发的来自所述信息提供服务器的所述电子文件,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。The second receiving module is used to determine the information providing server based on the first identifier on the platform server, and determine the user identifier registered by the user of the terminal device on the information providing server based on the first login information of the user on the platform server, and after sending the first verification information and the user identifier determined by the first determination module to the information providing server, receive the electronic file from the information providing server forwarded by the platform server, where the privacy information in the electronic file is encrypted with the first encryption key of the information providing server.

根据本申请的第五方面,提出了一种获取电子文件的装置,应用在平台服务器上,包括:According to a fifth aspect of the present application, a device for obtaining an electronic file is provided, which is applied on a platform server and includes:

第九接收模块,用于接收来自终端设备的用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;A ninth receiving module, configured to receive a first request message for obtaining an electronic file from a terminal device, wherein the first request message carries a first identifier of a server providing information of the electronic file;

第七发送模块,用于根据所述第九接收模块接收到的所述第一请求消息向所述终端设备返回第一提示信息;a seventh sending module, configured to return first prompt information to the terminal device according to the first request message received by the ninth receiving module;

第八发送模块,用于在所述终端设备根据所述第七发送模块发送的所述第一提示信息确定用于身份验证的第一验证信息后,接收来自所述终端设备的第一验证信息;an eighth sending module, configured to receive the first verification information from the terminal device after the terminal device determines the first verification information for identity authentication according to the first prompt information sent by the seventh sending module;

第九发送模块,用于根据所述第九接收模块接收到的所述第一标识确定所述信息提供服务器,将所述第一验证信息、所述终端设备的用户在所述信息提供服务器注册的用户标识发送至所述信息提供服务器;a ninth sending module, configured to determine the information providing server according to the first identifier received by the ninth receiving module, and send the first verification information and the user identifier of the user of the terminal device registered in the information providing server to the information providing server;

第一转发模块,用于在所述信息提供服务器对所述第九发送模块发送的所述第一验证信息验证通过并根据所述用户标识确定所述电子文件后,接收来自所述信息提供服务器的所述电子文件,将所述电子文件转发至所述终端设备,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。A first forwarding module is used to receive the electronic file from the information providing server after the information providing server verifies the first verification information sent by the ninth sending module and determines the electronic file based on the user identifier, and forward the electronic file to the terminal device, wherein the private information in the electronic file is encrypted using the first encryption key of the information providing server.

根据本申请的第六方面,提出了一种获取电子文件的装置,应用在信息提供服务器上,包括:According to a sixth aspect of the present application, a device for obtaining an electronic file is provided, which is applied to an information providing server and includes:

第十六接收模块,用于接收来自平台服务器的第一验证信息、终端设备的用户在所述信息提供服务器注册的用户标识;A sixteenth receiving module is configured to receive the first verification information from the platform server and the user identifier of the user of the terminal device registered on the information providing server;

第三验证模块,用于对所述第十六接收模块接收到的所述第一验证信息进行验证,在验证通过后根据所述用户标识确定所述电子文件;a third verification module, configured to verify the first verification information received by the sixteenth receiving module, and determine the electronic file according to the user identifier after the verification is passed;

第三加密模块,用于将所述电子文件中的隐私信息通过所述信息提供服务器的第一加密密钥加密;a third encryption module, configured to encrypt the private information in the electronic file using a first encryption key of the information providing server;

第十五发送模块,用于将所述第三加密模块加密后的所述电子文件发送至所述平台服务器,以供所述平台服务器将所述电子文件转发至所述终端设备。A fifteenth sending module is used to send the electronic file encrypted by the third encryption module to the platform server, so that the platform server forwards the electronic file to the terminal device.

由以上技术方案可见,本申请通过对电子文件中的隐私信息通过第一加密密钥进行加密保护,由于平台服务器并没有信息提供服务器的第一加密密钥,因此即使电子文件在平台服务器时被窃取,窃取者也无法得到用户的真实的隐私信息,平台服务器侧的管理员也无法获取到用户的真实的隐私信息,从而有效地保护用户的隐私信息不被平台服务器泄露,确保用户的隐私安全。It can be seen from the above technical solution that the present application encrypts and protects the privacy information in the electronic file by using the first encryption key. Since the platform server does not have the first encryption key of the information providing server, even if the electronic file is stolen on the platform server, the thief cannot obtain the user's true privacy information, and the administrator on the platform server side cannot obtain the user's true privacy information, thereby effectively protecting the user's privacy information from being leaked by the platform server and ensuring the user's privacy security.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是根据一示例性实施例一示出的获取电子文件的方法的流程图;FIG1 is a flow chart of a method for acquiring an electronic file according to a first exemplary embodiment;

图2是根据一示例性实施例二示出的获取电子文件的方法的流程图;FIG2 is a flow chart of a method for acquiring an electronic file according to a second exemplary embodiment;

图3是根据一示例性实施例三示出的获取电子文件的方法的流程图;FIG3 is a flowchart of a method for acquiring an electronic file according to a third exemplary embodiment;

图4是根据一示例性实施例四示出的获取电子文件的方法的流程图;FIG4 is a flowchart of a method for obtaining an electronic file according to a fourth exemplary embodiment;

图5是根据又一示例性实施例一示出的获取电子文件的方法的流程图;FIG5 is a flowchart of a method for acquiring an electronic file according to yet another exemplary embodiment;

图6是根据又一示例性实施例二示出的获取电子文件的方法的流程图;FIG6 is a flowchart of a method for acquiring an electronic file according to yet another exemplary embodiment 2;

图7是根据又一示例性实施例三示出的获取电子文件的方法的流程图;FIG7 is a flowchart of a method for acquiring an electronic file according to yet another exemplary embodiment three;

图8是根据又一示例性实施例四示出的获取电子文件的方法的流程图;FIG8 is a flowchart of a method for obtaining an electronic file according to yet another exemplary embodiment 4;

图9是根据另一示例性实施例一示出的获取电子文件的方法的流程图;FIG9 is a flowchart of a method for acquiring an electronic file according to another exemplary embodiment;

图10是根据另一示例性实施例二示出的获取电子文件的方法的流程图;FIG10 is a flowchart of a method for acquiring an electronic file according to another exemplary embodiment 2;

图11是根据另一示例性实施例三示出的获取电子文件的方法的流程图;FIG11 is a flowchart of a method for obtaining an electronic file according to another exemplary embodiment three;

图12是根据另一示例性实施例四示出的获取电子文件的方法的流程图;FIG12 is a flowchart of a method for obtaining an electronic file according to another exemplary embodiment 4;

图13是根据一示例性实施例示出的获取电子文件的方法的场景图之一;FIG13 is a diagram showing one of the scenarios of a method for acquiring an electronic file according to an exemplary embodiment;

图14是根据一示例性实施例示出的获取电子文件的方法的场景图之二;FIG14 is a second scene diagram of a method for obtaining an electronic file according to an exemplary embodiment;

图15是根据一示例性实施例示出的获取电子文件的方法的场景图之三;FIG15 is a third scene diagram of a method for obtaining an electronic file according to an exemplary embodiment;

图16是根据一示例性实施例示出的获取电子文件的方法的场景图之四;FIG16 is a fourth scene diagram of a method for obtaining an electronic file according to an exemplary embodiment;

图17示出了根据本发明的一示例性实施例的终端设备的结构图;FIG17 shows a structural diagram of a terminal device according to an exemplary embodiment of the present invention;

图18示出了根据本发明的一示例性实施例的平台服务器的结构图;FIG18 shows a structural diagram of a platform server according to an exemplary embodiment of the present invention;

图19示出了根据本发明的一示例性实施例的信息提供服务器的结构图;FIG19 shows a structural diagram of an information providing server according to an exemplary embodiment of the present invention;

图20是根据一示例性实施例一示出的获取电子文件的装置的结构示意图;FIG20 is a schematic structural diagram of an apparatus for acquiring an electronic file according to a first exemplary embodiment;

图21是根据一示例性实施例二示出的获取电子文件的装置的结构示意图;FIG21 is a schematic structural diagram of an apparatus for acquiring an electronic file according to a second exemplary embodiment;

图22是根据又一示例性实施例一示出的获取电子文件的装置的结构示意图;FIG22 is a schematic structural diagram of an apparatus for acquiring an electronic file according to yet another exemplary embodiment;

图23是根据又一示例性实施例二示出的获取电子文件的装置的结构示意图;FIG23 is a schematic structural diagram of an apparatus for acquiring an electronic file according to yet another exemplary embodiment 2;

图24是根据另一示例性实施例一示出的获取电子文件的装置的结构示意图;FIG24 is a schematic structural diagram of an apparatus for acquiring an electronic file according to another exemplary embodiment 1;

图25是根据另一示例性实施例二示出的获取电子文件的装置的结构示意图。FIG25 is a schematic structural diagram of an apparatus for acquiring an electronic file according to another exemplary embodiment 2.

具体实施方式DETAILED DESCRIPTION

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

本申请通过对电子文件中的隐私信息通过第一加密密钥进行加密保护,由于平台服务器并没有信息提供服务器的第一加密密钥,因此即使电子文件在平台服务器时被窃取,窃取者也无法得到用户的真实的隐私信息,平台服务器侧的管理员也无法获取到用户的真实的隐私信息,从而有效地保护用户的隐私信息不被平台服务器泄露,确保用户的隐私安全。This application encrypts and protects the privacy information in the electronic file using a first encryption key. Since the platform server does not have the first encryption key of the information providing server, even if the electronic file is stolen on the platform server, the thief cannot obtain the user's real privacy information, and the administrator on the platform server side cannot obtain the user's real privacy information, thereby effectively protecting the user's privacy information from being leaked by the platform server and ensuring the user's privacy security.

为对本申请进行进一步说明,提供下列实施例:To further illustrate this application, the following examples are provided:

请参考图1,为根据一示例性实施例一示出的获取电子文件的方法的流程图,本实施例可以应用在终端设备上,在一实施例中,终端设备可以为智能手机、平板电脑、个人计算机等,可以通过在终端设备上以应用程序或者浏览器的方式与平台服务器和信息提供服务器进行通信,如图1所示,包括如下步骤:Please refer to FIG1 , which is a flowchart of a method for obtaining an electronic file according to an exemplary embodiment 1. This embodiment can be applied to a terminal device. In one embodiment, the terminal device can be a smart phone, a tablet computer, a personal computer, etc., and can communicate with the platform server and the information providing server through an application or a browser on the terminal device. As shown in FIG1 , the method includes the following steps:

步骤101,向平台服务器发送用于获取电子文件的第一请求消息,第一请求消息中携带有提供电子文件的信息提供服务器的第一标识。Step 101: Send a first request message for obtaining an electronic file to a platform server. The first request message carries a first identifier of an information providing server that provides the electronic file.

步骤102,接收来自平台服务器根据第一请求消息返回的第一提示信息。Step 102: Receive first prompt information returned from the platform server according to the first request message.

步骤103,根据第一提示信息确定用于身份验证的第一验证信息,向平台服务器发送第一验证信息。Step 103: Determine first verification information for identity authentication according to the first prompt information, and send the first verification information to the platform server.

步骤104,在平台服务器根据第一标识确定信息提供服务器,以及根据终端设备的用户在平台服务器的第一登录信息确定用户在信息提供服务器注册的用户标识,并将第一验证信息、用户标识发送至信息提供服务器后,接收平台服务器转发的来自信息提供服务器的电子文件,电子文件中的隐私信息经过信息提供服务器的第一加密密钥加密。In step 104, after the platform server determines the information providing server based on the first identifier and determines the user identifier registered by the user on the information providing server based on the first login information of the user of the terminal device on the platform server, and sends the first verification information and the user identifier to the information providing server, the platform server receives the electronic file from the information providing server forwarded by the platform server, and the private information in the electronic file is encrypted using the first encryption key of the information providing server.

在上述步骤101中,在一实施例中,平台服务器可以作为连接终端设备与信息提供服务器的网络平台,可以由电商平台提供,不同的终端设备与不同的信息提供服务器可以通过平台服务器进行电子文件的传输。在一实施例中,电子文件可以为电子处方,信息提供服务器可以为位于医院侧的医院信息系统(Hospital Information System,简称为HIS),平台服务器可以为位于网络侧的电子处方平台(Electronic Prescription Platform,简称为EPP),在另一实施例中,电子文件还可以为终端设备侧的用户的社保文件,信息提供服务器可以为社保中心侧的社保服务系统,平台服务器可以为位于网络侧的社保信息平台,在再一实施例中,电子文件还可以为终端设备侧的用户的住房公积金账单,信息提供服务器可以为住房公积金管理中心侧的公积金服务系统,平台服务器可以为位于网络侧的公积金信息平台,由此可知,本申请不对电子文件的具体内容进行限制,只要是需要通过本申请进行加密保护的电子文件均为本申请中的电子文件。本实施例以电子文件具体为电子处方为例进行示例性说明,在一实施例中,第一请求消息中可以携带有第一标识,此时第一标识为终端设备的用户在HIS对应的医院代码HIS_ID,如果第一请求消息中未携带电子处方的处方号P_ID(本申请中的第二标识),则HIS可以根据电子处方的开设时间确定用户需要最新的电子处方,如果携带有第二标识,HIS可以为用户提供第二标识对应的电子处方。In the above step 101, in one embodiment, the platform server can serve as a network platform connecting the terminal device and the information provision server, and can be provided by an e-commerce platform. Different terminal devices and different information provision servers can transmit electronic files through the platform server. In one embodiment, the electronic file can be an electronic prescription, the information provision server can be a hospital information system (HIS) located on the hospital side, and the platform server can be an electronic prescription platform (EPP) located on the network side. In another embodiment, the electronic file can also be a user's social security file on the terminal device side, the information provision server can be a social security service system on the social security center side, and the platform server can be a social security information platform located on the network side. In yet another embodiment, the electronic file can also be a user's housing provident fund bill on the terminal device side, the information provision server can be a provident fund service system on the housing provident fund management center side, and the platform server can be a provident fund information platform located on the network side. Therefore, it can be seen that this application does not limit the specific content of the electronic file. As long as it is an electronic file that needs to be encrypted and protected by this application, it is an electronic file in this application. This embodiment is illustrative using an electronic document specifically being an electronic prescription. In one embodiment, the first request message may carry a first identifier, where the first identifier is the hospital code HIS_ID corresponding to the user of the terminal device in the HIS. If the first request message does not carry the prescription number P_ID of the electronic prescription (the second identifier in this application), the HIS may determine that the user needs the latest electronic prescription based on the opening time of the electronic prescription. If the second identifier is carried, the HIS may provide the user with the electronic prescription corresponding to the second identifier.

在上述步骤102和步骤103中,在一实施例中,第一验证信息可以为用户在终端设备输入的第一原始验证信息通过第一加密密钥加密生成的,第一原始验证信息例如为用户的身份证号或者身份证号的后四位、用户的名字等等。在一实施例中,可以根据第一提示信息确定用户在终端设备输入的第一原始验证信息以及确定信息提供服务器的第一加密密钥,根据第一加密密钥对第一原始验证信息进行加密,得到用于身份验证的第一验证信息,第一验证信息通过信息提供服务器的第一加密密钥加密,可以使平台服务器侧获取不到用户的原始的验证信息,例如,如果根据第一提示信息需要确定的第一验证信息为用户的身份证号,通过对身份证号以第一加密密钥进行加密后,发送至平台服务器,则平台服务器是无法获取到用户的真实的身份证号的,从而确保用户的真实的验证信息在平台服务器上是保密的。In the above steps 102 and 103, in one embodiment, the first verification information can be generated by encrypting the first original verification information input by the user on the terminal device using the first encryption key. The first original verification information can be, for example, the user's ID number or the last four digits of the ID number, the user's name, etc. In one embodiment, the first original verification information input by the user on the terminal device and the first encryption key of the information providing server can be determined based on the first prompt information. The first original verification information is encrypted using the first encryption key to obtain the first verification information for identity authentication. The first verification information is encrypted using the first encryption key of the information providing server, so that the platform server cannot obtain the user's original verification information. For example, if the first verification information to be determined according to the first prompt information is the user's ID number, after the ID number is encrypted using the first encryption key and sent to the platform server, the platform server cannot obtain the user's real ID number, thereby ensuring that the user's real verification information is kept confidential on the platform server.

在上述步骤104中,在一实施例中,电子文件中的隐私信息例如可以为用户的姓名、身份证号、手机号码、家庭住址等等,通过第一加密密钥对隐私信息进行加密,从而使平台服务器不能获取到电子文件中的用户的隐私信息。在一实施例中,如果信息提供服务器采用对称加密算法,则信息提供服务器上的第一加密密钥可以与信息提供服务器的第一解密密钥相同。对称加密算法可以为DES(Data Encryption Standard)、3DES(Triple DES)、AES(Advanced Encryption Standard)等。如果信息提供服务器采用非对称加密算法,第一加密密钥可以为信息提供服务器的公钥,信息提供服务器的第一解密密钥则为信息提供服务器的私钥。在一实施例中,信息提供服务器的采用的非对称加密算法可以为RSA(RivestShamir Adlemen)、Elgamal、背包算法、Rabin、D-H(Diffie-Hellman)、椭圆曲线加密算法(ECC)等。In step 104, in one embodiment, the private information in the electronic file may be, for example, the user's name, ID number, mobile phone number, home address, etc. The private information is encrypted using a first encryption key, thereby preventing the platform server from accessing the user's private information in the electronic file. In one embodiment, if the information providing server uses a symmetric encryption algorithm, the first encryption key on the information providing server may be the same as the first decryption key on the information providing server. Symmetric encryption algorithms may include DES (Data Encryption Standard), 3DES (Triple DES), AES (Advanced Encryption Standard), etc. If the information providing server uses an asymmetric encryption algorithm, the first encryption key may be the public key of the information providing server, and the first decryption key of the information providing server may be the private key of the information providing server. In one embodiment, the asymmetric encryption algorithm used by the information providing server may include RSA (Rivest Shamir Adleman), Elgamal, Knapsack algorithm, Rabin, D-H (Diffie-Hellman), elliptic curve cryptography (ECC), etc.

本实施例中,通过对电子文件中的隐私信息通过第一加密密钥进行加密保护,由于平台服务器并没有信息提供服务器的第一加密密钥,因此即使电子文件在平台服务器时被窃取,窃取者也无法得到用户的真实的隐私信息,平台服务器侧的管理员也无法获取到用户的真实的隐私信息,从而有效地保护用户的隐私信息不被平台服务器泄露,确保用户的隐私安全。In this embodiment, the privacy information in the electronic file is encrypted and protected by the first encryption key. Since the platform server does not have the first encryption key of the information providing server, even if the electronic file is stolen on the platform server, the thief cannot obtain the user's real privacy information, and the administrator on the platform server side cannot obtain the user's real privacy information, thereby effectively protecting the user's privacy information from being leaked by the platform server and ensuring the user's privacy security.

请参考图2,为根据一示例性实施例二示出的获取电子文件的方法的流程图,本实施例以用户需要通过终端设备登录到平台服务器为例进行示例性说明,包括如下步骤:Please refer to FIG2 , which is a flowchart of a method for obtaining an electronic file according to a second exemplary embodiment. This embodiment is described by taking an example where a user needs to log in to a platform server through a terminal device, and includes the following steps:

步骤201,在用户未登录到平台服务器时,确定用户的第一登录信息,通过第一登录信息登录平台服务器。Step 201: When the user has not logged into the platform server, determine the user's first login information and log into the platform server using the first login information.

步骤202,通过第一手机号码接收来自信息提供服务器的第一验证码,第一验证码为平台服务器根据第二手机号码指示信息提供服务器发送第一手机号码的,第二手机号码由第一加密密钥对第一手机号码加密得到。Step 202: Receive a first verification code from the information providing server via the first mobile phone number. The first verification code is sent by the platform server to the information providing server according to the second mobile phone number. The second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key.

步骤203,将第一验证码发送给平台服务器。Step 203: Send the first verification code to the platform server.

步骤204,在平台服务器对第一验证码与来自信息提供服务器的第二验证码进行验证后,确定用户登录成功,接收平台服务器返回的登录成功的第一响应消息。Step 204: After the platform server verifies the first verification code and the second verification code from the information providing server, it is determined that the user login is successful, and a first response message indicating successful login is received from the platform server.

在上述步骤201中,在一实施例中,第一登录信息可以包括用户在平台服务器的登录名和登录密码,其中,登录名可以为用户的真实的第一手机号码,通过第一加密密钥对用户的真实的第一手机号码加密,生成第一登录信息,用户通过加密后的手机号码登录到平台服务器,由此,确保平台服务器不能够获取到用户的真实的手机号码。In the above step 201, in one embodiment, the first login information may include the user's login name and login password on the platform server, wherein the login name may be the user's real first mobile phone number. The user's real first mobile phone number is encrypted by the first encryption key to generate the first login information. The user logs in to the platform server using the encrypted mobile phone number, thereby ensuring that the platform server cannot obtain the user's real mobile phone number.

在上述步骤202和步骤203中,在一实施例中,在用户通过第一登录信息登录到平台服务器之后,可以基于第一登录信息确定用户在平台服务器注册时提供的经过第一加密密钥加密后的第二手机号码,在另一实施例中,如果第一登录信息中的登录名为第二手机号码,可以通过第一登录信息中的登录名确定第二手机号码,由此,平台服务器可以向信息提供服务器请求向第二手机号码对应的终端设备发送第一验证码,信息提供服务器在接收到第二手机号码后,通过信息提供服务器的第一解密密钥对第二手机号码解密,得到用户在信息提供服务器注册的原始的第一手机号码,进而通过第一手机号码向终端设备发送第一验证码。在一实施例中,第一验证码可以为短信验证码。In the above steps 202 and 203, in one embodiment, after the user logs in to the platform server using the first login information, the second mobile phone number encrypted with the first encryption key provided by the user when registering on the platform server can be determined based on the first login information. In another embodiment, if the login name in the first login information is the second mobile phone number, the second mobile phone number can be determined using the login name in the first login information. As a result, the platform server can request the information provider server to send a first verification code to the terminal device corresponding to the second mobile phone number. After receiving the second mobile phone number, the information provider server decrypts the second mobile phone number using the first decryption key of the information provider server to obtain the original first mobile phone number registered by the user on the information provider server, and then sends the first verification code to the terminal device using the first mobile phone number. In one embodiment, the first verification code can be a text message verification code.

在上述步骤204中,在一实施例中,信息提供服务器在向终端设备发送第一验证码时,可以向平台服务器发送第二验证码,终端设备再将第一验证码发送给平台服务器。因此平台服务器在对第一验证码进行验证时,可以比较第一验证码与第二验证码的内容是否相同,如果相同,则验证通过,确定用户登录成功。In step 204, in one embodiment, the information providing server may send a second verification code to the platform server when sending the first verification code to the terminal device. The terminal device then sends the first verification code to the platform server. Therefore, when the platform server verifies the first verification code, it can compare the first and second verification codes to see if they are identical. If they are identical, verification is successful, confirming that the user has logged in successfully.

本实施例中,在用户需要登录到平台服务器时,通过第一加密密钥对用户的真实登录信息进行加密,并通过加密后的第一登录信息登录到平台服务器,在平台服务器上的数据遭到泄露时,窃取者从平台服务器窃取到的第一登录信息是加密后的数据,因此其无法获得用户的原始登录信息,也无法通过从平台服务器上得到的登录信息登录到平台服务器,从而有效地避免了窃取者通过其在平台服务器上窃取的登录信息非法登录到平台服务器,确保用户登录信息的安全。In this embodiment, when a user needs to log in to the platform server, the user's real login information is encrypted by the first encryption key, and the user logs in to the platform server through the encrypted first login information. When the data on the platform server is leaked, the first login information stolen from the platform server by the thief is encrypted data, so the thief cannot obtain the user's original login information, nor can he log in to the platform server through the login information obtained from the platform server, thereby effectively preventing the thief from illegally logging in to the platform server through the login information stolen on the platform server, thereby ensuring the security of the user's login information.

请参考图3,为根据一示例性实施例三示出的获取电子文件的方法的流程图,本实施例以用户需要绑定用户在平台服务器的第一登录信息与用户在信息提供服务器上生成的用户标识为例进行示例性说明,如图3所示,包括如下步骤:Please refer to FIG3 , which is a flowchart of a method for obtaining an electronic file according to a third exemplary embodiment. This embodiment is illustrative in the example of a user needing to bind the user's first login information on the platform server with the user identifier generated by the user on the information providing server. As shown in FIG3 , the method includes the following steps:

步骤301,在用户在平台服务器的第一登录信息与用户标识未绑定时,向平台服务器发送关联请求,关联请求中携带有信息提供服务器的第一标识。Step 301: When the first login information of the user on the platform server is not bound to the user identifier, an association request is sent to the platform server, where the association request carries the first identifier of the information providing server.

步骤302,接收来自平台服务器根据关联请求返回的第二提示信息。Step 302: Receive second prompt information returned from the platform server according to the association request.

步骤303,根据第二提示信息确定用户在终端设备输入的第二原始验证信息。Step 303: Determine the second original verification information input by the user on the terminal device according to the second prompt information.

步骤304,根据第一加密密钥对第二原始验证信息进行加密,得到用于身份验证的第二验证信息,向平台服务器发送第二验证信息,平台服务器将绑定请求和第二验证信息转发至信息提供服务器,以供信息提供服务器根据与第一加密密钥对应的第一解密密钥对第二验证信息进行解密,根据解密后的第二验证信息确定用户在信息提供服务器的用户标识,将用户标识返回平台服务器后,以供平台服务器建立第一登录信息和用户标识之间的绑定关系。In step 304, the second original verification information is encrypted according to the first encryption key to obtain second verification information for identity authentication, and the second verification information is sent to the platform server. The platform server forwards the binding request and the second verification information to the information providing server, so that the information providing server can decrypt the second verification information according to the first decryption key corresponding to the first encryption key, determine the user ID of the user on the information providing server based on the decrypted second verification information, and return the user ID to the platform server so that the platform server can establish a binding relationship between the first login information and the user ID.

在一实施例中,用户标识可以为用户在信息提供服务器的唯一标识,该用户标识不含有用户的隐私信息,可以用于平台服务器在向信息提供服务器发起请求电子处方时作为索引,避免信息提供服务器每次都要通过对来自平台服务器的第二手机号码进行解密得到第一手机号码,之后将第一手机号码作为索引查找相应的电子文件。In one embodiment, the user identifier can be a unique identifier of the user on the information providing server. The user identifier does not contain the user's privacy information and can be used as an index when the platform server initiates a request for an electronic prescription to the information providing server, avoiding the information providing server having to decrypt the second mobile phone number from the platform server to obtain the first mobile phone number every time, and then use the first mobile phone number as an index to search for the corresponding electronic file.

本实施例以平台服务器为EPP和信息提供服务器为HIS为例进行说明,终端设备通过第二手机号码登录到EPP,其中,第二手机号码为原始的第一手机号码通过HIS信息提供服务器的第一加密密钥加密得到的;终端设备向EPP发送关联请求,该关联请求中携带有HIS_ID,终端设备的用户在根据EPP的提示输入身份证号后,对身份证号通过第一加密密钥进行加密,得到第二验证信息;EPP向HIS发送第二手机号码、第二验证信息、EPP的第二加密密钥,请求HIS对第二验证信息进行验证;HIS对第二验证信息验证通过后,向EPP返回用户标识;EPP存储第二验证信息,并存储第二手机号和用户标识的关联关系。在一实施例中,HIS可以基于第一手机号码生成用户标识。This embodiment is explained by taking the platform server as EPP and the information providing server as HIS as an example. The terminal device logs in to EPP through the second mobile phone number, wherein the second mobile phone number is the original first mobile phone number encrypted by the first encryption key of the HIS information providing server; the terminal device sends an association request to EPP, which carries HIS_ID. After the user of the terminal device enters the ID number according to the prompt of EPP, the ID number is encrypted by the first encryption key to obtain the second verification information; EPP sends the second mobile phone number, the second verification information, and the second encryption key of EPP to HIS, requesting HIS to verify the second verification information; after the HIS verifies the second verification information, it returns the user identification to EPP; EPP stores the second verification information and the association relationship between the second mobile phone number and the user identification. In one embodiment, HIS can generate a user identification based on the first mobile phone number.

本实施例中,信息提供服务器通过对来自平台服务器的第二验证信息进行验证,协助平台服务器实现了二次身份认证;在平台服务器上,由于第二验证信息是由信息提供服务器的第一加密密钥对第二原始验证信息进行加密后生成的,因此平台服务器并不能获取到终端设备的用户的真实的验证信息,从而可以防止窃听者窃取终端设备的用户的验证信息,避免非法用户向平台服务器通过非法的关联请求绑定合法用户在平台服务器的第一登录信息和用户在信息提供服务器的用户标识。In this embodiment, the information providing server assists the platform server in implementing secondary identity authentication by verifying the second verification information from the platform server; on the platform server, since the second verification information is generated by encrypting the second original verification information with the first encryption key of the information providing server, the platform server cannot obtain the real verification information of the user of the terminal device, thereby preventing eavesdroppers from stealing the verification information of the user of the terminal device and avoiding illegal users from binding the first login information of the legitimate user on the platform server and the user identification of the user on the information providing server to the platform server through illegal association requests.

请参考图4,为根据一示例性实施例四示出的获取电子文件的方法的流程图,本实施例以用户在平台服务器和信息提供服务器上注册为例进行示例性说明,如图4所示,包括如下步骤:Please refer to FIG4 , which is a flowchart of a method for obtaining an electronic file according to a fourth exemplary embodiment. This embodiment is described by taking a user registering on a platform server and an information providing server as an example. As shown in FIG4 , the method includes the following steps:

步骤401,向平台服务器发送用于获取平台服务器的第二加密密钥的第二请求消息。Step 401: Send a second request message for obtaining a second encryption key of the platform server to the platform server.

步骤402,接收平台服务器根据第二请求消息返回的第二加密密钥。Step 402: Receive a second encryption key returned by the platform server according to the second request message.

步骤403,在用户在平台服务器和信息提供服务器上未注册时,通过平台服务器的第二加密密钥对终端设备的用户需要在信息提供服务器注册的第一注册信息进行加密。Step 403: When the user is not registered on the platform server and the information providing server, the first registration information that the user of the terminal device needs to register on the information providing server is encrypted using the second encryption key of the platform server.

步骤404,在用户通过第一手机号码登录到信息提供服务器后,将通过第二加密密钥加密后的第一注册信息发送至信息提供服务器。Step 404: After the user logs in to the information providing server using the first mobile phone number, the first registration information encrypted using the second encryption key is sent to the information providing server.

步骤405,在信息提供服务器根据第一手机号码生成用户标识后,接收来自信息提供服务器的第一加密密钥、注册成功的第一响应消息以及第二手机号码,第二手机号码由第一加密密钥对第一手机号码加密生成。Step 405: After the information providing server generates a user identifier based on the first mobile phone number, it receives a first encryption key, a first response message of successful registration, and a second mobile phone number from the information providing server. The second mobile phone number is generated by encrypting the first mobile phone number with the first encryption key.

步骤406,通过第二手机号码向平台服务器注册。Step 406: Register with the platform server using the second mobile phone number.

步骤407,在平台服务器对第二手机号码注册后,接收平台服务器返回的注册成功的第二响应消息。Step 407: After the platform server registers the second mobile phone number, a second response message indicating successful registration is received from the platform server.

在上述步骤402中,在一实施例中,如果平台服务器采用对称加密算法,则平台服务器上的第二加密密钥可以与平台服务器的第二解密密钥相同。在一实施例中,对称加密算法可以为DES(Data Encryption Standard)、3DES(Triple DES)、AES(AdvancedEncryption Standard)等。在另一实施例中,如果平台服务器采用非对称加密算法,第二加密密钥可以为平台服务器的公钥,平台服务器的第二解密密钥可以为平台服务器的私钥。在一实施例中,平台服务器采用的非对称加密算法可以为RSA(Rivest Shamir Adlemen)、Elgamal、背包算法、Rabin、D-H(Diffie-Hellman)、椭圆曲线加密算法(ECC)等。在一实施例中,在平台服务器需要将第二加密密钥发送给信息提供服务器时,可以将非对称加密算法的公钥作为第二加密密钥。对于对称密钥的传输,可以通过安全传输通道来进行,或者是对对称密钥进行加密后再传输,从而确保对称密钥的安全性。In step 402, in one embodiment, if the platform server uses a symmetric encryption algorithm, the second encryption key on the platform server can be the same as the second decryption key on the platform server. In one embodiment, the symmetric encryption algorithm can be DES (Data Encryption Standard), 3DES (Triple DES), AES (Advanced Encryption Standard), etc. In another embodiment, if the platform server uses an asymmetric encryption algorithm, the second encryption key can be the public key of the platform server, and the second decryption key of the platform server can be the private key of the platform server. In one embodiment, the asymmetric encryption algorithm used by the platform server can be RSA (Rivest Shamir Adleman), Elgamal, Knapsack algorithm, Rabin, D-H (Diffie-Hellman), Elliptic Curve Cryptography (ECC), etc. In one embodiment, when the platform server needs to send the second encryption key to the information provision server, the public key of the asymmetric encryption algorithm can be used as the second encryption key. The transmission of the symmetric key can be carried out through a secure transmission channel, or the symmetric key can be encrypted before transmission to ensure the security of the symmetric key.

在上述步骤404中,终端设备可以向平台服务器发送第二手机号码,接收来自信息提供服务器返回的第三验证码,其中,第三验证码可以为平台服务器根据第二手机号码请求信息提供服务器发送给终端设备的;终端设备向平台服务器发送第三验证码;在平台服务器根据第三验证码与信息提供服务器返回给平台服务器的第四验证码进行比较以确定验证通过后,接收平台服务器返回的注册成功的第二响应消息。由于信息提供服务器可以根据其第一解密密钥对第二手机号码进行解密,并协助平台服务器发送短信验证码,实现了对用户的二次验证。In step 404, the terminal device can send the second mobile phone number to the platform server and receive a third verification code returned by the information provision server. The third verification code can be sent to the terminal device by the platform server upon request from the information provision server based on the second mobile phone number. The terminal device sends the third verification code to the platform server. After the platform server compares the third verification code with the fourth verification code returned by the information provision server to confirm that the verification is successful, the terminal device receives a second response message from the platform server indicating successful registration. Because the information provision server can decrypt the second mobile phone number using its first decryption key and assist the platform server in sending the SMS verification code, secondary verification of the user is achieved.

本实施例中,平台服务器在拿到通过信息提供服务器的第一加密密钥加密后的第二手机号码后,由于没有相应的解密密钥,因此并不能对第二手机号码进行解密获取到真实的第一手机号码,因此即使第二手机号码在平台服务器上被窃取,在窃取者未获取到信息提供服务器的第一解密密钥时窃取者会由于没有解密密钥不能对第二手机号码解密;同时,用户在信息提供服务器上注册的隐私数据通过平台服务器的第二加密密钥加密,因此信息提供服务器也不能对存储在平台服务器上的数据进行解密,由于窃取者同时攻破平台服务器和信息提供服务器的难度很高,因此本申请可以大大提高平台服务器和信息提供服务器的安全防护程度。In this embodiment, after the platform server obtains the second mobile phone number encrypted by the first encryption key of the information providing server, it cannot decrypt the second mobile phone number to obtain the real first mobile phone number because it does not have the corresponding decryption key. Therefore, even if the second mobile phone number is stolen on the platform server, the thief cannot decrypt the second mobile phone number because he does not have the first decryption key of the information providing server; at the same time, the private data registered by the user on the information providing server is encrypted by the second encryption key of the platform server, so the information providing server cannot decrypt the data stored on the platform server. Since it is very difficult for a thief to break into the platform server and the information providing server at the same time, this application can greatly improve the security protection level of the platform server and the information providing server.

请参考图5,为根据又一示例性实施例一示出的获取电子文件的方法的流程图;本实施例可以应用在平台服务器上,在一实施例中,平台服务器可以为电商平台的服务,如图5所示,包括如下步骤:Please refer to FIG5 , which is a flowchart of a method for obtaining an electronic file according to yet another exemplary embodiment. This embodiment can be applied on a platform server. In one embodiment, the platform server can be a service of an e-commerce platform. As shown in FIG5 , the method includes the following steps:

步骤501,接收来自终端设备的用于获取电子文件的第一请求消息,第一请求消息中携带有提供电子文件的信息提供服务器的第一标识。Step 501: Receive a first request message for obtaining an electronic file from a terminal device, where the first request message carries a first identifier of an information providing server that provides the electronic file.

步骤502,根据第一请求消息向终端设备返回第一提示信息。Step 502: Return first prompt information to the terminal device according to the first request message.

步骤503,在终端设备根据第一提示信息确定用于身份验证的第一验证信息后,接收来自终端设备的第一验证信息。Step 503: After the terminal device determines the first verification information for identity authentication according to the first prompt information, the first verification information is received from the terminal device.

步骤504,根据第一标识确定信息提供服务器,将第一验证信息、终端设备的用户在信息提供服务器注册的用户标识发送至信息提供服务器。Step 504: Determine the information providing server according to the first identifier, and send the first verification information and the user identifier of the user of the terminal device registered in the information providing server to the information providing server.

步骤505,在信息提供服务器对第一验证信息验证通过并根据用户标识确定电子文件后,接收来自信息提供服务器的电子文件,将电子文件转发至终端设备,电子文件中的隐私信息经过信息提供服务器的第一加密密钥加密。Step 505: After the information providing server verifies the first verification information and determines the electronic file according to the user identifier, the electronic file is received from the information providing server and forwarded to the terminal device. The private information in the electronic file is encrypted using the first encryption key of the information providing server.

在上述步骤501中,关于第一请求消息以及电子文件的描述请参见上述步骤101的相关描述,在此不再详述。In the above step 501, for the description of the first request message and the electronic file, please refer to the relevant description of the above step 101, which will not be described in detail here.

在上述步骤502和步骤503中,第一验证信息以及第一原始验证信息的相关描述请参见上述步骤102和步骤103的相关描述,在此不再详述。In the above steps 502 and 503 , the relevant descriptions of the first verification information and the first original verification information can be found in the relevant descriptions of the above steps 102 and 103 , which will not be described in detail here.

在上述步骤504中,在一实施例中,平台服务器可以作为中介平台为不同的终端设备与不同的信息提供服务器提供电子文件的转发和用户身份的认证,当平台服务器从第一请求消息中解析出第一标识后,根据第一标识确定相对应的信息提供服务器;通过将第一验证信息、终端设备的用户在信息提供服务器注册的用户标识发送至信息提供服务器,使信息提供服务器能够对第一验证信息进行验证,在验证通过后根据用户标识确定用户需要查看的电子文件。In the above step 504, in one embodiment, the platform server can act as an intermediary platform to provide electronic file forwarding and user identity authentication for different terminal devices and different information providing servers. After the platform server parses the first identifier from the first request message, it determines the corresponding information providing server based on the first identifier; by sending the first verification information and the user identifier of the user of the terminal device registered on the information providing server to the information providing server, the information providing server can verify the first verification information, and after the verification is passed, determine the electronic file that the user needs to view based on the user identifier.

在上述步骤505中,电子文件中的隐私信息的描述请参见上述步骤104的相关描述,在此不再详述。In the above step 505, the description of the privacy information in the electronic file can be found in the relevant description of the above step 104, which will not be described in detail here.

本实施例中,平台服务器接收到来自终端设备的第一验证信息和第一请求消息之后,根据第一标识确定信息提供服务器,并将第一验证信息和用户标识发送至信息提供服务器,以供信息提供服务器确定用户标识相对应的电子文件,电子文件中的隐私信息通过信息提供服务器的第一加密密钥进行加密保护,由于平台服务器并没有信息提供服务器的第一解密密钥,因此即使电子文件在平台服务器侧被窃取,窃取者也无法通过电子文件得到用户的真实的隐私信息,平台服务器侧的管理员也无法通过电子文件获取到用户的真实的隐私信息,从而有效地保护用户的隐私信息不被平台服务器泄露,确保用户的隐私安全。In this embodiment, after the platform server receives the first verification information and the first request message from the terminal device, it determines the information providing server based on the first identifier, and sends the first verification information and the user identifier to the information providing server so that the information providing server can determine the electronic file corresponding to the user identifier. The private information in the electronic file is encrypted and protected by the first encryption key of the information providing server. Since the platform server does not have the first decryption key of the information providing server, even if the electronic file is stolen on the platform server side, the thief cannot obtain the user's true private information through the electronic file, and the administrator on the platform server side cannot obtain the user's true private information through the electronic file, thereby effectively protecting the user's private information from being leaked by the platform server and ensuring the user's privacy security.

请参见图6,为根据又一示例性实施例二示出的获取电子文件的方法的流程图;本实施例以用户需要通过终端设备登录到平台服务器为例进行示例性说明,如图6所示,包括如下步骤:Please refer to FIG6 , which is a flowchart of a method for obtaining an electronic file according to another exemplary embodiment 2. This embodiment is described by taking an example where a user needs to log in to a platform server through a terminal device. As shown in FIG6 , the method includes the following steps:

步骤601,在用户未登录到平台服务器时,确定用户在平台服务器上的第一登录信息。Step 601: When the user has not logged into the platform server, determine the first login information of the user on the platform server.

步骤602,通过终端设备的用户在平台服务器注册的第二手机号码指示信息提供服务器向终端设备发送第一验证码,第二手机号码由第一加密密钥对第一手机号码加密得到,第一手机号码为用户注册在信息提供服务器的手机号码。Step 602: The second mobile phone number registered by the user of the terminal device on the platform server is used to instruct the information providing server to send a first verification code to the terminal device. The second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key. The first mobile phone number is the mobile phone number registered by the user on the information providing server.

步骤603,在信息提供服务器通过信息提供服务器的第一解密密钥对第二手机号码解密得到第一手机号码,通过第一手机号码向终端设备指示发送第一验证码后,接收来自终端设备的第一验证码以及接收来自信息提供服务器的第二验证码。In step 603, the information providing server decrypts the second mobile phone number using the first decryption key of the information providing server to obtain the first mobile phone number, instructs the terminal device to send the first verification code through the first mobile phone number, and then receives the first verification code from the terminal device and the second verification code from the information providing server.

步骤604,对第一验证码和第二验证码进行验证,在验证通过后确定用户登录成功。Step 604: Verify the first verification code and the second verification code, and determine that the user login is successful after the verification is successful.

步骤605,向终端设备返回登录成功的第一响应消息。Step 605: Return a first response message indicating successful login to the terminal device.

在上述步骤601中,第一登录信息的描述可以参见上述步骤201的相关描述,在此不再详述。In the above step 601, the description of the first login information can refer to the relevant description of the above step 201, which will not be described in detail here.

在上述步骤602至步骤604中,信息提供服务器在向终端设备发送第一验证码时,可以向平台服务器发送第二验证码,因此平台服务器在对第一验证码进行验证时,可以比较第一验证码与第二验证码的内容是否相同,如果相同,则验证通过,确定用户登录成功。In the above steps 602 to 604, the information providing server can send a second verification code to the platform server when sending the first verification code to the terminal device. Therefore, when the platform server verifies the first verification code, it can compare whether the contents of the first verification code and the second verification code are the same. If they are the same, the verification is passed, and it is determined that the user login is successful.

本实施例中,在用户需要登录到平台服务器时,由于用户是通过加密后的第一登录信息登录到平台服务器,在平台服务器上的数据遭到泄露时,窃取者从平台服务器窃取到的第一登录信息是加密后的数据,因此其无法通过从平台服务器上得到的登录信息登录到平台服务器,从而有效地避免了窃取者通过其在平台服务器上窃取的登录信息非法登录到平台服务器,确保用户登录信息的安全;通过比较第一验证码和第二验证码,实现对用户进行二次身份验证,从而提高了用户在登录平台服务器的过程中的安全性。In this embodiment, when a user needs to log in to the platform server, since the user logs in to the platform server through the encrypted first login information, when the data on the platform server is leaked, the first login information stolen by the thief from the platform server is encrypted data, and therefore the thief cannot log in to the platform server through the login information obtained from the platform server, thereby effectively preventing the thief from illegally logging into the platform server through the login information stolen on the platform server, ensuring the security of the user's login information; by comparing the first verification code and the second verification code, the user is subjected to secondary identity authentication, thereby improving the security of the user in the process of logging in to the platform server.

请参见图7,为根据又一示例性实施例三示出的获取电子文件的方法的流程图,本实施例以用户需要绑定用户在平台服务器的第一登录信息与用户在信息提供服务器上生成的用户标识为例进行示例性说明,如图7所示,包括如下步骤:Please refer to FIG7 , which is a flowchart of a method for obtaining an electronic file according to yet another exemplary embodiment 3. This embodiment is illustrative in an example where a user needs to bind the user's first login information on the platform server with a user identifier generated by the user on the information providing server. As shown in FIG7 , the method includes the following steps:

步骤701,在用户在平台服务器的第一登录信息和用户在信息提供服务器注册的用户标识未绑定时,接收来自终端设备的关联请求,关联请求中携带有第一标识。Step 701: When the first login information of the user on the platform server and the user identifier registered by the user on the information providing server are not bound, an association request is received from a terminal device, where the association request carries the first identifier.

步骤702,根据关联请求向终端设备返回第二提示信息。Step 702: Return second prompt information to the terminal device according to the association request.

步骤703,在终端设备根据第二提示信息确定用于身份验证的第二验证信息,接收来自终端设备根据第二提示信息返回的第二验证信息,第二验证信息经过第一加密密钥加密。Step 703: The terminal device determines second verification information for identity authentication according to the second prompt information, and receives the second verification information returned from the terminal device according to the second prompt information, where the second verification information is encrypted using the first encryption key.

步骤704,将绑定请求和经过第一加密密钥的第二验证信息转发至信息提供服务器,以供信息提供服务器对经过第一加密密钥加密的第二验证信息进行解密,根据解密后的第二验证信息确定用户在信息提供服务器注册的用户标识。Step 704: forward the binding request and the second verification information encrypted with the first encryption key to the information providing server, so that the information providing server can decrypt the second verification information encrypted with the first encryption key and determine the user ID registered by the user in the information providing server based on the decrypted second verification information.

步骤705,接收来自信息提供服务器返回的用户标识,建立第一登录信息和用户标识之间的绑定关系。Step 705: Receive the user identification returned from the information providing server, and establish a binding relationship between the first login information and the user identification.

本实施例以平台服务器为EPP和信息提供服务器为HIS为例进行说明,终端设备通过第二手机号码登录到EPP,其中,第二手机号码为原始的第一手机号码通过HIS信息提供服务器的第一加密密钥加密得到的;EPP接收来自终端设备的关联请求,该关联请求中携带有HIS_ID,EPP接收到来自终端设备的第二验证信息后,向HIS发送第二手机号码、第二验证信息、EPP的第二加密密钥,请求HIS对第二验证信息进行验证;HIS对第二验证信息验证通过后,向EPP返回用户标识;EPP存储第二验证信息,并存储第二手机号和用户标识的关联关系。在一实施例中,HIS可以通过第一手机号码生成用户标识。This embodiment is explained by taking the platform server as EPP and the information providing server as HIS as an example. The terminal device logs in to the EPP through the second mobile phone number, wherein the second mobile phone number is the original first mobile phone number encrypted by the first encryption key of the HIS information providing server; the EPP receives an association request from the terminal device, which carries the HIS_ID. After receiving the second verification information from the terminal device, the EPP sends the second mobile phone number, the second verification information, and the second encryption key of the EPP to the HIS, requesting the HIS to verify the second verification information; after the HIS verifies the second verification information, it returns the user identification to the EPP; the EPP stores the second verification information and the association relationship between the second mobile phone number and the user identification. In one embodiment, the HIS can generate a user identification through the first mobile phone number.

本实施例中,信息提供服务器通过对来自平台服务器的第二验证信息进行验证,协助平台服务器实现了二次身份认证;在平台服务器上,由于第二验证信息是由信息提供服务器的第一加密密钥对第二原始验证信息进行加密后生成的,因此平台服务器并不能获取到终端设备的用户的真实的验证信息,从而可以防止窃听者窃取终端设备的用户的验证信息,避免非法用户向平台服务器通过非法的关联请求绑定合法用户在平台服务器的第一登录信息和用户在信息提供服务器的用户标识。In this embodiment, the information providing server assists the platform server in implementing secondary identity authentication by verifying the second verification information from the platform server; on the platform server, since the second verification information is generated by encrypting the second original verification information with the first encryption key of the information providing server, the platform server cannot obtain the real verification information of the user of the terminal device, thereby preventing eavesdroppers from stealing the verification information of the user of the terminal device and avoiding illegal users from binding the first login information of the legitimate user on the platform server and the user identification of the user on the information providing server to the platform server through illegal association requests.

图8是根据又一示例性实施例四示出的获取电子文件的方法的流程图,本实施例以用户在平台服务器和信息提供服务器上注册为例进行示例性说明,如图8所示,包括如下步骤:FIG8 is a flowchart of a method for obtaining an electronic file according to yet another exemplary embodiment 4. This embodiment is described by taking a user registering on a platform server and an information providing server as an example. As shown in FIG8 , the method includes the following steps:

步骤801,接收来自终端设备的用于获取平台服务器的第二加密密钥的第二请求消息。Step 801: Receive a second request message from a terminal device for obtaining a second encryption key of a platform server.

步骤802,根据第二请求消息向终端设备返回第二加密密钥。Step 802: Return a second encryption key to the terminal device according to the second request message.

步骤803,在用户在平台服务器上未注册时,通过来自终端设备的第二注册信息进行注册。Step 803: When the user is not registered on the platform server, register using the second registration information from the terminal device.

步骤804,根据第二注册信息向信息提供服务器获取第三验证码,指示信息提供服务器向第二手机号码对应的第一手机号码发送第四验证码。Step 804: Obtain a third verification code from the information providing server according to the second registration information, and instruct the information providing server to send a fourth verification code to the first mobile phone number corresponding to the second mobile phone number.

步骤805,接收来自终端设备的第四验证码。Step 805: Receive a fourth verification code from the terminal device.

步骤806,对第三验证码和第四验证码进行验证。Step 806: Verify the third verification code and the fourth verification code.

步骤807,在平台服务器对第三验证码和第四验证验证通过后,向终端设备返回注册成功的第二响应消息。Step 807: After the platform server verifies the third verification code and the fourth verification code, it returns a second response message indicating successful registration to the terminal device.

本实施例中,平台服务器在拿到通过信息提供服务器的第一加密密钥加密后的第二手机号码后,由于没有相应的解密密钥,因此并不能对第二手机号码进行解密获取到真实的第一手机号码,因此即使第二手机号码在平台服务器上被窃取,在窃取者未获取到信息提供服务器的第一解密密钥时窃取者会由于没有解密密钥不能对第二手机号码解密;同时,用户在信息提供服务器上注册的隐私数据通过平台服务器的第二加密密钥加密,因此信息提供服务器也不能对存储在平台服务器上的数据进行解密,由于窃取者同时攻破平台服务器和信息提供服务器的难度很高,因此本申请可以大大提高平台服务器和信息提供服务器的安全防护程度。In this embodiment, after the platform server obtains the second mobile phone number encrypted by the first encryption key of the information providing server, it cannot decrypt the second mobile phone number to obtain the real first mobile phone number because it does not have the corresponding decryption key. Therefore, even if the second mobile phone number is stolen on the platform server, the thief cannot decrypt the second mobile phone number because he does not have the first decryption key of the information providing server; at the same time, the private data registered by the user on the information providing server is encrypted by the second encryption key of the platform server, so the information providing server cannot decrypt the data stored on the platform server. Since it is very difficult for a thief to break into the platform server and the information providing server at the same time, this application can greatly improve the security protection level of the platform server and the information providing server.

请参见图9,为根据另一示例性实施例一示出的获取电子文件的方法的流程图;本实施例可以应用在信息提供服务器上,在一实施例中,信息提供服务器可以为医院系统的服务器,通过信息提供服务器可以为终端设备的用户提供电子处方,如图9所示,包括如下步骤:Please refer to FIG9 , which is a flowchart of a method for obtaining an electronic file according to another exemplary embodiment. This embodiment can be applied to an information providing server. In one embodiment, the information providing server can be a server in a hospital system. The information providing server can provide an electronic prescription to a user of a terminal device. As shown in FIG9 , the method includes the following steps:

步骤901,接收来自平台服务器的第一验证信息、终端设备的用户在信息提供服务器注册的用户标识。Step 901: Receive first verification information from the platform server and a user ID of a user of a terminal device registered on an information providing server.

步骤902,对第一验证信息进行验证,在验证通过后根据用户标识确定电子文件。Step 902: Verify the first verification information, and determine the electronic file according to the user identification after the verification is passed.

步骤903,将电子文件中的隐私信息通过信息提供服务器的第一加密密钥加密。Step 903: Encrypt the private information in the electronic file using the first encryption key of the information providing server.

步骤904,将电子文件发送至平台服务器,以供平台服务器将电子文件转发至终端设备。Step 904: Send the electronic file to the platform server so that the platform server can forward the electronic file to the terminal device.

在上述步骤902中,信息提供服务器可以通过信息提供服务器的第一解密密钥对第一验证信息进行解密,通过平台服务器的第二加密密钥对解密后的第一验证信息进行加密,得到第一加密字符串;确定用户在信息提供服务器注册时生成的第二加密字符串,第二加密字符串由第一验证信息通过平台服务器的第二加密密钥加密生成;确定第一加密字符串和第二加密字符串是否相同,如果相同,则第一验证信息的验证通过。In the above step 902, the information providing server can decrypt the first verification information using the first decryption key of the information providing server, and encrypt the decrypted first verification information using the second encryption key of the platform server to obtain a first encrypted string; determine the second encrypted string generated when the user registers on the information providing server, and the second encrypted string is generated by encrypting the first verification information using the second encryption key of the platform server; determine whether the first encrypted string and the second encrypted string are the same, and if they are the same, the verification of the first verification information is passed.

本实施例中,信息提供服务器在对来自平台服务器的第一验证信息进行验证并且验证通过后,根据来自平台服务器的用户标识确定电子文件,通过第一加密密钥将电子文件的隐私信息进行加密,由于平台服务器并没有信息提供服务器的第一加密密钥,因此即使电子文件在平台服务器侧被窃取,窃取者也无法通过电子文件得到用户的真实的隐私信息,平台服务器侧的管理员也无法通过电子文件获取到用户的真实的隐私信息,从而有效地保护用户的隐私信息不被平台服务器泄露,确保用户的隐私安全。In this embodiment, after the information providing server verifies the first verification information from the platform server and the verification is passed, it determines the electronic file based on the user identification from the platform server and encrypts the private information of the electronic file using the first encryption key. Since the platform server does not have the first encryption key of the information providing server, even if the electronic file is stolen on the platform server side, the thief cannot obtain the user's true private information through the electronic file, and the administrator on the platform server side cannot obtain the user's true private information through the electronic file, thereby effectively protecting the user's private information from being leaked by the platform server and ensuring the user's privacy security.

请参见图10,为根据另一示例性实施例二示出的获取电子文件的方法的流程图,本实施例以用户需要通过终端设备登录到平台服务器为例进行示例性说明,如图10所示,包括如下步骤:Please refer to FIG10 , which is a flowchart of a method for obtaining an electronic file according to another exemplary embodiment 2. This embodiment is described by taking an example where a user needs to log in to a platform server through a terminal device. As shown in FIG10 , the method includes the following steps:

步骤1001,在用户未登录到平台服务器时,接收来自平台服务器用于指示信息提供服务器向用户在平台服务器注册的第二手机号码发送第一验证码的指示消息,其中,第二手机号码由第一加密密钥对第一手机号码加密得到,第一手机号码为用户注册在信息提供服务器的手机号码。Step 1001, when the user is not logged in to the platform server, receives an instruction message from the platform server to instruct the information providing server to send a first verification code to the second mobile phone number registered by the user on the platform server, wherein the second mobile phone number is obtained by encrypting the first mobile phone number with a first encryption key, and the first mobile phone number is the mobile phone number registered by the user on the information providing server.

步骤1002,根据指示消息通过第一解密密钥对第二手机号码进行解密,得到第一手机号码。Step 1002: Decrypt the second mobile phone number using the first decryption key according to the instruction message to obtain the first mobile phone number.

步骤1003,通过第一手机号码向终端设备发送第一验证码以及向平台服务器返回第二验证码,以供平台服务器根据第一验证码和第二验证码对用户进行登录验证。Step 1003: Send a first verification code to the terminal device via the first mobile phone number and return a second verification code to the platform server, so that the platform server can perform login verification on the user according to the first verification code and the second verification code.

本实施例中,在用户需要登录到平台服务器时,信息提供服务器根据来自平台服务器的指示消息通过第一解密密钥对第二手机号码进行解密,得到第一手机号码,并通过第一手机号码向终端设备发送第一验证码以及向平台服务器返回第二验证码,从而协助平台服务器对用户进行二次身份验证,提高了用户在登录平台服务器的过程中的安全性。In this embodiment, when the user needs to log in to the platform server, the information providing server decrypts the second mobile phone number using the first decryption key according to the instruction message from the platform server, obtains the first mobile phone number, and sends the first verification code to the terminal device through the first mobile phone number and returns the second verification code to the platform server, thereby assisting the platform server in performing secondary identity authentication for the user, thereby improving the security of the user in the process of logging into the platform server.

请参见图11,为根据另一示例性实施例三示出的获取电子文件的方法的流程图,本实施例以用户需要绑定用户在平台服务器的第一登录信息与用户在信息提供服务器上生成的用户标识为例进行示例性说明,如图11所示,包括如下步骤:Please refer to FIG11, which is a flowchart of a method for obtaining an electronic file according to another exemplary embodiment 3. This embodiment is illustrative in an example where a user needs to bind the user's first login information on the platform server with a user identifier generated by the user on the information providing server. As shown in FIG11, the method includes the following steps:

步骤1101,在用户在平台服务器的第一登录信息与用户标识未绑定时,接收来自平台服务器的第二验证信息和平台服务器的第二加密密钥,第二验证信息经过第一加密密钥加密。Step 1101: When the first login information of the user on the platform server is not bound to the user identification, second verification information and a second encryption key of the platform server are received from the platform server, and the second verification information is encrypted using the first encryption key.

步骤1102,通过信息提供服务器的第一解密密钥对第二验证信息进行解密,通过第二加密密钥对解密后的第二原始验证信息进行加密,得到第三加密字符串。Step 1102: decrypt the second verification information using the first decryption key of the information providing server, and encrypt the decrypted second original verification information using the second encryption key to obtain a third encrypted character string.

步骤1103,确定用户在信息提供服务器注册时生成的第四加密字符串,第四加密字符串由第二原始验证信息通过平台服务器的第二加密密钥加密生成。Step 1103 : Determine a fourth encrypted string generated when the user registers on the information providing server, where the fourth encrypted string is generated by encrypting the second original verification information using the second encryption key of the platform server.

步骤1104,确定第三加密字符串和第四加密字符串是否相同。Step 1104: Determine whether the third encrypted string and the fourth encrypted string are the same.

步骤1105,如果相同,向平台服务器返回终端设备的用户在信息提供服务器上注册的用户标识,以供平台服务器建立第一登录信息和用户标识的绑定关系。Step 1105: If they are the same, the user ID of the user of the terminal device registered on the information providing server is returned to the platform server so that the platform server can establish a binding relationship between the first login information and the user ID.

作为一个示例性场景,信息提供服务器接收到的来自平台服务器的第二验证信息为字符串“AAAA&&&”和平台服务器的第二加密密钥“121212”,由于“AAAA&&&”经过第一加密密钥加密,因此信息提供服务器利用其第一解密密钥对“AAAA&&&”解密后,生成真实的验证信息“BBBB&&&”,通过第二加密秘钥“121212”对“BBBB&&&”进行加密,得到第三加密字符串“CCCC&&&”,确定用户在信息提供服务器注册时生成的第四加密字符串“DDDD&&&”,第四加密字符串由第二验证信息AAAA&&&通过平台服务器的第二加密密钥“121212”加密生成,由此可知,第三加密字符串“CCCC&&&”与第四加密字符串“DDDD&&&”应为内容相同的字符串,如果不相同,说明用户的关联请求非法或者非法用户请求关联。As an exemplary scenario, the second verification information received by the information providing server from the platform server is the string "AAAA&&&" and the second encryption key "121212" of the platform server. Since "AAAA&&&" is encrypted with the first encryption key, the information providing server uses its first decryption key to decrypt "AAAA&&&" to generate the real verification information "BBBB&&&", and encrypts "BBBB&&&" with the second encryption key "121212" to obtain the third encrypted string "CCCC&&&", and determines the fourth encrypted string "DDDD&&&" generated when the user registers on the information providing server. The fourth encrypted string is generated by encrypting the second verification information AAAA&&& with the second encryption key "121212" of the platform server. It can be seen that the third encrypted string "CCCC&&&" and the fourth encrypted string "DDDD&&&" should be strings with the same content. If they are different, it means that the user's association request is illegal or an illegal user requests association.

本实施例中,信息提供服务器通过采用加密字符串的方式对来自平台服务器的第二验证信息进行验证,协助平台服务器实现了二次身份认证;在平台服务器上,由于第二验证信息是由信息提供服务器的第一加密密钥对第二原始验证信息进行加密后生成的,因此平台服务器并不能获取到终端设备的用户的真实的验证信息,而第四加密字符串由第二验证信息通过平台服务器的第二加密密钥加密生成,因此信息提供服务器侧只有在对用户进行验证时才能够得到真实的验证信息,从而可以防止窃听者窃取终端设备的用户在平台服务器和信息提供服务器上的验证信息,避免非法用户向平台服务器通过非法的关联请求绑定合法用户在平台服务器的第一登录信息和用户在信息提供服务器的用户标识。In this embodiment, the information providing server verifies the second verification information from the platform server by using an encrypted string, thereby assisting the platform server in achieving secondary identity authentication; on the platform server, since the second verification information is generated by encrypting the second original verification information with the first encryption key of the information providing server, the platform server cannot obtain the true verification information of the user of the terminal device, and the fourth encrypted string is generated by encrypting the second verification information using the second encryption key of the platform server. Therefore, the information providing server side can only obtain the true verification information when verifying the user, thereby preventing eavesdroppers from stealing the verification information of the user of the terminal device on the platform server and the information providing server, and avoiding illegal users from binding the first login information of the legitimate user on the platform server and the user identification of the user on the information providing server to the platform server through illegal association requests.

请参见图12,为根据另一示例性实施例四示出的获取电子文件的方法的流程图,本实施例以用户在平台服务器和信息提供服务器上注册为例进行示例性说明,如图12所示,包括如下步骤:Please refer to FIG12, which is a flowchart of a method for obtaining an electronic file according to another exemplary embodiment 4. This embodiment is described by taking the user registering on the platform server and the information providing server as an example. As shown in FIG12, the method includes the following steps:

步骤1201,在用户在信息提供服务器上未注册时,通过来自终端设备的第一注册信息进行注册。Step 1201: When the user is not registered on the information providing server, the user registers using the first registration information from the terminal device.

步骤1202,在用户通过第一手机号码登录到信息提供服务器后,将第一手机号码通过第一加密密钥进行加密,得到第二手机号码。Step 1202: After the user logs in to the information providing server using the first mobile phone number, the first mobile phone number is encrypted using the first encryption key to obtain a second mobile phone number.

步骤1203,将第二手机号码发送至终端设备,以供终端设备通过第二手机号码在平台服务器上注册。Step 1203: Send the second mobile phone number to the terminal device so that the terminal device can register on the platform server using the second mobile phone number.

步骤1204,根据第一手机号码生成用户标识。Step 1204: Generate a user ID based on the first mobile phone number.

步骤1205,接收来自平台服务器的第二手机号码。Step 1205: Receive a second mobile phone number from the platform server.

步骤1206,通过第一解密密钥对第二手机号码进行解密,得到第一手机号码;Step 1206: Decrypt the second mobile phone number using the first decryption key to obtain the first mobile phone number.

步骤1207,通过第一手机号码向终端设备返回第三验证码,第三验证码为平台服务器根据第二注册信息请求信息提供服务器发送给终端设备的;Step 1207: Return a third verification code to the terminal device via the first mobile phone number. The third verification code is sent by the platform server to the terminal device according to the second registration information request information providing server.

步骤1208,向平台服务器返回第四验证码,以供平台服务器对第三验证码和第四验证码进行比较以确定验证是否通过。Step 1208: Return the fourth verification code to the platform server, so that the platform server can compare the third verification code with the fourth verification code to determine whether the verification is successful.

本实施例中,平台服务器在拿到通过信息提供服务器的第一加密密钥加密后的第二手机号码后,由于没有相应的解密密钥,因此并不能对第二手机号码进行解密获取到真实的第一手机号码,因此即使第二手机号码在平台服务器上被窃取,在窃取者未获取到信息提供服务器的第一解密密钥时窃取者会由于没有解密密钥不能对第二手机号码解密;同时,用户在信息提供服务器上注册的隐私数据通过平台服务器的第二加密密钥加密,因此信息提供服务器也不能对存储在平台服务器上的数据进行解密,由于窃取者同时攻破平台服务器和信息提供服务器的难度很高,因此本申请可以大大提高平台服务器和信息提供服务器的安全防护程度。In this embodiment, after the platform server obtains the second mobile phone number encrypted by the first encryption key of the information providing server, it cannot decrypt the second mobile phone number to obtain the real first mobile phone number because it does not have the corresponding decryption key. Therefore, even if the second mobile phone number is stolen on the platform server, the thief cannot decrypt the second mobile phone number because he does not have the first decryption key of the information providing server; at the same time, the private data registered by the user on the information providing server is encrypted by the second encryption key of the platform server, so the information providing server cannot decrypt the data stored on the platform server. Since it is very difficult for a thief to break into the platform server and the information providing server at the same time, this application can greatly improve the security protection level of the platform server and the information providing server.

请参见图13,为根据一示例性实施例示出的获取电子文件的方法的场景图之一,本实施例以电子文件为电子处方、平台服务器为EPP以及信息提供服务器为HIS为例,描述用户如何从HIS获取到电子处方的,其中,HIS和EPP均采用非对称加密算法,相应地,HIS侧的公钥为第一加密密钥,私钥为第一解密密钥,EPP侧的公钥为第二加密密钥,私钥为第二解密密钥;如图13所示,包括如下步骤:Please refer to FIG13, which is one of the scenario diagrams of a method for obtaining an electronic file according to an exemplary embodiment. This embodiment takes an electronic prescription as the electronic file, an EPP as the platform server, and a HIS as the information providing server as an example to describe how a user obtains an electronic prescription from the HIS. Both the HIS and the EPP use an asymmetric encryption algorithm. Accordingly, the public key on the HIS side is the first encryption key, the private key is the first decryption key, the public key on the EPP side is the second encryption key, and the private key is the second decryption key. As shown in FIG13, the following steps are included:

步骤1301,患者通过终端设备使用经过HIS的公钥加密后的登录名、登录密码登录EPP,其中,登录的方式可以通过图案方式登录,也可以通过输入登录名、密码登录的方式登录。Step 1301: The patient logs in to the EPP through the terminal device using the login name and password encrypted by the HIS public key. The patient can log in by pattern or by entering the login name and password.

步骤1302,EPP向终端设备返回登录成功的第一响应消息。Step 1302: EPP returns a first response message indicating successful login to the terminal device.

步骤1303,终端设备向EPP发送获取电子处方的第一请求消息,请求查看患者在指定医院的电子处方,该第一请求消息中携带医院标识HIS_ID(也可称为第一标识)。In step 1303, the terminal device sends a first request message for obtaining an electronic prescription to the EPP, requesting to view the electronic prescription of the patient in the designated hospital. The first request message carries the hospital identifier HIS_ID (also referred to as the first identifier).

步骤1304,EPP根据第一请求消息向终端设备返回第一提示消息,提示用户输入第一验证信息。Step 1304: The EPP returns a first prompt message to the terminal device according to the first request message, prompting the user to enter first verification information.

步骤1305,终端设备根据第一提示信息确定用户在终端设备输入的第一原始验证信息以及确定信息提供服务器的第一加密密钥,根据第一加密密钥对第一原始验证信息进行加密,得到用于身份验证的第一验证信息。In step 1305, the terminal device determines the first original verification information input by the user in the terminal device and the first encryption key of the information providing server according to the first prompt information, encrypts the first original verification information according to the first encryption key, and obtains the first verification information for identity authentication.

步骤1306,向EPP发送第一验证信息。Step 1306: Send first verification information to EPP.

步骤1307,EPP通过患者的登录名查找到患者在指定医院的用户标识(PatientID),将该用户标识、第二手机号码、第一验证信息,EPP的第二加密密钥发送至HIS。Step 1307, EPP finds the patient's user ID (PatientID) in the designated hospital through the patient's login name, and sends the user ID, the second mobile phone number, the first verification information, and the EPP's second encryption key to the HIS.

步骤1308,HIS通过其第一解密密钥对第二手机号码进行解密,得到第一手机号码,通过第一手机号查找患者在HIS的用户标识。Step 1308: The HIS decrypts the second mobile phone number using its first decryption key to obtain the first mobile phone number, and searches for the patient's user ID in the HIS using the first mobile phone number.

步骤1309,HIS通过HIS的第一解密密钥对第一验证信息进行解密,通过EPP的第二加密密钥对解密后的第一验证信息进行加密,得到第一加密字符串。Step 1309 : The HIS decrypts the first verification information using the first decryption key of the HIS, and encrypts the decrypted first verification information using the second encryption key of the EPP to obtain a first encrypted string.

步骤1310,HIS确定患者在HIS注册时生成的第二加密字符串,第二加密字符串由第一验证信息通过EPP的第二加密密钥加密生成,比较第一加密字符串和第二加密字符串是否相同,如果相同,则第一验证信息的验证通过。In step 1310, the HIS determines the second encrypted string generated when the patient registers with the HIS. The second encrypted string is generated by encrypting the first verification information using the second encryption key of the EPP. The first encrypted string and the second encrypted string are compared to see if they are the same. If they are the same, the verification of the first verification information is successful.

步骤1311,HIS确定电子处方,通过第一加密密钥对电子处方中的隐私信息进行加密,将加密后的电子处方发送至EPP。In step 1311, the HIS determines the electronic prescription, encrypts the private information in the electronic prescription using a first encryption key, and sends the encrypted electronic prescription to the EPP.

步骤1312,EPP向终端设备返回电子处方。In step 1312, the EPP returns the electronic prescription to the terminal device.

本实施例中,由于患者需要查看的电子处方是患者的诊治记录、药方、服药说明等,因此通过HIS的第一加密密钥对电子处方中的隐私信息进行去隐私保护并不会影响患者的用户体验。由于HIS仅对电子处方中的隐私信息通过第一加密密钥加密,而对非隐私信息不用加密,因此可以降低HIS侧的计算复杂度。In this embodiment, since the electronic prescriptions that patients need to view include their medical records, prescriptions, and medication instructions, de-encrypting the private information in the electronic prescriptions using the HIS's first encryption key does not affect the patient's user experience. Because the HIS only encrypts the private information in the electronic prescriptions using the first encryption key, while leaving non-private information unencrypted, the computational complexity on the HIS side is reduced.

请参见图14,为根据一示例性实施例示出的获取电子文件的方法的场景图之二,本实施例以电子文件为电子处方、平台服务器为EPP以及信息提供服务器为HIS为例,描述用户如何通过第二手机号码登录到EPP的;如图14所示,包括如下步骤:Please refer to FIG. 14 , which is a second scenario diagram of a method for obtaining an electronic file according to an exemplary embodiment. This embodiment takes an electronic prescription as the electronic file, an EPP as the platform server, and an HIS as the information providing server as an example to describe how a user logs in to the EPP using a second mobile phone number. As shown in FIG. 14 , the method includes the following steps:

步骤1401,患者通过终端设备向EPP发起登录请求时,终端设备将用户的真实的第一手机号码通过HIS的第一加密密钥进行加密,得到第二手机号码,通过第二手机号码进行登录。Step 1401: When a patient initiates a login request to the EPP through a terminal device, the terminal device encrypts the user's real first mobile phone number using the first encryption key of the HIS to obtain a second mobile phone number, and logs in through the second mobile phone number.

步骤1402,EPP向HIS基于第二手机号码,向HIS请求向终端设备发送第一验证码。Step 1402: The EPP requests the HIS to send a first verification code to the terminal device based on the second mobile phone number.

步骤1403,HIS基于第二手机号码通过其对应的第一解密密钥对第二手机号码解密,得到第一手机号,通过第一手机号码向终端设备发送第一验证码。In step 1403, the HIS decrypts the second mobile phone number based on the second mobile phone number using the first decryption key corresponding to the second mobile phone number to obtain the first mobile phone number, and sends the first verification code to the terminal device via the first mobile phone number.

步骤1404,HIS向EPP返回第二验证码。Step 1404: The HIS returns a second verification code to the EPP.

步骤1405,EPP接收来自终端设备的第一验证码。Step 1405: The EPP receives a first verification code from the terminal device.

步骤1406,EPP比较第一验证码和第二验证码,在确定二者相同时,确定患者登录成功,向终端设备返回登录成功的第一响应消息。In step 1406, the EPP compares the first verification code and the second verification code. When determining that the two are the same, it is determined that the patient has successfully logged in, and a first response message indicating successful login is returned to the terminal device.

本实施例中,在用户需要登录到EPP时,通过第一加密密钥对用户的真实登录信息进行加密,并通过加密后的第一登录信息登录到平台服务器,在平台服务器上的数据遭到泄露时,窃取者从平台服务器窃取到的第一登录信息是加密后的数据,因此其无法通过从平台服务器上得到的登录信息登录到平台服务器,从而有效地避免了窃取者通过其在平台服务器上窃取的登录信息非法登录到平台服务器,确保用户登录信息的安全。HIS通过其第一解密秘钥对第二手机号码解密得到第一手机号码,并分别向终端设备和EPP发送第一验证码和第二验证码,从而协助EPP完成了二次身份验证。In this embodiment, when a user needs to log in to the EPP, the user's real login information is encrypted using the first encryption key, and the user logs in to the platform server using the encrypted first login information. When the data on the platform server is leaked, the first login information stolen from the platform server by the thief is encrypted data, so the thief cannot log in to the platform server using the login information obtained from the platform server, thereby effectively preventing the thief from illegally logging in to the platform server using the login information stolen from the platform server, ensuring the security of the user's login information. The HIS decrypts the second mobile phone number using its first decryption key to obtain the first mobile phone number, and sends the first verification code and the second verification code to the terminal device and EPP respectively, thereby assisting the EPP in completing the secondary identity authentication.

请参见图15,为根据一示例性实施例示出的获取电子文件的方法的场景图之三,本实施例以电子文件为电子处方、平台服务器为EPP以及信息提供服务器为HIS为例,描述如何对用户在EPP的第一登录信息中的登录名与用户在HIS的用户标识进行绑定的;如图15所示,包括如下步骤:Please refer to FIG15 , which is a third scenario diagram of a method for obtaining an electronic file according to an exemplary embodiment. This embodiment takes an electronic prescription as the electronic file, an EPP as the platform server, and a HIS as the information providing server as an example to describe how to bind the user's login name in the first login information of the EPP with the user's user ID in the HIS. As shown in FIG15 , the method includes the following steps:

步骤1501,终端应用使用第二手机号(即对原始的第一手机号通过HIS的第一解密密钥加密得到的)、登录密码登录EPP。Step 1501: The terminal application uses the second mobile phone number (that is, the original first mobile phone number encrypted using the first decryption key of the HIS) and the login password to log in to the EPP.

步骤1502,EPP向终端设备返回登录成功的第一响应消息。Step 1502: EPP returns a first response message indicating successful login to the terminal device.

步骤1503,终端设备向EPP发送关联请求,该关联请求中携带有医院标识。Step 1503: The terminal device sends an association request to the EPP, where the association request carries a hospital identifier.

步骤1504,EPP向终端设备返回第二提示信息,以提示用户通过终端设备输入第二原始验证信息。Step 1504: The EPP returns second prompt information to the terminal device to prompt the user to enter second original verification information through the terminal device.

步骤1505,用户根据第二提示信息输入第二原始验证信息(例如,身份证号),并通过HIS的第一加密密钥对第二原始验证信息进行加密,生成的第二验证信息。In step 1505, the user enters second original verification information (eg, ID number) according to the second prompt information, and encrypts the second original verification information using the first encryption key of the HIS to generate second verification information.

步骤1506,终端设备向EPP发送第二验证信息。Step 1506: The terminal device sends second verification information to the EPP.

步骤1507,EPP将第二手机号、第二验证信息、EPP的第二加密密钥以及EPP所采用的加密算法的名称发送给HIS,请求HIS对第二验证信息进行验证。In step 1507, the EPP sends the second mobile phone number, the second verification information, the second encryption key of the EPP, and the name of the encryption algorithm adopted by the EPP to the HIS, requesting the HIS to verify the second verification information.

步骤1508,HIS通过其第一解密密钥采用相应的加密算法对第二手机号码解密,得到第一手机号码,根据第一手机号码查找用户标识,通过信息提供服务器的第一解密密钥对第二验证信息进行解密,得到第二原始验证信息,通过第二加密密钥对第二原始验证信息进行加密,得到第三加密字符串。In step 1508, the HIS uses its first decryption key to adopt the corresponding encryption algorithm to decrypt the second mobile phone number to obtain the first mobile phone number, searches for the user ID based on the first mobile phone number, decrypts the second verification information using the first decryption key of the information providing server to obtain the second original verification information, and encrypts the second original verification information using the second encryption key to obtain a third encrypted string.

步骤1509,确定用户在信息提供服务器注册时生成的第四加密字符串,第四加密字符串由第二原始验证信息通过平台服务器的第二加密密钥加密生成。Step 1509: Determine a fourth encrypted string generated when the user registers on the information providing server. The fourth encrypted string is generated by encrypting the second original verification information using the second encryption key of the platform server.

步骤1510,HIS比较第三加密字符串和第四加密字符串是否相同,进行验证。Step 1510: The HIS compares the third encrypted string and the fourth encrypted string to see if they are the same, and performs verification.

步骤1511,如果相同,HIS验证通过,向EPP返回用户标识。Step 1511: If they are the same, the HIS verification is successful and returns the user ID to the EPP.

步骤1512,EPP存储第二验证信息,并存储第二手机号和用户标识的关联关系。Step 1512: EPP stores the second verification information and the association between the second mobile phone number and the user identifier.

在本实施例所述的流程中,HIS通过得到来自EPP的第二验证信息,通过HIS的第一解密密钥得到第一加密密钥加密后的第二原始验证信息,通过EPP的第二加密密钥对第二原始验证信息加密得到第三加密字符串,从而实现了身份认证的目的。在将第一登录信息与用户标识进行绑定的过程中,除了用于索引的第一手机号码和用于验证的第二验证信息之外,HIS侧的其它数据均为机密的,而EPP平台侧的用户的登录信息也是机密的,从而达到了隐私保护的目的。In the process described in this embodiment, the HIS obtains the second verification information from the EPP, uses the HIS's first decryption key to obtain the second original verification information encrypted with the first encryption key, and then encrypts the second original verification information with the EPP's second encryption key to obtain a third encrypted string, thereby achieving identity authentication. During the process of binding the first login information to the user ID, except for the first mobile phone number used for indexing and the second verification information used for verification, all other data on the HIS side is confidential. The user's login information on the EPP platform is also confidential, thus achieving the purpose of privacy protection.

请参见图16,为根据一示例性实施例示出的获取电子文件的方法的场景图之四,本实施例以电子文件为电子处方、平台服务器为EPP以及信息提供服务器为HIS为例,描述用户如何在EPP和HIS侧注册的;如图16所示,包括如下步骤:Please refer to FIG16 , which is a fourth scenario diagram of a method for obtaining an electronic file according to an exemplary embodiment. This embodiment takes an electronic prescription as the electronic file, an EPP as the platform server, and a HIS as the information providing server as an example to describe how a user registers on the EPP and HIS sides. As shown in FIG16 , the following steps are included:

步骤1601,患者通过终端设备向EPP请求EPP的第二加密密钥。Step 1601: The patient requests the second encryption key of the EPP from the EPP through the terminal device.

步骤1602,EPP向终端设备返回EPP的第二加密密钥,并向终端设备发送数字签名。In step 1602, the EPP returns the second encryption key of the EPP to the terminal device and sends a digital signature to the terminal device.

步骤1603,终端设备使用第一手机号码(即原始的手机号)在HIS注册,使用EPP的第二加密密钥,对需要注册的信息通过第二加密密钥进行加密。其中,需要在HIS注册的信息包括:姓名、病历卡号、身份证号、手机号码家庭住址、药物过敏记录、过往病史等。In step 1603, the terminal device registers with the HIS using the first mobile phone number (i.e., the original mobile phone number) and encrypts the information required for registration using the second encryption key of the EPP. The information required for registration with the HIS includes: name, medical record number, ID number, mobile phone number, home address, medication allergy record, past medical history, etc.

步骤1604,HIS保存第一手机号,生成患者标识(PatientID),并保存基于EPP的第二加密密钥加密后的验证信息(例如,身份证号等)。In step 1604, the HIS saves the first mobile phone number, generates a patient identifier (PatientID), and saves the verification information (eg, ID number, etc.) encrypted using the second encryption key based on EPP.

步骤1605,HIS向终端设备返回注册成功的第二响应消息,并向终端设备返回HIS的第一加密密钥,以及使用HIS的第一加密密钥对第一手机号码加密后生成的第二手机号码。In step 1605, the HIS returns a second response message indicating successful registration to the terminal device, and returns the first encryption key of the HIS and the second mobile phone number generated by encrypting the first mobile phone number using the first encryption key of the HIS to the terminal device.

步骤1606,终端设备使用第二手机号码向EPP注册。Step 1606: The terminal device registers with the EPP using the second mobile phone number.

步骤1607,EPP将第二手机号码发送到HIS,请求HIS向终端设备发送短信验证码。In step 1607, the EPP sends the second mobile phone number to the HIS, requesting the HIS to send a text message verification code to the terminal device.

步骤1608,HIS通过HIS的第一加密密钥对第二手机号号码进行解密,得到第一手机号码。In step 1608, the HIS decrypts the second mobile phone number using the first encryption key of the HIS to obtain the first mobile phone number.

步骤1609,HIS向EPP返回第三验证码。Step 1609: The HIS returns a third verification code to the EPP.

步骤1610,HIS基于第一手机号码向终端设备返回第四验证码。Step 1610: The HIS returns a fourth verification code to the terminal device based on the first mobile phone number.

步骤1611,终端设备向EPP上报第四验证码。Step 1611: The terminal device reports the fourth verification code to the EPP.

步骤1612,EPP比较终端设备上报的第四验证码和HIS返回的第三验证码,如果一致,则验证通过,并存储第二手机号。Step 1612: The EPP compares the fourth verification code reported by the terminal device with the third verification code returned by the HIS. If they are consistent, the verification is successful and the second mobile phone number is stored.

步骤1613,EPP向终端设备返回注册成功的第二响应消息。Step 1613: EPP returns a second response message indicating successful registration to the terminal device.

步骤1614,终端设备可以通过第二手机号码设置登录到EPP的登录密码。In step 1614, the terminal device may set a login password for logging into the EPP using the second mobile phone number.

步骤1615,EPP向终端设备平台返回设置成功的响应。Step 1615: EPP returns a successful setup response to the terminal device platform.

在本实施例的流程中,EPP在拿到通过HIS的第一加密密钥加密后的第二手机号码后,由于没有相应的解密密钥,因此并不能对第二手机号码进行解密获取到真实的第一手机号码,因此即使第二手机号码在平台服务器上被窃取,在窃取者未获取到HIS的第一解密密钥时窃取者会由于没有解密密钥不能对第二手机号码解密;同时,用户在HIS上注册的隐私数据通过EPP的第二加密密钥加密,因此HIS也不能对存储在EPP上的数据进行解密,由于窃取者同时攻破EPP和HIS的难度很高,因此本申请可以大大提高EPP和HIS的安全防护程度。此外,HIS可以根据自己的第一解密密钥解密得到第一手机号号,从而可以协助EPP发送短信验证码,完成二次验证。In the process of this embodiment, after the EPP obtains the second mobile phone number encrypted by the first encryption key of the HIS, it cannot decrypt the second mobile phone number to obtain the real first mobile phone number because it does not have the corresponding decryption key. Therefore, even if the second mobile phone number is stolen on the platform server, the thief will not be able to decrypt the second mobile phone number because he does not have the decryption key when he does not obtain the first decryption key of the HIS. At the same time, the private data registered by the user on the HIS is encrypted by the second encryption key of the EPP, so the HIS cannot decrypt the data stored on the EPP. Since it is very difficult for the thief to break through the EPP and HIS at the same time, this application can greatly improve the security protection level of the EPP and HIS. In addition, the HIS can decrypt the first mobile phone number according to its own first decryption key, so that it can assist the EPP in sending the SMS verification code to complete the secondary verification.

对应于上述的获取电子文件的方法,本申请还提出了图17所示的根据本申请的一示例性实施例的终端设备的示意结构图。请参考图17,在硬件层面,该服务器包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成获取电子文件的装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Corresponding to the above-mentioned method for obtaining electronic files, the present application also proposes a schematic structural diagram of a terminal device according to an exemplary embodiment of the present application as shown in FIG17. Please refer to FIG17. At the hardware level, the server includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for obtaining electronic files at the logical level. Of course, in addition to software implementation, the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

对应于上述的获取电子文件的方法,本申请还提出了图18所示的根据本申请的一示例性实施例的平台服务器的示意结构图。请参考图18,在硬件层面,该服务器包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成获取电子文件的装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Corresponding to the above-mentioned method for obtaining electronic files, the present application also proposes a schematic structural diagram of a platform server according to an exemplary embodiment of the present application, as shown in FIG18. Please refer to FIG18. At the hardware level, the server includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for obtaining electronic files at the logical level. Of course, in addition to software implementation methods, the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

对应于上述的获取电子文件的方法,本申请还提出了图19所示的根据本申请的一示例性实施例的信息提供服务器的示意结构图。请参考图19,在硬件层面,该服务器包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成获取电子文件的装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Corresponding to the above-mentioned method for obtaining electronic files, the present application also proposes a schematic structural diagram of an information providing server according to an exemplary embodiment of the present application, as shown in FIG19. Please refer to FIG19. At the hardware level, the server includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for obtaining electronic files at the logical level. Of course, in addition to software implementation methods, the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

请参考图20,为根据一示例性实施例一示出的获取电子文件的装置的结构示意图;在软件实施方式中,该获取电子文件的装置可以包括:第一发送模块2001、第一接收模块2202、第一确定模块2203、第二接收模块2204;其中:Please refer to FIG20 , which is a schematic diagram of the structure of an apparatus for acquiring an electronic file according to an exemplary embodiment 1. In a software implementation, the apparatus for acquiring an electronic file may include: a first sending module 2001, a first receiving module 2202, a first determining module 2203, and a second receiving module 2204; wherein:

第一发送模块2001,用于向平台服务器发送用于获取电子文件的第一请求消息,第一请求消息中携带有提供电子文件的信息提供服务器的第一标识;A first sending module 2001 is configured to send a first request message for obtaining an electronic file to a platform server, wherein the first request message carries a first identifier of a server providing information of the electronic file;

第一接收模块2002,用于接收来自平台服务器根据第一发送模块2001发送的第一请求消息返回的第一提示信息;The first receiving module 2002 is configured to receive first prompt information returned from the platform server according to the first request message sent by the first sending module 2001;

第一确定模块2003,用于根据第一接收模块2002接收到的第一提示信息确定用于身份验证的第一验证信息,向平台服务器发送第一验证信息;A first determining module 2003 is configured to determine first verification information for identity authentication according to the first prompt information received by the first receiving module 2002, and send the first verification information to the platform server;

第二接收模块2004,用于在平台服务器根据第一标识确定信息提供服务器,以及根据终端设备的用户在平台服务器的第一登录信息确定用户在信息提供服务器注册的用户标识,并将第一确定模块2003确定的第一验证信息、用户标识发送至信息提供服务器后,接收平台服务器转发的来自信息提供服务器的电子文件,电子文件中的隐私信息经过信息提供服务器的第一加密密钥加密。The second receiving module 2004 is used to determine the information providing server based on the first identifier on the platform server, and determine the user identifier registered by the user on the information providing server based on the first login information of the user of the terminal device on the platform server, and after sending the first verification information and user identifier determined by the first determination module 2003 to the information providing server, receive the electronic file from the information providing server forwarded by the platform server, and the private information in the electronic file is encrypted with the first encryption key of the information providing server.

请参见图21,为根据一示例性实施例二示出的获取电子文件的装置的结构示意图,在上述图20所示实施例的基础上,第一确定模块2003可包括:Please refer to FIG. 21 , which is a schematic diagram of the structure of an apparatus for acquiring an electronic file according to a second exemplary embodiment. Based on the embodiment shown in FIG. 20 , the first determining module 2003 may include:

第一确定单元20031,用于根据第一提示信息确定用户在终端设备输入的第一原始验证信息以及确定信息提供服务器的第一加密密钥;The first determining unit 20031 is configured to determine the first original verification information input by the user on the terminal device and the first encryption key of the information providing server according to the first prompt information;

第一加密单元20032,用于根据第一确定单元20031确定的第一加密密钥对第一原始验证信息进行加密,得到用于身份验证的第一验证信息。The first encryption unit 20032 is used to encrypt the first original verification information according to the first encryption key determined by the first determination unit 20031 to obtain first verification information for identity authentication.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第二确定模块2005,用于在用户未登录到平台服务器时,确定用户的第一登录信息,通过第一登录信息登录平台服务器;The second determining module 2005 is used to determine the first login information of the user when the user has not logged in to the platform server, and log in to the platform server using the first login information;

第三接收模块2006,用于在第二确定模块2005确定用户登录成功后,接收平台服务器返回的登录成功的第一响应消息。The third receiving module 2006 is configured to receive a first response message indicating a successful login returned by the platform server after the second determining module 2005 determines that the user login is successful.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第四接收模块2007,用于通过第一手机号码接收来自信息提供服务器的第一验证码,第一验证码为平台服务器根据第二手机号码指示信息提供服务器发送第一手机号码的,第二手机号码由第一加密密钥对第一手机号码加密得到;a fourth receiving module 2007, configured to receive a first verification code from the information providing server via the first mobile phone number, the first verification code being sent by the platform server to the information providing server according to the second mobile phone number, the second mobile phone number being encrypted by the first encryption key;

第二发送模块2008,用于将第四接收模块2007接收到的第一验证码通过第二手机号码发送给平台服务器;The second sending module 2008 is used to send the first verification code received by the fourth receiving module 2007 to the platform server via the second mobile phone number;

第三确定模块2009,用于在平台服务器对第二发送模块2008发送的第一验证码与来自信息提供服务器的第二验证码进行验证后,确定用户登录成功,第三接收模块2006执行接收平台服务器返回的登录成功的第一响应消息的步骤。The third determination module 2009 is used to determine that the user login is successful after the platform server verifies the first verification code sent by the second sending module 2008 and the second verification code from the information providing server. The third receiving module 2006 executes the step of receiving the first response message of successful login returned by the platform server.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第三发送模块2010,用于在用户在平台服务器的第一登录信息与用户标识未绑定时,向平台服务器发送关联请求,关联请求中携带有信息提供服务器的第一标识;The third sending module 210 is configured to send an association request to the platform server when the first login information of the user on the platform server is not bound to the user identifier, wherein the association request carries the first identifier of the information providing server;

第五接收模块2011,用于接收来自平台服务器根据第三发送模块2010发送的关联请求返回的第二提示信息;The fifth receiving module 2011 is configured to receive the second prompt information returned from the platform server according to the association request sent by the third sending module 2010;

第四确定模块2012,用于根据第五接收模块2011接收到的第二提示信息确定用户在终端设备输入的第二原始验证信息;The fourth determining module 2012 is configured to determine the second original verification information input by the user on the terminal device according to the second prompt information received by the fifth receiving module 2011;

第一加密模块2013,用于根据第一加密密钥对第四确定模块2012确定的第二原始验证信息进行加密,得到用于身份验证的第二验证信息;The first encryption module 2013 is configured to encrypt the second original verification information determined by the fourth determination module 2012 according to the first encryption key to obtain second verification information for identity authentication;

第四发送模块2014,用于向平台服务器发送第一加密模块2013加密的第二验证信息,平台服务器将绑定请求和第二验证信息转发至信息提供服务器,以供信息提供服务器根据与第一加密密钥对应的第一解密密钥对经过第二验证信息进行解密,根据解密后的第二验证信息确定用户在信息提供服务器的用户标识,将用户标识返回平台服务器后,以供平台服务器建立第一登录信息和用户标识之间的绑定关系。The fourth sending module 2014 is used to send the second verification information encrypted by the first encryption module 2013 to the platform server. The platform server forwards the binding request and the second verification information to the information providing server, so that the information providing server can decrypt the second verification information according to the first decryption key corresponding to the first encryption key, determine the user identification of the user on the information providing server according to the decrypted second verification information, and return the user identification to the platform server so that the platform server can establish a binding relationship between the first login information and the user identification.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第二加密模块2015,用于在用户在平台服务器和信息提供服务器上未注册时,通过平台服务器的第二加密密钥对终端设备的用户需要在信息提供服务器注册的第一注册信息进行加密;The second encryption module 2015 is used to encrypt the first registration information that the user of the terminal device needs to register on the information providing server using the second encryption key of the platform server when the user is not registered on the platform server and the information providing server;

第五发送模块2016,用于在用户通过第一手机号码登录到信息提供服务器后,将通过第一加密密钥加密后的第一注册信息发送至信息提供服务器;a fifth sending module 2016, configured to send the first registration information encrypted by the first encryption key to the information providing server after the user logs in to the information providing server using the first mobile phone number;

第六接收模块2017,用于在信息提供服务器根据第一手机号码生成用户标识后,接收来自信息提供服务器的第一加密密钥、注册成功的第一响应消息以及第二手机号码,第二手机号码由第一加密密钥对第一手机号码加密生成;a sixth receiving module 2017, configured to receive, after the information providing server generates a user identifier based on the first mobile phone number, a first encryption key, a first response message indicating successful registration, and a second mobile phone number from the information providing server, where the second mobile phone number is generated by encrypting the first mobile phone number with the first encryption key;

第一注册模块2018,用于通过第二手机号码向平台服务器注册;A first registration module 2018, configured to register with the platform server using the second mobile phone number;

第七接收模块2019,用于在平台服务器对第二手机号码注册后,接收平台服务器返回的注册成功的第二响应消息。The seventh receiving module 2019 is used to receive a second response message indicating successful registration returned by the platform server after the platform server registers the second mobile phone number.

在一实施例中,装置还包括:In one embodiment, the apparatus further comprises:

第六发送模块2020,用于向平台服务器发送用于获取平台服务器的第二加密密钥的第二请求消息;A sixth sending module 220, configured to send a second request message for obtaining a second encryption key of the platform server to the platform server;

第八接收模块2021,用于接收平台服务器根据第六发送模块39发送的第二请求消息返回的第二加密密钥。The eighth receiving module 2021 is configured to receive the second encryption key returned by the platform server according to the second request message sent by the sixth sending module 39 .

在一实施例中,第一注册模块2018可包括:In one embodiment, the first registration module 2018 may include:

第一发送单元20181,用于向平台服务器发送第二手机号码;The first sending unit 20181 is used to send the second mobile phone number to the platform server;

第一接收单元20182,用于接收来自信息提供服务器返回的第三验证码,第三验证码为平台服务器根据第一发送单元发送的第二手机号码请求信息提供服务器发送给终端设备的;The first receiving unit 20182 is configured to receive a third verification code returned from the information providing server, where the third verification code is sent by the platform server to the terminal device upon request of the information providing server based on the second mobile phone number sent by the first sending unit;

第二发送单元20183,用于向平台服务器发送第一接收单元20182接收到的第三验证码;The second sending unit 20183 is configured to send the third verification code received by the first receiving unit 20182 to the platform server;

在平台服务器根据第三验证码与信息提供服务器返回给平台服务器的第四验证码进行比较以确定验证通过后,第七接收模块2019执行接收平台服务器返回的注册成功的第二响应消息的步骤。After the platform server compares the third verification code with the fourth verification code returned by the information providing server to the platform server to determine that the verification is successful, the seventh receiving module 2019 executes the step of receiving a second response message indicating successful registration returned by the platform server.

图22是根据又一示例性实施例一示出的获取电子文件的装置的结构示意图;在软件实施方式中,该获取电子文件的装置可以包括:第九接收模块2201、第七发送模块2202、第八发送模块2203、第一转发模块2204、第一转发模块2205;其中:FIG22 is a schematic structural diagram of an apparatus for acquiring an electronic file according to yet another exemplary embodiment. In a software implementation, the apparatus for acquiring an electronic file may include: a ninth receiving module 2201, a seventh sending module 2202, an eighth sending module 2203, a first forwarding module 2204, and a second forwarding module 2205.

第九接收模块2201,用于接收来自终端设备的用于获取电子文件的第一请求消息,第一请求消息中携带有提供电子文件的信息提供服务器的第一标识;A ninth receiving module 2201 is configured to receive a first request message for obtaining an electronic file from a terminal device, wherein the first request message carries a first identifier of a server providing information of the electronic file;

第七发送模块2202,用于根据第九接收模块2201接收到的第一请求消息向终端设备返回第一提示信息;The seventh sending module 2202 is configured to return first prompt information to the terminal device according to the first request message received by the ninth receiving module 2201;

第八发送模块2203,用于在终端设备根据第七发送模块2202发送的第一提示信息确定用于身份验证的第一验证信息后,接收来自终端设备的第一验证信息;An eighth sending module 2203 is configured to receive the first verification information from the terminal device after the terminal device determines the first verification information for identity authentication according to the first prompt information sent by the seventh sending module 2202;

第九发送模块2204,用于根据第九接收模块2201接收到的第一标识确定信息提供服务器,将第八发送模块2203接收到的第一验证信息、终端设备的用户在信息提供服务器注册的用户标识发送至信息提供服务器;A ninth sending module 2204 is configured to determine the information providing server according to the first identifier received by the ninth receiving module 2201, and to send the first verification information received by the eighth sending module 2203 and the user identifier of the user of the terminal device registered in the information providing server to the information providing server;

第一转发模块2205,用于在信息提供服务器对第九发送模块2204发送的第一验证信息验证通过并根据用户标识确定电子文件后,接收来自信息提供服务器的电子文件,将电子文件转发至终端设备,电子文件中的隐私信息经过信息提供服务器的第一加密密钥加密。The first forwarding module 2205 is used to receive the electronic file from the information providing server after the information providing server verifies the first verification information sent by the ninth sending module 2204 and determines the electronic file based on the user identification, and forward the electronic file to the terminal device. The private information in the electronic file is encrypted with the first encryption key of the information providing server.

图23是根据又一示例性实施例二示出的获取电子文件的装置的结构示意图;在上述图22所示实施例的基础上,第一验证信息为用户在终端设备输入的原始验证信息通过第一加密密钥加密生成的。Figure 23 is a structural diagram of an apparatus for acquiring an electronic file according to yet another exemplary embodiment 2; based on the embodiment shown in Figure 22 above, the first verification information is generated by encrypting the original verification information input by the user on the terminal device using a first encryption key.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第五确定模块2206,用于在用户未登录到平台服务器时,确定用户在平台服务器上的第一登录信息;A fifth determining module 2206 is configured to determine the first login information of the user on the platform server when the user has not logged in to the platform server;

第十发送模块2207,用于在第五确定模块2206确定用户登录成功后,向终端设备返回登录成功的第一响应消息。The tenth sending module 2207 is configured to return a first response message indicating successful login to the terminal device after the fifth determining module 2206 determines that the user login is successful.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第十一发送模块2208,用于通过终端设备的用户在平台服务器注册的第二手机号码指示信息提供服务器向终端设备发送第一验证码,第二手机号码由第一加密密钥对第一手机号码加密得到,第一手机号码为用户注册在信息提供服务器的手机号码;an eleventh sending module 2208, configured to instruct the information providing server to send a first verification code to the terminal device using a second mobile phone number registered by the user of the terminal device on the platform server, where the second mobile phone number is obtained by encrypting the first mobile phone number using the first encryption key, and the first mobile phone number is the mobile phone number registered by the user on the information providing server;

第十接收模块2209,用于在信息提供服务器通过信息提供服务器的第一解密密钥对第二手机号码解密得到第一手机号码,通过第一手机号码向终端设备指示发送第一验证码后,接收来自终端设备的第一验证码以及接收来自信息提供服务器的第二验证码;A tenth receiving module 2209 is configured to decrypt the second mobile phone number using the first decryption key of the information providing server to obtain the first mobile phone number, instruct the terminal device to send the first verification code using the first mobile phone number, and then receive the first verification code from the terminal device and the second verification code from the information providing server.

第一验证模块2210,用于对第一验证码和第二验证码进行验证,在验证通过后确定用户登录成功,第十发送模块2209执行向终端设备返回登录成功的第一响应消息的步骤。The first verification module 2210 is used to verify the first verification code and the second verification code, and determine that the user login is successful after the verification is passed. The tenth sending module 2209 executes the step of returning a first response message of successful login to the terminal device.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第十一接收模块2211,用于在用户在平台服务器的第一登录信息和用户在信息提供服务器注册的用户标识未绑定时,接收来自终端设备的关联请求,关联请求中携带有第一标识;An eleventh receiving module 2211 is configured to receive an association request from a terminal device when the first login information of the user on the platform server and the user identifier registered by the user on the information providing server are not bound, the association request carrying the first identifier;

第十二发送模块2212,用于根据关联请求向终端设备返回第二提示信息;A twelfth sending module 2212 is configured to return second prompt information to the terminal device according to the association request;

第十二接收模块2213,用于在终端设备根据第二提示信息确定用于身份验证的第二验证信息,接收来自终端设备根据第二提示信息返回的第二验证信息,第二验证信息经过第一加密密钥加密;a twelfth receiving module 2213, configured to determine, at the terminal device, second verification information for identity authentication according to the second prompt information, and receive the second verification information returned from the terminal device according to the second prompt information, where the second verification information is encrypted using the first encryption key;

第二转发模块2214,用于将绑定请求和经过第一加密密钥的第二验证信息转发至信息提供服务器,以供信息提供服务器对经过第一加密密钥加密的第二验证信息进行解密,根据解密后的第二验证信息确定用户在信息提供服务器注册的用户标识;The second forwarding module 2214 is configured to forward the binding request and the second verification information encrypted with the first encryption key to the information providing server, so that the information providing server can decrypt the second verification information encrypted with the first encryption key and determine the user ID registered with the information providing server based on the decrypted second verification information;

第十三接收模块2215,用于接收来自信息提供服务器返回的用户标识,建立第一登录信息和用户标识之间的绑定关系。The thirteenth receiving module 2215 is configured to receive the user identification returned from the information providing server and establish a binding relationship between the first login information and the user identification.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第二注册模块2216,用于在用户在平台服务器上未注册时,通过来自终端设备的第二注册信息进行注册;The second registration module 2216 is used to register the user using the second registration information from the terminal device when the user is not registered on the platform server;

第一获取模块2217,用于根据第二注册模块2216注册的第二注册信息向信息提供服务器获取第三验证码,指示信息提供服务器向第二手机号码对应的第一手机号码发送第四验证码;The first obtaining module 2217 is configured to obtain a third verification code from the information providing server according to the second registration information registered by the second registration module 2216, and instruct the information providing server to send a fourth verification code to the first mobile phone number corresponding to the second mobile phone number;

第十四接收模块2218,用于接收来自终端设备的第四验证码;A fourteenth receiving module 2218 is configured to receive a fourth verification code from a terminal device;

第二验证模块2219,用于对第三验证码和第四验证码进行验证;The second verification module 2219 is used to verify the third verification code and the fourth verification code;

第十三发送模块2220,用于在第二验证模块2219对第三验证码和第四验证验证通过后,向终端设备返回注册成功的第二响应消息。The thirteenth sending module 2220 is configured to return a second response message indicating successful registration to the terminal device after the second verification module 2219 verifies the third verification code and the fourth verification code successfully.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第十五接收模块2221,用于接收来自终端设备的用于获取平台服务器的第二加密密钥的第二请求消息;A fifteenth receiving module 2221 is configured to receive a second request message from a terminal device for obtaining a second encryption key from the platform server;

第十四发送模块2222,用于根据第十五接收模块2221接收到的第二请求消息向终端设备返回第二加密密钥。The fourteenth sending module 2222 is configured to return the second encryption key to the terminal device according to the second request message received by the fifteenth receiving module 2221 .

图24是根据另一示例性实施例一示出的获取电子文件的装置的结构示意图;在软件实施方式中,该获取电子文件的装置可以包括:第十六接收模块2401、第三验证模块2402、第三加密模块2403、第十五发送模块2404;其中:FIG24 is a schematic structural diagram of an apparatus for acquiring an electronic file according to another exemplary embodiment 1. In a software implementation, the apparatus for acquiring an electronic file may include: a sixteenth receiving module 2401, a third verification module 2402, a third encryption module 2403, and a fifteenth sending module 2404.

第十六接收模块2401,用于接收来自平台服务器的第一验证信息、终端设备的用户在信息提供服务器注册的用户标识;A sixteenth receiving module 2401 is configured to receive first verification information from the platform server and a user identifier of a user of a terminal device registered on an information providing server;

第三验证模块2402,用于对第十六接收模块2401接收到的第一验证信息进行验证,在验证通过后根据用户标识确定电子文件;The third verification module 2402 is configured to verify the first verification information received by the sixteenth receiving module 2401 and determine the electronic file according to the user identifier after the verification is successful;

第三加密模块2403,用于将第三验证模块2402确定的电子文件中的隐私信息通过信息提供服务器的第一加密密钥加密;A third encryption module 2403 is configured to encrypt the private information in the electronic file determined by the third verification module 2402 using a first encryption key of the information providing server;

第十五发送模块2404,用于将第三加密模块2403加密后的电子文件发送至平台服务器,以供平台服务器将电子文件转发至终端设备。The fifteenth sending module 2404 is used to send the electronic file encrypted by the third encryption module 2403 to the platform server, so that the platform server can forward the electronic file to the terminal device.

图25是根据另一示例性实施例二示出的获取电子文件的装置的结构示意图,在上述图24所示实施例的基础上,第三验证模块2402包括:FIG25 is a schematic diagram of the structure of an apparatus for obtaining an electronic file according to another exemplary embodiment 2. Based on the embodiment shown in FIG24 , the third verification module 2402 includes:

第一解密单元24021,用于通过信息提供服务器的第一解密密钥对第一验证信息进行解密;A first decryption unit 24021 is configured to decrypt the first verification information using a first decryption key of the information providing server;

第一加密单元24022,用于通过平台服务器的第二加密密钥对第一解密单元解密后的第一验证信息进行加密,得到第一加密字符串;The first encryption unit 24022 is configured to encrypt the first verification information decrypted by the first decryption unit using the second encryption key of the platform server to obtain a first encrypted string;

第一确定单元24023,用于确定用户在信息提供服务器注册时生成的第二加密字符串,第二加密字符串由第一验证信息通过平台服务器的第二加密密钥加密生成;A first determining unit 24023 is configured to determine a second encrypted string generated when the user registers on the information providing server, where the second encrypted string is generated by encrypting the first verification information using a second encryption key of the platform server;

第二确定单元24024,用于确定第一加密单元24022得到的第一加密字符串和第一确定单元24023确定的第二加密字符串是否相同,如果相同,则第一验证信息的验证通过。The second determining unit 24024 is configured to determine whether the first encrypted string obtained by the first encrypting unit 24022 and the second encrypted string determined by the first determining unit 24023 are the same. If they are the same, the verification of the first verification information is successful.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第十七接收模块2405,用于在用户未登录到平台服务器时,接收来自平台服务器用于指示信息提供服务器向用户在平台服务器注册的第二手机号码发送第一验证码的指示消息,其中,第二手机号码由第一加密密钥对第一手机号码加密得到,第一手机号码为用户注册在信息提供服务器的手机号码;A seventeenth receiving module 2405 is configured to, when the user is not logged into the platform server, receive an instruction message from the platform server for instructing the information provision server to send a first verification code to a second mobile phone number registered by the user with the platform server, wherein the second mobile phone number is obtained by encrypting the first mobile phone number using the first encryption key, and the first mobile phone number is the mobile phone number registered by the user with the information provision server;

第一解密模块2406,用于根据第十七接收模块2405接收到的指示消息通过第一解密密钥对第二手机号码进行解密,得到第一手机号码;A first decryption module 2406 is configured to decrypt the second mobile phone number using the first decryption key according to the instruction message received by the seventeenth receiving module 2405 to obtain the first mobile phone number;

第十六发送模块2407,用于通过第一手机号码向终端设备发送第一验证码以及向平台服务器返回第二验证码,以供平台服务器根据第一验证码和第二验证码对用户进行登录验证。The sixteenth sending module 2407 is configured to send the first verification code to the terminal device via the first mobile phone number and return the second verification code to the platform server, so that the platform server can perform login verification on the user according to the first verification code and the second verification code.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第十八接收模块2408,用于在用户在平台服务器的第一登录信息与用户标识未绑定时,接收来自平台服务器的第二验证信息和平台服务器的第二加密密钥,第二验证信息经过第一加密密钥加密;An eighteenth receiving module 2408 is configured to receive second verification information and a second encryption key of the platform server from the platform server when the first login information of the user on the platform server is not bound to the user identifier, the second verification information being encrypted using the first encryption key;

第二解密模块2409,用于通过信息提供服务器的第一解密密钥对第二验证信息进行解密,通过第二加密密钥对解密后的第二原始验证信息进行加密,得到第三加密字符串;The second decryption module 2409 is configured to decrypt the second verification information using the first decryption key of the information providing server, and encrypt the decrypted second original verification information using the second encryption key to obtain a third encrypted string;

第六确定模块2410,用于确定用户在信息提供服务器注册时生成的第四加密字符串,第四加密字符串由第二原始验证信息通过平台服务器的第二加密密钥加密生成;A sixth determining module 2410 is configured to determine a fourth encrypted string generated when the user registers on the information providing server, where the fourth encrypted string is generated by encrypting the second original verification information using the second encryption key of the platform server;

第七确定模块2411,用于确定第三加密字符串和第四加密字符串是否相同;a seventh determining module 2411, configured to determine whether the third encrypted string and the fourth encrypted string are identical;

第十七发送模块2412,用于如果第七确定模块2411确定相同,向平台服务器返回终端设备的用户在信息提供服务器上注册的用户标识,以供平台服务器建立第一登录信息和用户标识的绑定关系。The seventeenth sending module 2412 is used to return the user identification of the user of the terminal device registered on the information providing server to the platform server if the seventh determining module 2411 determines that they are the same, so that the platform server can establish a binding relationship between the first login information and the user identification.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第三注册模块2413,用于在用户在信息提供服务器上未注册时,通过来自终端设备的第一注册信息进行注册;The third registration module 2413 is used to register the user using the first registration information from the terminal device when the user is not registered on the information providing server;

第四加密模块2414,用于在用户通过第一手机号码登录到信息提供服务器后,将第一手机号码通过第一加密密钥进行加密,得到第二手机号码;The fourth encryption module 2414 is configured to encrypt the first mobile phone number using the first encryption key to obtain a second mobile phone number after the user logs in to the information providing server using the first mobile phone number;

第十八发送模块2415,用于将第二手机号码发送至终端设备,以供终端设备通过第二手机号码在平台服务器上注册;An eighteenth sending module 2415 is configured to send the second mobile phone number to the terminal device, so that the terminal device can register on the platform server using the second mobile phone number;

标识生成模块2416,用于根据第一手机号码生成用户标识。The identification generating module 2416 is configured to generate a user identification according to the first mobile phone number.

在一实施例中,装置还可包括:In one embodiment, the apparatus may further include:

第十九接收模块2417,用于接收来自平台服务器的第二手机号码;A nineteenth receiving module 2417 is configured to receive a second mobile phone number from the platform server;

第三解密模块2418,用于通过第一解密密钥对第二手机号码进行解密,得到第一手机号码;A third decryption module 2418 is configured to decrypt the second mobile phone number using the first decryption key to obtain the first mobile phone number;

第十九发送模块2419,用于通过第一手机号码向终端设备返回第三验证码,第三验证码为平台服务器根据第二注册信息请求信息提供服务器发送给终端设备的;A nineteenth sending module 2419 is configured to return a third verification code to the terminal device via the first mobile phone number, where the third verification code is sent by the platform server to the terminal device according to the second registration information request information providing server;

第二十发送模块2420,用于向平台服务器返回第四验证码,以供平台服务器对第三验证码和第四验证码进行比较以确定验证是否通过。The twentieth sending module 2420 is configured to return the fourth verification code to the platform server, so that the platform server can compare the third verification code with the fourth verification code to determine whether the verification is successful.

由上述实施例可见,用户需要在信息提供服务器注册时,使用平台服务器的第二加密密钥对用户的相关信息进行加密;而在平台服务器注册时,使用信息提供服务器的第一加密密钥对用户的相关信息(包括电子文件中的隐私信息)进行加密;在进行关联请求、查看电子文件时,平台服务器均需要将加密后的信息发给信息提供服务器进行解密之后再进行验证,或者是信息提供服务器对信息进行解密后发回平台服务器进行验证,在信息提供服务器上的隐私数据遭到泄露时,可以使窃取者无法得到原始数据;同样,即使平台服务器上的数据遭到泄露,窃取者也无法得到原始数据。此外,平台服务器还可以在信息提供服务器的协助下,完成身份认证,既有效地保护了用户的隐私信息,又实现了身份认证。As can be seen from the above embodiment, when a user registers with the information provider server, the second encryption key of the platform server is used to encrypt the user's relevant information; when registering with the platform server, the first encryption key of the information provider server is used to encrypt the user's relevant information (including private information in electronic files); when making an association request or viewing an electronic file, the platform server needs to send the encrypted information to the information provider server for decryption and then verification, or the information provider server decrypts the information and sends it back to the platform server for verification. When the private data on the information provider server is leaked, the thief cannot obtain the original data; similarly, even if the data on the platform server is leaked, the thief cannot obtain the original data. In addition, the platform server can also complete identity authentication with the assistance of the information provider server, which effectively protects the user's private information and realizes identity authentication.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims (42)

1.一种获取电子文件的方法,应用在终端设备上,其特征在于,所述方法包括:1. A method for acquiring electronic documents, applied on a terminal device, characterized in that the method comprises: 向平台服务器发送用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;Send a first request message to the platform server to obtain electronic files, the first request message carrying a first identifier of the information providing server for providing the electronic files; 接收来自所述平台服务器根据所述第一请求消息返回的第一提示信息;Receive a first prompt message returned by the platform server based on the first request message; 根据所述第一提示信息确定用于身份验证的第一验证信息,向所述平台服务器发送所述第一验证信息;Based on the first prompt information, determine the first verification information for identity verification, and send the first verification information to the platform server; 在所述平台服务器根据所述第一标识确定所述信息提供服务器,以及根据所述终端设备的用户在所述平台服务器的第一登录信息确定所述用户在所述信息提供服务器注册的用户标识,并将所述第一验证信息、所述用户标识发送至所述信息提供服务器后,接收所述平台服务器转发的来自所述信息提供服务器的所述电子文件,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。After the platform server determines the information providing server based on the first identifier and determines the user identifier registered by the user on the information providing server based on the user's first login information on the platform server, and sends the first verification information and the user identifier to the information providing server, it receives the electronic file forwarded by the platform server from the information providing server. The privacy information in the electronic file is encrypted by the first encryption key of the information providing server. 2.根据权利要求1所述的方法,其特征在于,所述根据所述第一提示信息确定用于身份验证的第一验证信息的步骤,包括:2. The method according to claim 1, wherein the step of determining the first verification information for authentication based on the first prompt information includes: 根据所述第一提示信息确定所述用户在所述终端设备输入的第一原始验证信息以及确定所述信息提供服务器的所述第一加密密钥;Based on the first prompt information, determine the first original verification information entered by the user on the terminal device and determine the first encryption key of the information providing server; 根据所述第一加密密钥对所述第一原始验证信息进行加密,得到用于身份验证的第一验证信息。The first original verification information is encrypted using the first encryption key to obtain the first verification information used for identity verification. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 在所述用户未登录到所述平台服务器时,确定所述用户的第一登录信息,通过所述第一登录信息登录所述平台服务器;When the user is not logged into the platform server, the user's first login information is determined, and the user logs into the platform server using the first login information. 在所述用户登录成功后,接收所述平台服务器返回的登录成功的第一响应消息。After the user successfully logs in, the system receives a first response message from the platform server confirming successful login. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, characterized in that the method further comprises: 通过第一手机号码接收来自所述信息提供服务器的第一验证码,所述第一验证码为所述平台服务器根据第二手机号码指示所述信息提供服务器发送所述第一手机号码的,所述第二手机号码由所述第一加密密钥对所述第一手机号码加密得到;The platform server receives a first verification code from the information providing server via a first mobile phone number. The first verification code is sent by the information providing server to the first mobile phone number based on the second mobile phone number. The second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key. 将所述第一验证码通过第二手机号码发送给所述平台服务器;The first verification code is sent to the platform server via the second mobile phone number; 在所述平台服务器对所述第一验证码与来自所述信息提供服务器的第二验证码进行验证后,确定所述用户登录成功,执行所述接收所述平台服务器返回的登录成功的第一响应消息的步骤。After the platform server verifies the first verification code and the second verification code from the information providing server, it determines that the user has successfully logged in and executes the step of receiving the first response message of successful login returned by the platform server. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, characterized in that the method further comprises: 在所述用户在所述平台服务器的第一登录信息与所述用户标识未绑定时,向所述平台服务器发送关联请求,所述关联请求中携带有所述信息提供服务器的第一标识;When the user's first login information on the platform server is not bound to the user identifier, an association request is sent to the platform server, and the association request carries the first identifier of the information providing server; 接收来自所述平台服务器根据所述关联请求返回的第二提示信息;Receive a second prompt message returned by the platform server based on the association request; 根据所述第二提示信息确定所述用户在所述终端设备输入的第二原始验证信息;The second original verification information entered by the user on the terminal device is determined based on the second prompt information; 根据所述第一加密密钥对所述第二原始验证信息进行加密,得到用于身份验证的第二验证信息,向所述平台服务器发送所述第二验证信息,所述平台服务器将所述绑定请求和所述第二验证信息转发至所述信息提供服务器,以供所述信息提供服务器根据与所述第一加密密钥对应的第一解密密钥对所述第二验证信息进行解密,根据解密后的所述第二验证信息确定所述用户在所述信息提供服务器的用户标识,将所述用户标识返回所述平台服务器后,以供所述平台服务器建立所述第一登录信息和所述用户标识之间的绑定关系。The second original verification information is encrypted using the first encryption key to obtain second verification information for identity verification. The second verification information is then sent to the platform server. The platform server forwards the binding request and the second verification information to the information providing server, so that the information providing server can decrypt the second verification information using the first decryption key corresponding to the first encryption key. Based on the decrypted second verification information, the user's user identifier on the information providing server is determined. After the user identifier is returned to the platform server, the platform server can establish a binding relationship between the first login information and the user identifier. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method according to claim 1, characterized in that the method further comprises: 在所述用户在所述平台服务器和所述信息提供服务器上未注册时,通过所述平台服务器的第二加密密钥对所述终端设备的用户需要在所述信息提供服务器注册的第一注册信息进行加密;When the user has not registered on the platform server and the information providing server, the first registration information of the user on the terminal device that needs to be registered on the information providing server is encrypted using the second encryption key of the platform server. 在所述用户通过第一手机号码登录到所述信息提供服务器后,将通过所述第一加密密钥加密后的所述第一注册信息发送至所述信息提供服务器;After the user logs into the information providing server using the first mobile phone number, the first registration information encrypted with the first encryption key is sent to the information providing server. 在所述信息提供服务器根据所述第一手机号码生成用户标识后,接收来自所述信息提供服务器的所述第一加密密钥、注册成功的第一响应消息以及第二手机号码,所述第二手机号码由所述第一加密密钥对所述第一手机号码加密生成;After the information providing server generates a user identifier based on the first mobile phone number, it receives the first encryption key, a first response message indicating successful registration, and a second mobile phone number from the information providing server. The second mobile phone number is generated by encrypting the first mobile phone number with the first encryption key. 通过所述第二手机号码向所述平台服务器注册;Register with the platform server using the second mobile phone number; 在所述平台服务器对所述第二手机号码注册后,接收所述平台服务器返回的注册成功的第二响应消息。After the platform server registers the second mobile phone number, it receives a second response message from the platform server indicating successful registration. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, characterized in that the method further comprises: 向所述平台服务器发送用于获取所述平台服务器的第二加密密钥的第二请求消息;Send a second request message to the platform server to obtain the second encryption key of the platform server; 接收所述平台服务器根据所述第二请求消息返回的第二加密密钥。Receive the second encryption key returned by the platform server based on the second request message. 8.根据权利要求6所述的方法,其特征在于,所述通过所述第二手机号码向所述平台服务器注册的步骤,包括:8. The method according to claim 6, wherein the step of registering with the platform server via the second mobile phone number includes: 向所述平台服务器发送所述第二手机号码;Send the second mobile phone number to the platform server; 接收来自所述信息提供服务器返回的第三验证码,所述第三验证码为所述平台服务器根据所述第二手机号码请求所述信息提供服务器发送给所述终端设备的;Receive a third verification code returned by the information providing server, wherein the third verification code is sent by the information providing server to the terminal device based on the second mobile phone number requested by the platform server; 向所述平台服务器发送所述第三验证码;Send the third verification code to the platform server; 在所述平台服务器根据所述第三验证码与所述信息提供服务器返回给所述平台服务器的第四验证码进行比较以确定验证通过后,执行所述接收所述平台服务器返回的注册成功的第二响应消息的步骤。After the platform server compares the third verification code with the fourth verification code returned by the information providing server to the platform server to determine that the verification is successful, it executes the step of receiving the second response message of successful registration returned by the platform server. 9.一种获取电子文件的方法,应用在平台服务器上,其特征在于,所述方法包括:9. A method for acquiring electronic documents, applied on a platform server, characterized in that the method includes: 接收来自终端设备的用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;Receive a first request message from a terminal device for obtaining an electronic file, the first request message carrying a first identifier of an information providing server for providing the electronic file; 根据所述第一请求消息向所述终端设备返回第一提示信息;A first prompt message is returned to the terminal device according to the first request message; 在所述终端设备根据所述第一提示信息确定用于身份验证的第一验证信息后,接收来自所述终端设备的第一验证信息;After the terminal device determines the first verification information for identity verification based on the first prompt information, it receives the first verification information from the terminal device. 根据所述第一标识确定所述信息提供服务器,将所述第一验证信息、所述终端设备的用户在所述信息提供服务器注册的用户标识发送至所述信息提供服务器;The information providing server is determined based on the first identifier, and the first verification information and the user identifier registered by the user of the terminal device on the information providing server are sent to the information providing server. 在所述信息提供服务器对所述第一验证信息验证通过并根据所述用户标识确定所述电子文件后,接收来自所述信息提供服务器的所述电子文件,将所述电子文件转发至所述终端设备,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。After the information providing server verifies the first verification information and determines the electronic file according to the user identifier, it receives the electronic file from the information providing server and forwards the electronic file to the terminal device. The privacy information in the electronic file is encrypted by the first encryption key of the information providing server. 10.根据权利要求9所述的方法,其特征在于,所述第一验证信息为所述用户在所述终端设备输入的原始验证信息通过所述第一加密密钥加密生成的。10. The method according to claim 9, wherein the first verification information is generated by encrypting the original verification information input by the user on the terminal device using the first encryption key. 11.根据权利要求9所述的方法,其特征在于,所述方法还包括:11. The method according to claim 9, characterized in that the method further comprises: 在所述用户未登录到所述平台服务器时,确定所述用户在所述平台服务器上的第一登录信息;When the user is not logged into the platform server, determine the user's first login information on the platform server; 在所述用户登录成功后,向所述终端设备返回登录成功的第一响应消息。After the user successfully logs in, a first response message indicating successful login is returned to the terminal device. 12.根据权利要求11所述的方法,其特征在于,所述方法还包括:12. The method according to claim 11, characterized in that the method further comprises: 通过所述终端设备的用户在所述平台服务器注册的第二手机号码指示所述信息提供服务器向所述终端设备发送第一验证码,所述第二手机号码由所述第一加密密钥对第一手机号码加密得到,所述第一手机号码为所述用户注册在所述信息提供服务器的手机号码;The user of the terminal device instructs the information providing server to send a first verification code to the terminal device using a second mobile phone number registered on the platform server. The second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key. The first mobile phone number is the mobile phone number registered by the user on the information providing server. 在所述信息提供服务器通过所述信息提供服务器的第一解密密钥对所述第二手机号码解密得到所述第一手机号码,通过所述第一手机号码向所述终端设备指示发送第一验证码后,接收来自所述终端设备的所述第一验证码以及接收来自所述信息提供服务器的第二验证码;After the information providing server decrypts the second mobile phone number using the first decryption key of the information providing server to obtain the first mobile phone number, and instructs the terminal device to send a first verification code through the first mobile phone number, the terminal device receives the first verification code and the information providing server receives the second verification code. 对所述第一验证码和所述第二验证码进行验证,在验证通过后确定所述用户登录成功,执行所述向所述终端设备返回登录成功的第一响应消息的步骤。The first verification code and the second verification code are verified. After the verification is successful, it is determined that the user has successfully logged in, and the step of returning a first response message of successful login to the terminal device is executed. 13.根据权利要求9所述的方法,其特征在于,所述方法还包括:13. The method according to claim 9, characterized in that the method further comprises: 在所述用户在所述平台服务器的第一登录信息和所述用户在所述信息提供服务器注册的用户标识未绑定时,接收来自所述终端设备的关联请求,所述关联请求中携带有所述第一标识;When the user's first login information on the platform server and the user identifier registered by the user on the information providing server are not bound, an association request is received from the terminal device, and the association request carries the first identifier; 根据所述关联请求向所述终端设备返回第二提示信息;A second prompt message is returned to the terminal device according to the association request; 在所述终端设备根据所述第二提示信息确定用于身份验证的第二验证信息,接收来自所述终端设备根据所述第二提示信息返回的所述第二验证信息,所述第二验证信息经过所述第一加密密钥加密;The terminal device determines the second verification information for identity verification based on the second prompt information, and receives the second verification information returned by the terminal device based on the second prompt information, wherein the second verification information is encrypted by the first encryption key; 将所述绑定请求和经过所述第一加密密钥的所述第二验证信息转发至所述信息提供服务器,以供所述信息提供服务器对经过所述第一加密密钥加密的所述第二验证信息进行解密,根据解密后的所述第二验证信息确定所述用户在所述信息提供服务器注册的用户标识;The binding request and the second verification information encrypted with the first encryption key are forwarded to the information providing server, so that the information providing server can decrypt the second verification information encrypted with the first encryption key and determine the user identifier registered by the user on the information providing server based on the decrypted second verification information; 接收来自所述信息提供服务器返回的所述用户标识,建立所述第一登录信息和所述用户标识之间的绑定关系。Receive the user identifier returned from the information providing server and establish a binding relationship between the first login information and the user identifier. 14.根据权利要求9所述的方法,其特征在于,所述方法还包括:14. The method according to claim 9, wherein the method further comprises: 在所述用户在所述平台服务器上未注册时,通过来自所述终端设备的第二注册信息进行注册;If the user has not registered on the platform server, registration is performed using second registration information from the terminal device; 根据所述第二注册信息向所述信息提供服务器获取第三验证码,指示所述信息提供服务器向第二手机号码对应的第一手机号码发送第四验证码,所述第二手机号码由所述第一加密密钥对所述第一手机号码加密得到;Based on the second registration information, a third verification code is obtained from the information providing server, and the information providing server is instructed to send a fourth verification code to the first mobile phone number corresponding to the second mobile phone number. The second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key. 接收来自所述终端设备的所述第四验证码;Receive the fourth verification code from the terminal device; 对所述第三验证码和所述第四验证码进行验证;Verify the third verification code and the fourth verification code; 在所述平台服务器对所述第三验证码和所述第四验证验证通过后,向所述终端设备返回注册成功的第二响应消息。After the platform server verifies the third verification code and the fourth verification code, it returns a second response message indicating successful registration to the terminal device. 15.根据权利要求14所述的方法,其特征在于,所述方法还包括:15. The method according to claim 14, characterized in that the method further comprises: 接收来自所述终端设备的用于获取所述平台服务器的第二加密密钥的第二请求消息;Receive a second request message from the terminal device for obtaining a second encryption key from the platform server; 根据所述第二请求消息向所述终端设备返回所述第二加密密钥。The second encryption key is returned to the terminal device according to the second request message. 16.一种获取电子文件的方法,应用在信息提供服务器上,其特征在于,所述方法包括:16. A method for acquiring electronic documents, applied on an information providing server, characterized in that the method comprises: 接收来自平台服务器的第一验证信息、终端设备的用户在所述信息提供服务器注册的用户标识;Receive first verification information from the platform server, and the user identifier registered by the terminal device with the information provided by the server. 对所述第一验证信息进行验证,在验证通过后根据所述用户标识确定所述电子文件;The first verification information is verified, and the electronic document is determined based on the user identifier after the verification is successful. 将所述电子文件中的隐私信息通过所述信息提供服务器的第一加密密钥加密;The privacy information in the electronic file is encrypted using the first encryption key provided by the information server; 将所述电子文件发送至所述平台服务器,以供所述平台服务器将所述电子文件转发至所述终端设备。The electronic file is sent to the platform server, so that the platform server can forward the electronic file to the terminal device. 17.根据权利要求16所述的方法,其特征在于,所述对所述第一验证信息进行验证的步骤,包括:17. The method according to claim 16, wherein the step of verifying the first verification information includes: 通过所述信息提供服务器的第一解密密钥对所述第一验证信息进行解密;The first verification information is decrypted using the first decryption key provided by the server. 通过所述平台服务器的第二加密密钥对所述解密后的所述第一验证信息进行加密,得到第一加密字符串;The decrypted first verification information is encrypted using the second encryption key of the platform server to obtain a first encrypted string; 确定所述用户在所述信息提供服务器注册时生成的第二加密字符串,所述第二加密字符串由所述第一验证信息通过所述平台服务器的第二加密密钥加密生成;The second encrypted string generated by the user during registration with the information providing server is determined. The second encrypted string is generated by encrypting the first verification information with the second encryption key of the platform server. 确定所述第一加密字符串和所述第二加密字符串是否相同,如果相同,则所述第一验证信息的验证通过。Determine whether the first encrypted string and the second encrypted string are the same. If they are the same, the verification of the first verification information is successful. 18.根据权利要求16所述的方法,其特征在于,所述方法还包括:18. The method according to claim 16, wherein the method further comprises: 在所述用户未登录到所述平台服务器时,接收来自所述平台服务器用于指示所述信息提供服务器向所述用户在所述平台服务器注册的第二手机号码发送第一验证码的指示消息,其中,所述第二手机号码由所述第一加密密钥对第一手机号码加密得到,所述第一手机号码为所述用户注册在所述信息提供服务器的手机号码;When the user is not logged into the platform server, an instruction message is received from the platform server instructing the information providing server to send a first verification code to the second mobile phone number registered by the user on the platform server, wherein the second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key, and the first mobile phone number is the mobile phone number registered by the user on the information providing server; 根据所述指示消息通过所述信息提供服务器的第一解密密钥对所述第二手机号码进行解密,得到所述第一手机号码;According to the instruction message, the second mobile phone number is decrypted using the first decryption key provided by the information server to obtain the first mobile phone number; 通过所述第一手机号码向所述终端设备发送第一验证码以及向所述平台服务器返回第二验证码,以供所述平台服务器根据所述第一验证码和所述第二验证码对所述用户进行登录验证。The first verification code is sent to the terminal device via the first mobile phone number, and a second verification code is returned to the platform server, so that the platform server can verify the user's login based on the first verification code and the second verification code. 19.根据权利要求16所述的方法,其特征在于,所述方法还包括:19. The method according to claim 16, characterized in that the method further comprises: 在所述用户在所述平台服务器的第一登录信息与所述用户标识未绑定时,接收来自所述平台服务器的第二验证信息和所述平台服务器的第二加密密钥,所述第二验证信息经过所述第一加密密钥加密;When the user's first login information on the platform server is not bound to the user identifier, the user receives second verification information and a second encryption key from the platform server, wherein the second verification information is encrypted with the first encryption key. 通过所述信息提供服务器的第一解密密钥对所述第二验证信息进行解密,通过所述第二加密密钥对解密后的第二原始验证信息进行加密,得到第三加密字符串;The first decryption key provided by the information server is used to decrypt the second verification information, and the second encryption key is used to encrypt the decrypted second original verification information to obtain a third encrypted string; 确定所述用户在所述信息提供服务器注册时生成的第四加密字符串,所述第四加密字符串由所述第二原始验证信息通过所述平台服务器的第二加密密钥加密生成;Determine the fourth encrypted string generated by the user when registering with the information providing server, the fourth encrypted string being generated by encrypting the second original verification information with the second encryption key of the platform server; 确定所述第三加密字符串和所述第四加密字符串是否相同;Determine whether the third encrypted string and the fourth encrypted string are the same; 如果相同,向所述平台服务器返回所述终端设备的用户在所述信息提供服务器上注册的用户标识,以供所述平台服务器建立所述第一登录信息和所述用户标识的绑定关系。If they are the same, the platform server returns the user identifier registered by the user of the terminal device on the information providing server, so that the platform server can establish a binding relationship between the first login information and the user identifier. 20.根据权利要求16所述的方法,其特征在于,所述方法还包括:20. The method according to claim 16, characterized in that the method further comprises: 在所述用户在所述信息提供服务器上未注册时,通过来自所述终端设备的第一注册信息进行注册;If the user has not registered on the information providing server, registration is performed using the first registration information from the terminal device; 在所述用户通过第一手机号码登录到所述信息提供服务器后,将所述第一手机号码通过所述第一加密密钥进行加密,得到第二手机号码;After the user logs into the information providing server using the first mobile phone number, the first mobile phone number is encrypted using the first encryption key to obtain the second mobile phone number; 将所述第二手机号码发送至所述终端设备,以供所述终端设备通过所述第二手机号码在所述平台服务器上注册;The second mobile phone number is sent to the terminal device so that the terminal device can register on the platform server using the second mobile phone number; 根据所述第一手机号码生成用户标识。A user identifier is generated based on the first mobile phone number. 21.根据权利要求20所述的方法,其特征在于,所述方法还包括:21. The method according to claim 20, characterized in that the method further comprises: 接收来自平台服务器的第二手机号码;Receive a second mobile phone number from the platform server; 通过所述信息提供服务器的第一解密密钥对所述第二手机号码进行解密,得到所述第一手机号码;The first mobile phone number is obtained by decrypting the second mobile phone number using the first decryption key provided by the information provider server; 通过所述第一手机号码向所述终端设备返回第三验证码,所述第三验证码为所述平台服务器根据第二注册信息请求所述信息提供服务器发送给所述终端设备的,所述第二注册信息来自所述终端设备;A third verification code is returned to the terminal device through the first mobile phone number. The third verification code is sent to the terminal device by the information providing server based on the second registration information requested by the platform server. The second registration information comes from the terminal device. 向所述平台服务器返回第四验证码,以供所述平台服务器对所述第三验证码和所述第四验证码进行比较以确定验证是否通过。A fourth verification code is returned to the platform server so that the platform server can compare the third verification code and the fourth verification code to determine whether the verification is successful. 22.一种获取电子文件的装置,应用在终端设备上,其特征在于,所述装置包括:22. An apparatus for acquiring electronic documents, applied on a terminal device, characterized in that the apparatus comprises: 第一发送模块,用于向平台服务器发送用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;The first sending module is used to send a first request message to the platform server for obtaining electronic files, wherein the first request message carries a first identifier of the information providing server for providing the electronic files. 第一接收模块,用于接收来自所述平台服务器根据所述第一发送模块发送的所述第一请求消息返回的第一提示信息;The first receiving module is used to receive a first prompt message returned by the platform server based on the first request message sent by the first sending module; 第一确定模块,用于根据所述第一接收模块接收到的所述第一提示信息确定用于身份验证的第一验证信息,向所述平台服务器发送所述第一验证信息;The first determining module is configured to determine first verification information for identity verification based on the first prompt information received by the first receiving module, and send the first verification information to the platform server; 第二接收模块,用于在所述平台服务器根据所述第一标识确定所述信息提供服务器,以及根据所述终端设备的用户在所述平台服务器的第一登录信息确定所述用户在所述信息提供服务器注册的用户标识,并将所述第一确定模块确定的所述第一验证信息、所述用户标识发送至所述信息提供服务器后,接收所述平台服务器转发的来自所述信息提供服务器的所述电子文件,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。The second receiving module is configured to receive the electronic file forwarded by the platform server from the information providing server after the platform server determines the information providing server based on the first identifier and determines the user identifier registered by the user of the terminal device on the information providing server based on the first login information of the user on the platform server, and sends the first verification information determined by the first determining module and the user identifier to the information providing server. The privacy information in the electronic file is encrypted by the first encryption key of the information providing server. 23.根据权利要求22所述的装置,其特征在于,所述第一确定模块包括:23. The apparatus according to claim 22, wherein the first determining module comprises: 第一确定单元,用于根据所述第一提示信息确定所述用户在所述终端设备输入的第一原始验证信息以及确定所述信息提供服务器的所述第一加密密钥;The first determining unit is configured to determine the first original verification information input by the user on the terminal device and the first encryption key of the information providing server based on the first prompt information. 第一加密单元,用于根据所述第一确定单元确定的所述第一加密密钥对所述第一原始验证信息进行加密,得到用于身份验证的第一验证信息。The first encryption unit is used to encrypt the first original verification information according to the first encryption key determined by the first determining unit to obtain the first verification information for identity verification. 24.根据权利要求22所述的装置,其特征在于,所述装置还包括:24. The apparatus according to claim 22, wherein the apparatus further comprises: 第二确定模块,用于在所述用户未登录到所述平台服务器时,确定所述用户的第一登录信息,通过所述第一登录信息登录所述平台服务器;The second determining module is used to determine the user's first login information when the user has not logged into the platform server, and log into the platform server using the first login information; 第三接收模块,用于在所述第二确定模块确定所述用户登录成功后,接收所述平台服务器返回的登录成功的第一响应消息。The third receiving module is used to receive a first response message indicating successful login returned by the platform server after the second determining module determines that the user has successfully logged in. 25.根据权利要求24所述的装置,其特征在于,所述装置还包括:25. The apparatus according to claim 24, wherein the apparatus further comprises: 第四接收模块,用于通过第一手机号码接收来自所述信息提供服务器的第一验证码,所述第一验证码为所述平台服务器根据第二手机号码指示所述信息提供服务器发送所述第一手机号码的,所述第二手机号码由所述第一加密密钥对所述第一手机号码加密得到;The fourth receiving module is used to receive a first verification code from the information providing server via a first mobile phone number. The first verification code is sent by the information providing server to the first mobile phone number according to the instructions of the platform server based on the second mobile phone number. The second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key. 第二发送模块,用于将所述第四接收模块接收到的所述第一验证码通过第二手机号码发送给所述平台服务器;The second sending module is used to send the first verification code received by the fourth receiving module to the platform server via a second mobile phone number; 第三确定模块,用于在所述平台服务器对所述第二发送模块发送的所述第一验证码与来自所述信息提供服务器的第二验证码进行验证后,确定所述用户登录成功,所述第三接收模块执行所述接收所述平台服务器返回的登录成功的第一响应消息的步骤。The third determining module is used to determine that the user has successfully logged in after the platform server verifies the first verification code sent by the second sending module and the second verification code from the information providing server, and the third receiving module performs the step of receiving the first response message of successful login returned by the platform server. 26.根据权利要求22所述的装置,其特征在于,所述装置还包括:26. The apparatus according to claim 22, wherein the apparatus further comprises: 第三发送模块,用于在所述用户在所述平台服务器的第一登录信息与所述用户标识未绑定时,向所述平台服务器发送关联请求,所述关联请求中携带有所述信息提供服务器的第一标识;The third sending module is used to send an association request to the platform server when the user's first login information on the platform server is not bound to the user identifier, and the association request carries the first identifier of the information providing server; 第五接收模块,用于接收来自所述平台服务器根据所述第三发送模块发送的所述关联请求返回的第二提示信息;The fifth receiving module is used to receive a second prompt message returned by the platform server based on the association request sent by the third sending module; 第四确定模块,用于根据所述第五接收模块接收到的所述第二提示信息确定所述用户在所述终端设备输入的第二原始验证信息;The fourth determining module is used to determine the second original verification information input by the user on the terminal device based on the second prompt information received by the fifth receiving module; 第一加密模块,用于根据所述第一加密密钥对所述第四确定模块确定的所述第二原始验证信息进行加密,得到用于身份验证的第二验证信息;The first encryption module is used to encrypt the second original verification information determined by the fourth determining module according to the first encryption key, so as to obtain the second verification information for identity verification. 第四发送模块,用于向所述平台服务器发送所述第一加密模块加密的所述第二验证信息,所述平台服务器将所述绑定请求和所述第二验证信息转发至所述信息提供服务器,以供所述信息提供服务器根据与所述第一加密密钥对应的第一解密密钥对所述第二验证信息进行解密,根据解密后的所述第二验证信息确定所述用户在所述信息提供服务器的用户标识,将所述用户标识返回所述平台服务器后,以供所述平台服务器建立所述第一登录信息和所述用户标识之间的绑定关系。The fourth sending module is used to send the second verification information encrypted by the first encryption module to the platform server. The platform server forwards the binding request and the second verification information to the information providing server, so that the information providing server can decrypt the second verification information according to the first decryption key corresponding to the first encryption key. Based on the decrypted second verification information, the information providing server determines the user's user identifier on the information providing server and returns the user identifier to the platform server, so that the platform server can establish a binding relationship between the first login information and the user identifier. 27.根据权利要求22所述的装置,其特征在于,所述装置还包括:27. The apparatus according to claim 22, wherein the apparatus further comprises: 第二加密模块,用于在所述用户在所述平台服务器和所述信息提供服务器上未注册时,通过所述平台服务器的第二加密密钥对所述终端设备的用户需要在所述信息提供服务器注册的第一注册信息进行加密;The second encryption module is used to encrypt the first registration information of the user of the terminal device that needs to be registered on the information providing server using the second encryption key of the platform server when the user has not registered on the platform server and the information providing server. 第五发送模块,用于在所述用户通过第一手机号码登录到所述信息提供服务器后,将通过所述第一加密密钥加密后的所述第一注册信息发送至所述信息提供服务器;The fifth sending module is used to send the first registration information encrypted with the first encryption key to the information providing server after the user logs in to the information providing server using the first mobile phone number; 第六接收模块,用于在所述信息提供服务器根据所述第一手机号码生成用户标识后,接收来自所述信息提供服务器的所述第一加密密钥、注册成功的第一响应消息以及第二手机号码,所述第二手机号码由所述第一加密密钥对所述第一手机号码加密生成;The sixth receiving module is used to receive the first encryption key, the first response message of successful registration, and the second mobile phone number from the information providing server after the information providing server generates a user identifier based on the first mobile phone number. The second mobile phone number is generated by encrypting the first mobile phone number with the first encryption key. 第一注册模块,用于通过所述第二手机号码向所述平台服务器注册;The first registration module is used to register with the platform server using the second mobile phone number; 第七接收模块,用于在所述平台服务器对所述第二手机号码注册后,接收所述平台服务器返回的注册成功的第二响应消息。The seventh receiving module is used to receive a second response message indicating successful registration returned by the platform server after the platform server registers the second mobile phone number. 28.根据权利要求27所述的装置,其特征在于,所述装置还包括:28. The apparatus according to claim 27, wherein the apparatus further comprises: 第六发送模块,用于向所述平台服务器发送用于获取所述平台服务器的第二加密密钥的第二请求消息;The sixth sending module is used to send a second request message to the platform server for obtaining the second encryption key of the platform server; 第八接收模块,用于接收所述平台服务器根据所述第六发送模块发送的所述第二请求消息返回的第二加密密钥。The eighth receiving module is used to receive the second encryption key returned by the platform server according to the second request message sent by the sixth sending module. 29.根据权利要求27所述的装置,其特征在于,所述第一注册模块包括:29. The apparatus according to claim 27, wherein the first registration module comprises: 第一发送单元,用于向所述平台服务器发送所述第二手机号码;The first sending unit is used to send the second mobile phone number to the platform server; 第一接收单元,用于接收来自所述信息提供服务器返回的第三验证码,所述第三验证码为所述平台服务器根据所述第一发送单元发送的所述第二手机号码请求所述信息提供服务器发送给所述终端设备的;The first receiving unit is configured to receive a third verification code returned by the information providing server, wherein the third verification code is requested by the platform server to be sent by the information providing server to the terminal device based on the second mobile phone number sent by the first sending unit; 第二发送单元,用于向所述平台服务器发送所述第一接收单元接收到的所述第三验证码;The second sending unit is used to send the third verification code received by the first receiving unit to the platform server; 在所述平台服务器根据所述第三验证码与所述信息提供服务器返回给所述平台服务器的第四验证码进行比较以确定验证通过后,所述第七接收模块执行所述接收所述平台服务器返回的注册成功的第二响应消息的步骤。After the platform server compares the third verification code with the fourth verification code returned by the information providing server to the platform server to determine that the verification is successful, the seventh receiving module performs the step of receiving the second response message of successful registration returned by the platform server. 30.一种获取电子文件的装置,应用在平台服务器上,其特征在于,所述装置包括:30. An apparatus for acquiring electronic documents, used on a platform server, characterized in that the apparatus comprises: 第九接收模块,用于接收来自终端设备的用于获取电子文件的第一请求消息,所述第一请求消息中携带有提供所述电子文件的信息提供服务器的第一标识;The ninth receiving module is used to receive a first request message from a terminal device for obtaining an electronic file, wherein the first request message carries a first identifier of an information providing server for providing the electronic file; 第七发送模块,用于根据所述第九接收模块接收到的所述第一请求消息向所述终端设备返回第一提示信息;The seventh sending module is used to return a first prompt message to the terminal device based on the first request message received by the ninth receiving module; 第八发送模块,用于在所述终端设备根据所述第七发送模块发送的所述第一提示信息确定用于身份验证的第一验证信息后,接收来自所述终端设备的第一验证信息;The eighth sending module is configured to receive the first verification information from the terminal device after the terminal device determines the first verification information for identity verification based on the first prompt information sent by the seventh sending module; 第九发送模块,用于根据所述第九接收模块接收到的所述第一标识确定所述信息提供服务器,将所述第一验证信息、所述终端设备的用户在所述信息提供服务器注册的用户标识发送至所述信息提供服务器;The ninth sending module is used to determine the information providing server based on the first identifier received by the ninth receiving module, and send the first verification information and the user identifier registered by the user of the terminal device on the information providing server to the information providing server; 第一转发模块,用于在所述信息提供服务器对所述第九发送模块发送的所述第一验证信息验证通过并根据所述用户标识确定所述电子文件后,接收来自所述信息提供服务器的所述电子文件,将所述电子文件转发至所述终端设备,所述电子文件中的隐私信息经过所述信息提供服务器的第一加密密钥加密。The first forwarding module is configured to receive the electronic file from the information providing server after the information providing server verifies the first verification information sent by the ninth sending module and determines the electronic file according to the user identifier, and forward the electronic file to the terminal device, wherein the privacy information in the electronic file is encrypted by the first encryption key of the information providing server. 31.根据权利要求30所述的装置,其特征在于,所述第一验证信息为所述用户在所述终端设备输入的原始验证信息通过所述第一加密密钥加密生成的。31. The apparatus according to claim 30, wherein the first verification information is generated by encrypting the original verification information input by the user on the terminal device using the first encryption key. 32.根据权利要求30所述的装置,其特征在于,所述装置还包括:32. The apparatus according to claim 30, characterized in that the apparatus further comprises: 第五确定模块,用于在所述用户未登录到所述平台服务器时,确定所述用户在所述平台服务器上的第一登录信息;The fifth determining module is used to determine the user's first login information on the platform server when the user has not logged in to the platform server; 第十发送模块,用于在所述第五确定模块确定所述用户登录成功后,向所述终端设备返回登录成功的第一响应消息。The tenth sending module is used to return a first response message of successful login to the terminal device after the fifth determining module determines that the user has successfully logged in. 33.根据权利要求32所述的装置,其特征在于,所述装置还包括:33. The apparatus according to claim 32, characterized in that the apparatus further comprises: 第十一发送模块,用于通过所述终端设备的用户在所述平台服务器注册的第二手机号码指示所述信息提供服务器向所述终端设备发送第一验证码,所述第二手机号码由所述第一加密密钥对第一手机号码加密得到,所述第一手机号码为所述用户注册在所述信息提供服务器的手机号码;The eleventh sending module is used to instruct the information providing server to send a first verification code to the terminal device through a second mobile phone number registered by the user of the terminal device on the platform server. The second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key. The first mobile phone number is the mobile phone number registered by the user on the information providing server. 第十接收模块,用于在所述信息提供服务器通过所述信息提供服务器的第一解密密钥对所述第二手机号码解密得到所述第一手机号码,通过所述第一手机号码向所述终端设备指示发送第一验证码后,接收来自所述终端设备的所述第一验证码以及接收来自所述信息提供服务器的第二验证码;The tenth receiving module is configured to receive the first verification code from the terminal device and the second verification code from the information providing server after the information providing server decrypts the second mobile phone number using the first decryption key of the information providing server to obtain the first mobile phone number and instructs the terminal device to send a first verification code using the first mobile phone number; 第一验证模块,用于对所述第一验证码和所述第二验证码进行验证,在验证通过后确定所述用户登录成功,所述第十发送模块执行所述向所述终端设备返回登录成功的第一响应消息的步骤。The first verification module is used to verify the first verification code and the second verification code. After the verification is successful, it is determined that the user has successfully logged in. The tenth sending module performs the step of returning a first response message of successful login to the terminal device. 34.根据权利要求30所述的装置,其特征在于,所述装置还包括:34. The apparatus according to claim 30, wherein the apparatus further comprises: 第十一接收模块,用于在所述用户在所述平台服务器的第一登录信息和所述用户在所述信息提供服务器注册的用户标识未绑定时,接收来自所述终端设备的关联请求,所述关联请求中携带有所述第一标识;The eleventh receiving module is configured to receive an association request from the terminal device when the user's first login information on the platform server and the user identifier registered by the user on the information providing server are not bound together, wherein the association request carries the first identifier; 第十二发送模块,用于根据所述关联请求向所述终端设备返回第二提示信息;The twelfth sending module is used to return a second prompt message to the terminal device according to the association request; 第十二接收模块,用于在所述终端设备根据所述第二提示信息确定用于身份验证的第二验证信息,接收来自所述终端设备根据所述第二提示信息返回的所述第二验证信息,所述第二验证信息经过所述第一加密密钥加密;The twelfth receiving module is configured to receive the second verification information returned by the terminal device based on the second prompt information when the terminal device determines the second verification information for authentication based on the second prompt information, wherein the second verification information is encrypted by the first encryption key; 第二转发模块,用于将所述绑定请求和经过所述第一加密密钥的所述第二验证信息转发至所述信息提供服务器,以供所述信息提供服务器对经过所述第一加密密钥加密的所述第二验证信息进行解密,根据解密后的所述第二验证信息确定所述用户在所述信息提供服务器注册的用户标识;The second forwarding module is used to forward the binding request and the second verification information encrypted with the first encryption key to the information providing server, so that the information providing server can decrypt the second verification information encrypted with the first encryption key and determine the user identifier registered by the user on the information providing server based on the decrypted second verification information. 第十三接收模块,用于接收来自所述信息提供服务器返回的所述用户标识,建立所述第一登录信息和所述用户标识之间的绑定关系。The thirteenth receiving module is used to receive the user identifier returned by the information providing server and establish a binding relationship between the first login information and the user identifier. 35.根据权利要求30所述的装置,其特征在于,所述装置还包括:35. The apparatus according to claim 30, wherein the apparatus further comprises: 第二注册模块,用于在所述用户在所述平台服务器上未注册时,通过来自所述终端设备的第二注册信息进行注册;The second registration module is used to register the user using second registration information from the terminal device when the user has not registered on the platform server. 第一获取模块,用于根据所述第二注册模块注册的所述第二注册信息向所述信息提供服务器获取第三验证码,指示所述信息提供服务器向第二手机号码对应的第一手机号码发送第四验证码,所述第二手机号码由所述第一加密密钥对所述第一手机号码加密得到;The first acquisition module is used to obtain a third verification code from the information providing server based on the second registration information registered by the second registration module, and instruct the information providing server to send a fourth verification code to the first mobile phone number corresponding to the second mobile phone number, wherein the second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key; 第十四接收模块,用于接收来自所述终端设备的所述第四验证码;The fourteenth receiving module is used to receive the fourth verification code from the terminal device; 第二验证模块,用于对所述第三验证码和所述第四验证码进行验证;The second verification module is used to verify the third verification code and the fourth verification code; 第十三发送模块,用于在所述第二验证模块对所述第三验证码和所述第四验证验证通过后,向所述终端设备返回注册成功的第二响应消息。The thirteenth sending module is used to return a second response message of successful registration to the terminal device after the second verification module has successfully verified the third verification code and the fourth verification code. 36.根据权利要求35所述的装置,其特征在于,所述装置还包括:36. The apparatus according to claim 35, wherein the apparatus further comprises: 第十五接收模块,用于接收来自所述终端设备的用于获取所述平台服务器的第二加密密钥的第二请求消息;The fifteenth receiving module is configured to receive a second request message from the terminal device for obtaining the second encryption key of the platform server; 第十四发送模块,用于根据所述第十五接收模块接收到的所述第二请求消息向所述终端设备返回所述第二加密密钥。The fourteenth sending module is used to return the second encryption key to the terminal device according to the second request message received by the fifteenth receiving module. 37.一种获取电子文件的装置,应用在信息提供服务器上,其特征在于,所述装置包括:37. An apparatus for acquiring electronic documents, used on an information providing server, characterized in that the apparatus comprises: 第十六接收模块,用于接收来自平台服务器的第一验证信息、终端设备的用户在所述信息提供服务器注册的用户标识;The sixteenth receiving module is used to receive first verification information from the platform server and the user identifier registered by the user of the terminal device on the information providing server; 第三验证模块,用于对所述第十六接收模块接收到的所述第一验证信息进行验证,在验证通过后根据所述用户标识确定所述电子文件;The third verification module is used to verify the first verification information received by the sixteenth receiving module, and after the verification is passed, determine the electronic document according to the user identifier; 第三加密模块,用于将所述电子文件中的隐私信息通过所述信息提供服务器的第一加密密钥加密;The third encryption module is used to encrypt the privacy information in the electronic document using the first encryption key provided by the information server; 第十五发送模块,用于将所述第三加密模块加密后的所述电子文件发送至所述平台服务器,以供所述平台服务器将所述电子文件转发至所述终端设备。The fifteenth sending module is used to send the electronic file encrypted by the third encryption module to the platform server, so that the platform server can forward the electronic file to the terminal device. 38.根据权利要求37所述的装置,其特征在于,所述第三验证模块包括:38. The apparatus according to claim 37, wherein the third verification module comprises: 第一解密单元,用于通过所述信息提供服务器的所述第一解密密钥对所述第一验证信息进行解密;The first decryption unit is used to decrypt the first verification information using the first decryption key provided by the information provider server; 第一加密单元,用于通过所述平台服务器的第二加密密钥对所述第一解密单元解密后的所述第一验证信息进行加密,得到第一加密字符串;The first encryption unit is used to encrypt the first verification information decrypted by the first decryption unit using the second encryption key of the platform server to obtain a first encrypted string. 第一确定单元,用于确定所述用户在所述信息提供服务器注册时生成的第二加密字符串,所述第二加密字符串由所述第一验证信息通过所述平台服务器的第二加密密钥加密生成;The first determining unit is used to determine the second encrypted string generated by the user when registering with the information providing server, wherein the second encrypted string is generated by encrypting the first verification information with the second encryption key of the platform server. 第二确定单元,用于确定所述第一加密单元得到的所述第一加密字符串和所述第一确定单元确定的所述第二加密字符串是否相同,如果相同,则所述第一验证信息的验证通过。The second determining unit is used to determine whether the first encrypted string obtained by the first encryption unit and the second encrypted string determined by the first determining unit are the same. If they are the same, the verification of the first verification information is successful. 39.根据权利要求37所述的装置,其特征在于,所述装置还包括:39. The apparatus according to claim 37, wherein the apparatus further comprises: 第十七接收模块,用于在所述用户未登录到所述平台服务器时,接收来自所述平台服务器用于指示所述信息提供服务器向所述用户在所述平台服务器注册的第二手机号码发送第一验证码的指示消息,其中,所述第二手机号码由所述第一加密密钥对第一手机号码加密得到,所述第一手机号码为所述用户注册在所述信息提供服务器的手机号码;The seventeenth receiving module is used to receive an instruction message from the platform server when the user is not logged into the platform server, instructing the information providing server to send a first verification code to the second mobile phone number registered by the user on the platform server, wherein the second mobile phone number is obtained by encrypting the first mobile phone number with the first encryption key, and the first mobile phone number is the mobile phone number registered by the user on the information providing server; 第一解密模块,用于根据所述第十七接收模块接收到的所述指示消息通过所述第一解密密钥对所述第二手机号码进行解密,得到所述第一手机号码;The first decryption module is used to decrypt the second mobile phone number using the first decryption key according to the instruction message received by the seventeenth receiving module, so as to obtain the first mobile phone number; 第十六发送模块,用于通过所述第一手机号码向所述终端设备发送第一验证码以及向所述平台服务器返回第二验证码,以供所述平台服务器根据所述第一验证码和所述第二验证码对所述用户进行登录验证。The sixteenth sending module is used to send a first verification code to the terminal device via the first mobile phone number and return a second verification code to the platform server, so that the platform server can perform login verification on the user based on the first verification code and the second verification code. 40.根据权利要求37所述的装置,其特征在于,所述装置还包括:40. The apparatus according to claim 37, wherein the apparatus further comprises: 第十八接收模块,用于在所述用户在所述平台服务器的第一登录信息与所述用户标识未绑定时,接收来自所述平台服务器的第二验证信息和所述平台服务器的第二加密密钥,所述第二验证信息经过所述第一加密密钥加密;The eighteenth receiving module is used to receive second verification information and a second encryption key from the platform server when the user's first login information on the platform server is not bound to the user identifier, wherein the second verification information is encrypted by the first encryption key; 第二解密模块,用于通过所述信息提供服务器的第一解密密钥对所述第二验证信息进行解密,通过所述第二加密密钥对解密后的第二原始验证信息进行加密,得到第三加密字符串;The second decryption module is used to decrypt the second verification information using the first decryption key provided by the information server, and to encrypt the decrypted second original verification information using the second encryption key to obtain a third encrypted string; 第六确定模块,用于确定所述用户在所述信息提供服务器注册时生成的第四加密字符串,所述第四加密字符串由所述第二原始验证信息通过所述平台服务器的第二加密密钥加密生成;The sixth determining module is used to determine the fourth encrypted string generated by the user when registering with the information providing server, wherein the fourth encrypted string is generated by encrypting the second original verification information with the second encryption key of the platform server; 第七确定模块,用于确定所述第三加密字符串和所述第四加密字符串是否相同;The seventh determining module is used to determine whether the third encrypted string and the fourth encrypted string are the same; 第十七发送模块,用于如果所述第七确定模块确定相同,向所述平台服务器返回所述终端设备的用户在所述信息提供服务器上注册的用户标识,以供所述平台服务器建立所述第一登录信息和所述用户标识的绑定关系。The seventeenth sending module is used to return the user identifier registered by the user of the terminal device on the information providing server to the platform server if the seventh determining module determines the same, so that the platform server can establish a binding relationship between the first login information and the user identifier. 41.根据权利要求37所述的装置,其特征在于,所述装置还包括:41. The apparatus according to claim 37, wherein the apparatus further comprises: 第三注册模块,用于在所述用户在所述信息提供服务器上未注册时,通过来自所述终端设备的第一注册信息进行注册;The third registration module is used to register the user using the first registration information from the terminal device when the user has not registered on the information providing server. 第四加密模块,用于在所述用户通过第一手机号码登录到所述信息提供服务器后,将所述第一手机号码通过所述第一加密密钥进行加密,得到第二手机号码;The fourth encryption module is used to encrypt the first mobile phone number using the first encryption key after the user logs into the information providing server using the first mobile phone number, so as to obtain the second mobile phone number; 第十八发送模块,用于将所述第二手机号码发送至所述终端设备,以供所述终端设备通过所述第二手机号码在所述平台服务器上注册;The eighteenth sending module is used to send the second mobile phone number to the terminal device so that the terminal device can register on the platform server using the second mobile phone number; 标识生成模块,用于根据所述第一手机号码生成用户标识。The identifier generation module is used to generate a user identifier based on the first mobile phone number. 42.根据权利要求41所述的装置,其特征在于,所述装置还包括:42. The apparatus according to claim 41, characterized in that the apparatus further comprises: 第十九接收模块,用于接收来自平台服务器的第二手机号码;The nineteenth receiving module is used to receive a second mobile phone number from the platform server; 第三解密模块,用于通过所述信息提供服务器的第一解密密钥对所述第二手机号码进行解密,得到所述第一手机号码;The third decryption module is used to decrypt the second mobile phone number using the first decryption key provided by the information server to obtain the first mobile phone number; 第十九发送模块,用于通过所述第一手机号码向所述终端设备返回第三验证码,所述第三验证码为所述平台服务器根据第二注册信息请求所述信息提供服务器发送给所述终端设备的,所述第二注册信息来自所述终端设备;The nineteenth sending module is used to return a third verification code to the terminal device through the first mobile phone number. The third verification code is sent to the terminal device by the platform server based on the second registration information requested by the information providing server. The second registration information comes from the terminal device. 第二十发送模块,用于向所述平台服务器返回第四验证码,以供所述平台服务器对所述第三验证码和所述第四验证码进行比较以确定验证是否通。The twentieth sending module is used to return a fourth verification code to the platform server, so that the platform server can compare the third verification code and the fourth verification code to determine whether the verification is successful.
HK17106620.6A 2017-07-03 Method and device for acquiring electronical prescription HK1232994B (en)

Publications (2)

Publication Number Publication Date
HK1232994A1 HK1232994A1 (en) 2018-01-19
HK1232994B true HK1232994B (en) 2021-01-22

Family

ID=

Similar Documents

Publication Publication Date Title
US12297768B2 (en) Method and apparatus for securing communications using multiple encryption keys
US12395472B1 (en) Key rotation techniques
US11165757B2 (en) Method and apparatus for securing communications using multiple encryption keys
JP6941146B2 (en) Data security service
US20250286869A1 (en) Systems and methods for third party data protection
CN110798315B (en) Data processing method and device based on block chain and terminal
RU2756048C2 (en) Addressing trusted execution environment using encryption key
EP4092984A1 (en) Data processing method and apparatus, device and medium
CN109361668A (en) A method of reliable data transmission
EP2465246A1 (en) Layered protection and validation of identity data delivered online via multiple intermediate clients
US20210392003A1 (en) Decentralized computing systems and methods for performing actions using stored private data
CN107040520B (en) Cloud computing data sharing system and method
CN104283686A (en) Digital right management method and system
WO2019083379A1 (en) Data transmission
CN110598377A (en) Software serial number management method and device based on block chain
US8495383B2 (en) Method for the secure storing of program state data in an electronic device
JP4256361B2 (en) Authentication management method and system
CN105592056A (en) Password safety system for mobile device and password safety input method thereof
WO2024197879A1 (en) Blockchain data processing method, platform, system and apparatus, and electronic device
CN120836146A (en) Method, computer program and device for an enclave entity, for a trusted entity and for protecting information about a master key for a private memory area backup, enclave entity and trusted entity
HK1232994B (en) Method and device for acquiring electronical prescription
WO2022199796A1 (en) Method and computer-based system for key management
HK1232994A1 (en) Method and device for acquiring electronical prescription
CN119180701A (en) Bid anomaly handling method using blockchain, electronic device and server
CN120880668A (en) Medical privacy data sharing method, system, terminal and storage medium