[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102055685A - Method for encrypting webmail information - Google Patents

Method for encrypting webmail information Download PDF

Info

Publication number
CN102055685A
CN102055685A CN2010105983078A CN201010598307A CN102055685A CN 102055685 A CN102055685 A CN 102055685A CN 2010105983078 A CN2010105983078 A CN 2010105983078A CN 201010598307 A CN201010598307 A CN 201010598307A CN 102055685 A CN102055685 A CN 102055685A
Authority
CN
China
Prior art keywords
mail
encrypted
user
email
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010105983078A
Other languages
Chinese (zh)
Other versions
CN102055685B (en
Inventor
乐德广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changshu Intellectual Property Operation Center Co ltd
Original Assignee
Changshu Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changshu Institute of Technology filed Critical Changshu Institute of Technology
Priority to CN 201010598307 priority Critical patent/CN102055685B/en
Publication of CN102055685A publication Critical patent/CN102055685A/en
Application granted granted Critical
Publication of CN102055685B publication Critical patent/CN102055685B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种网页邮件信息加密的方法,采用基于口令的加解密保护,内嵌于网页邮件系统中,能和网页邮件系统无缝结合,可以不依赖复杂的密码体制,不受限于密码算法专利,不需要复杂的密钥交换和管理和不依赖第三方的认证机构,且具有操作简单,使用方便的优点。

Figure 201010598307

The invention discloses a method for encrypting webpage mail information, adopts encryption and decryption protection based on passwords, is embedded in the webpage mail system, can be seamlessly combined with the webpage mail system, does not rely on complex password systems, and is not limited to The patented cryptographic algorithm does not require complex key exchange and management and does not rely on third-party certification agencies, and has the advantages of simple operation and convenient use.

Figure 201010598307

Description

网页邮件信息加密的方法 Method of Encrypting Web Mail Information

技术领域technical field

本发明涉及一种网页邮件信息加密的方法。The invention relates to a method for encrypting webpage mail information.

背景技术Background technique

电子邮件(Email)作为目前互联网使用最为广泛的一种应用,人们不但用它进行通信,还往往将一些重要的个人信息或资料保存在自己的个人邮箱中。目前,基于网页页面的电子邮件(Webmail,简称网页邮件)在客户端是通过用账户/密码认证方式实现其访问控制服务。一旦用账户/密码信息泄露,则用户邮箱中的所有邮件信息将完全暴露在入非法用户眼中,包括一些重要的个人信息。Email (Email) is currently the most widely used application on the Internet. People not only use it for communication, but also often store some important personal information or materials in their personal mailboxes. At present, the webpage-based email (Webmail, referred to as webmail) implements its access control service through account/password authentication on the client side. Once the user account/password information is leaked, all email information in the user mailbox will be completely exposed to illegal users, including some important personal information.

如图1,现有的邮件加密系统主要考虑邮件传输过程中的信息保密性,即在电子邮件通信中发信人发送邮件时对邮件信息进行加密,接收人在收到邮件后再对邮件进行解密。这种方法不但需要系统支持标准的邮件安全通信协议(如S/MIME,OpenPGP),而且采用对称密码、公钥密码和哈希密码相结合的混合密码体制来实现。因此,不但会受到一些密码算法的专利权限制,而且具有实现复杂、难度大的缺点;第二,现有的邮件加密系统的邮件加密和解密操作是分别由发信端和收信端完成的,即它们是分开操作的。因此,系统中进行邮件加密的时候,发送方需要获得接收方使用的正确公钥信息。因此需要进行密钥交换与管理,具有操作和使用不方便的缺点。第三,其密钥交换采用了基于PKI/CA的认证体系,必须依赖第三方机构,所以具有通用性不高的缺点。第四,由于现有的邮件加密系统的邮件加密操作是在发送端进行的,对接收端收到的邮件,则无法通过现有的邮件加密系统进行加密保护。第五,加密系统主要在邮件客户端中得到支持(Outlook S/MIME,PGP for Outlook,Gnupg with ThunderBird),现有的网页邮件系统自身并没有这方面的加密支持,即没有网页邮件系统自身提供这方面的加密服务,只是有些第三方开发者针对特定网页邮件系统或浏览器提供一些加密插件(如Gmail S/MIME;FireGPG),具有系统的安全性不高的缺点,因为这将影响网页邮件系统自身的安全性。第六,现有的网页邮件中,也无法实现对用户自身网页显示的邮件信息进行加密保护。As shown in Figure 1, the existing email encryption system mainly considers the confidentiality of information during email transmission, that is, the sender encrypts email information when sending emails in email communication, and the recipient decrypts emails after receiving them. . This method not only requires the system to support standard email security communication protocols (such as S/MIME, OpenPGP), but also uses a hybrid cryptographic system that combines symmetric cryptography, public key cryptography and hash cryptography. Therefore, not only will it be limited by the patent rights of some cryptographic algorithms, but it also has the disadvantages of complex and difficult implementation; second, the email encryption and decryption operations of the existing email encryption system are completed by the sending end and the receiving end respectively , that is, they operate separately. Therefore, when encrypting emails in the system, the sender needs to obtain the correct public key information used by the receiver. Therefore, key exchange and management are required, which has the disadvantage of inconvenient operation and use. Third, its key exchange uses a PKI/CA-based authentication system, which must rely on a third-party organization, so it has the disadvantage of low versatility. Fourth, since the email encryption operation of the existing email encryption system is performed at the sending end, the emails received at the receiving end cannot be encrypted and protected by the existing email encryption system. Fifth, the encryption system is mainly supported in the mail client (Outlook S/MIME, PGP for Outlook, Gnupg with ThunderBird), the existing web mail system itself does not have encryption support in this regard, that is, no web mail system itself provides The encryption service in this aspect is just that some third-party developers provide some encryption plug-ins (such as Gmail S/MIME; FireGPG) for specific webmail systems or browsers, which have the disadvantage of low system security, because this will affect webmail The security of the system itself. Sixth, in the existing web mail, it is also impossible to encrypt and protect the mail information displayed on the user's own web page.

现有的网页邮件信息加密的方法主要有如下两种:There are two main methods for encrypting existing web mail information:

1)账户/口令认证方法1) Account/password authentication method

身份认证作为信息安全的第一道防线,它通常采用各种认证技术,对信息操作中所涉及到的各方进行身份鉴别,防止非法用户对数据信息的非法操作。身份认证主要通过下面三种基本途径之一或其组合来实现:①用户所知,即个人所知道的或掌握的知识,如账户/密码。②用户所有,即个人所拥有的东西,如磁卡、条码卡、IC卡或智能令牌等各种智能卡。③用户个人特征,即用户所具有的个人生物特性,如指纹、掌纹、声纹、脸形、DNA、视网膜等等。其中,基于账户/密码的身份认证技术因其简单、易用,得到了广泛的使用。它,是基于“用户所知(what you know)”的验证手段。每个用户的账户/密码信息由用户自己设定的,只有用户自己才知道。只要能够正确输入账户/密码,系统就认为操作者就是合法用户,允许其对系统资源进行操作。图2显示了基于账户/密码的身份认证基本原理。As the first line of defense for information security, identity authentication usually uses various authentication technologies to identify the identities of all parties involved in information operations and prevent illegal users from illegally operating data information. Identity authentication is mainly realized through one or a combination of the following three basic approaches: ①User knowledge, that is, knowledge known or mastered by individuals, such as account/password. ②Owned by users, that is, things owned by individuals, such as various smart cards such as magnetic cards, barcode cards, IC cards, or smart tokens. ③User personal characteristics, that is, the personal biological characteristics of the user, such as fingerprints, palmprints, voiceprints, face shapes, DNA, retina, etc. Among them, the identity authentication technology based on account/password has been widely used because of its simplicity and ease of use. It is a verification method based on "what you know". The account/password information of each user is set by the user, and only the user knows it. As long as the account/password can be entered correctly, the system considers the operator to be a legitimate user and allows him to operate system resources. Figure 2 shows the basic principle of account/password-based identity authentication.

从图2中可以看出,在身份认证过程中,当计算机系统收到用户输入的账户/密码信息时,计算机系统将根据账户进行从系统的账户/密码信息表中查询该账户所对应的密码信息。然后将该密码信息与用户输入的密码信息进行比较。如果它们一致,则认为该用户是合法用户,身份认证通过。如果它们不一致,那么认为该用户不是合法用户,无法通过身份认证。It can be seen from Figure 2 that during the identity authentication process, when the computer system receives the account/password information entered by the user, the computer system will query the password corresponding to the account from the account/password information table of the system according to the account. information. The password information is then compared with the password information entered by the user. If they are consistent, the user is considered to be a legitimate user, and the identity authentication is passed. If they are inconsistent, the user is deemed not to be a legitimate user and cannot be authenticated.

(2)安全邮件通信协议(2) Secure mail communication protocol

保证电子邮件的安全常用到两种端到端的安全技术主要是PGP(PrettyGood Privacy)和S/MIME(Secure Multi-Part Intermail Mail Extension)。它们的主要功能就是身份的认证和传输数据的加密。其中,PGP是20世纪80年代中期Hil Zimmermann提出的方案。PGP(Pretty Good Privacy)美国Phil Zimmermann发明的,它最初是一个软件加密程序,用户可以使用它在不安全的通信链路上创建安全的消息和通信,例如电子邮件。PGP使用各种形式的加密方法,它用一种简单的包格式组合消息以提供简单、高效的安全机制,使得消息在互联网或者其他网络上安全地传送。PGP应用程序的一个特点是它的速度快,效率高;另一个显著特点就是其可移植性出色,它可以在多种操作平台上运行等,因此PGP成为当前流行的电子邮件公钥加密软件包。Two commonly used end-to-end security technologies are PGP (Pretty Good Privacy) and S/MIME (Secure Multi-Part Intermail Mail Extension). Their main functions are identity authentication and encryption of transmitted data. Among them, PGP is the scheme proposed by Hil Zimmermann in the mid-1980s. PGP (Pretty Good Privacy) Invented by Phil Zimmermann in the United States, it was originally a software encryption program that users could use to create secure messages and communications over insecure communication links, such as e-mail. PGP uses various forms of encryption methods. It combines messages in a simple packet format to provide a simple and efficient security mechanism, enabling messages to be transmitted securely on the Internet or other networks. One of the characteristics of the PGP application program is its fast speed and high efficiency; another notable feature is its excellent portability, it can run on a variety of operating platforms, etc., so PGP has become the current popular email public key encryption software package .

S/MIME是一个新的邮件安全通信协议,它是从PEM(PrivacyEnhanced Mail)和MIME(Internet邮件的附件标准)发展而来的。同PGP一样,S/MIME也利用单向散列算法和公钥与私钥的加密体系。但它与PGP主要有两点不同:它的认证机制依赖于层次结构的证书认证机构,所有下一级的组织和个人的证书由上一级的组织负责认证,而最上一级的组织(根证书)之间相互认证,整个信任关系基本是树状的,这就是所谓的Treeof Trust。还有,S/MIME将信件内容加密签名后作为特殊的附件传送,它的证书格式采用X.509,但与一般浏览器网上使用的SSL证书有一定差异。国内众多的认证机构基本都提供一种叫“安全电子邮件证书”的服务,其技术对应的就是S/MIME技术,平台使用的基本上是美国Versign的。主要提供商有北京的天威诚信(http://www.itrus.com.cn/)和TrustAsia上海(http://www.trustasia.com.cn/),它们一个是Versign的中国区合作伙伴,一个是Versign亚太区分支机构。S/MIME is a new mail security communication protocol, which is developed from PEM (Privacy Enhanced Mail) and MIME (Internet mail attachment standard). Like PGP, S/MIME also uses a one-way hash algorithm and an encryption system of public and private keys. However, it differs from PGP in two main points: its authentication mechanism relies on a hierarchical certificate certification authority, and the certificates of all lower-level organizations and individuals are certified by the upper-level organization, while the upper-level organization (root Certificates) are mutually authenticated, and the entire trust relationship is basically a tree, which is the so-called Treeof Trust. In addition, S/MIME encrypts and signs the content of the letter and sends it as a special attachment. Its certificate format adopts X.509, but it is different from the SSL certificate used by general browsers on the Internet. Many certification agencies in China basically provide a service called "secure e-mail certificate". Its technology corresponds to S/MIME technology, and the platform used is basically Versign in the United States. The main providers are Beijing Tianwei Chengxin (http://www.itrus.com.cn/) and TrustAsia Shanghai (http://www.trustasia.com.cn/), one of them is Versign's partner in China , one is Versign Asia-Pacific branch.

网页邮件机密性保护目前主要通过以下几种方式来处理:(1)S/MIME协议和树状结构的第三方PKI/CA公钥认证系统实现对发送邮件的加密和签名;(2)PGP协议和网状结构对等认证实现对发送邮件的加密和签名;(3)通过第三方插件/模块增加对网页邮件在发送/接收时的邮件内容的加密保护。然而上述方式存在不同的缺点:方式(1)要求S/MIME的公钥保存在数字证书中,并且由第三方公认的机构CA中心负责生成和签发,认证机制依赖于层次结构的证书认证机构,所有下一级的组织和个人的证书由上一级的组织负责认证,而最上一级的组织(根证书)之间相互认证,整个信任关系基本是树状的,这就是所谓的Tree of Trust,而作为密钥认证机构,CA中心不仅要求使用者提交诸如身份证、电话号码之类的个人身份证明,还按时限收取数字证书的使用费,对于普通用户来说无疑是一个巨大的障碍,而每次使用证书时必须到CA中心验证,也对用户的使用体验造成不利影响,此外,大量证书(公钥)的管理也成为令CA中心头疼的问题,同时基于S/MIME的邮件系统只能对发送的电子邮件信息实施保护,无法对接受的电子邮件进行加密保护;方式(2)与S/MIME的公钥管理机制不同,PGP发展了一种从人与人之间相互信任的模型传递公钥的手段,这种使用私人方式的密钥转介,更能反映出人们自然的社会交往,而且人们也能自由地选择信任的人来介绍,但是由于信任的对象是个体的人,不是公共权威机构,因此其公钥的安全性低于S/MIME,此外PGP同样存在密钥交换和管理等复杂的操作问题,同时和S/MIME一样,PGP也只支持邮件系统发送端的邮件保护,对接收端的邮件不支持;方式(3)在网页邮件上采用第三方插件存在网页邮件系统自身的安全性问题。At present, the confidentiality protection of webpage emails is mainly handled through the following methods: (1) S/MIME protocol and third-party PKI/CA public key authentication system with tree structure to realize the encryption and signature of sent emails; (2) PGP protocol It realizes the encryption and signature of sent emails through peer-to-peer authentication with mesh structure; (3) Increases the encryption protection of email content when sending/receiving web emails through third-party plug-ins/modules. However, the above methods have different disadvantages: method (1) requires the public key of S/MIME to be stored in the digital certificate, and a third-party recognized organization CA center is responsible for generating and issuing it, and the authentication mechanism depends on the hierarchical certificate certification authority. The certificates of all lower-level organizations and individuals are certified by the upper-level organization, and the top-level organizations (root certificates) are mutually authenticated. The entire trust relationship is basically a tree, which is the so-called Tree of Trust. , as a key certification authority, the CA center not only requires users to submit personal identification certificates such as ID cards and phone numbers, but also charges digital certificate usage fees according to a time limit, which is undoubtedly a huge obstacle for ordinary users. Every time you use a certificate, you must go to the CA center for verification, which also adversely affects the user experience. In addition, the management of a large number of certificates (public keys) has also become a headache for the CA center. At the same time, the mail system based on S/MIME only It can protect the sent e-mail information, but cannot encrypt and protect the received e-mail; the method (2) is different from the public key management mechanism of S/MIME, and PGP has developed a model of mutual trust between people The means of transferring public keys, this kind of private key referral, can better reflect people's natural social interactions, and people can freely choose trusted people to introduce, but because the object of trust is an individual person, It is not a public authority, so the security of its public key is lower than that of S/MIME. In addition, PGP also has complex operational problems such as key exchange and management. At the same time, like S/MIME, PGP only supports mail protection at the sending end of the mail system. , does not support the mail at the receiving end; method (3) using a third-party plug-in on the web mail has security problems in the web mail system itself.

发明内容Contents of the invention

本发明的目的提供一种安全性高的网页邮件信息加密的方法。The object of the present invention is to provide a method for encrypting web mail information with high security.

为达到上述目的,本发明采用如下技术方案:一种网页邮件信息加密的方法,其加密步骤包括:In order to achieve the above object, the present invention adopts the following technical solutions: a method for encrypting webpage mail information, the encryption step comprising:

S1当用户在网页邮件系统中通过用户登录认证后,获取邮件服务器中用户的所有邮件;S1 After the user passes the user login authentication in the web mail system, obtain all the mails of the user in the mail server;

S2读取本地的加密邮件记录;S2 reads the local encrypted email records;

S3接着,网页邮件系统将从邮件服务器读取的每一封邮件与加密邮件记录进行比较,如果发现某邮件有在加密邮件记录中,则对该邮件在“邮件列表”网页页面中显示的信息内容进行加密处理;否则不对该邮件的“邮件列表”网页页面中显示的信息内容进行处理;S3 Next, the web mail system compares each mail read from the mail server with the encrypted mail record, and if it is found that a certain mail is in the encrypted mail record, the information displayed on the "mail list" web page of the mail The content is encrypted; otherwise, the content of the information displayed in the "mailing list" web page of the email will not be processed;

S4然后,网页邮件系统根据处理后的“邮件列表”的数据生成静态的“邮件列表”网页页面,并将该页面传给用户的浏览器显示;对于未加密的邮件,将显示其“邮件列表”的明文信息;而对于已加密的邮件将显示“邮件列表”的密文信息;S4 Then, the webmail system generates a static "mailing list" web page according to the data of the processed "mailing list", and passes the page to the user's browser for display; for unencrypted mail, its "mailing list" will be displayed ”; for encrypted emails, the ciphertext information of “mailing list” will be displayed;

S5如果用户需要对“邮件列表”中的明文邮件进行加密操作,则在“邮件列表”网页页面中点击与此对应的加密操作控件,并设置加密口令;S5 If the user needs to encrypt the plaintext mail in the "mailing list", click the corresponding encryption operation control in the "mailing list" web page, and set the encryption password;

S6网页邮件系统记录用户选定加密邮件的特征值和设置的加密口令,即“加密邮件记录”,并回到步骤S1刷新网页邮件系统的“邮件列表”显示网页页面,以显示加密后的“邮件列表”信息。S6 web mail system records the feature value of encrypted mail selected by the user and the encrypted password of setting, i.e. "encrypted mail record", and returns to step S1 to refresh the "mail list" of web mail system to display the web page, to show the encrypted "mail list" mailing list" information.

本发明优点是:Advantage of the present invention is:

本发明提出的方法能实现对用户网页显示的邮件信息的加密保护,解决了对已收邮件的保密性问题。在网页邮件加密系统中实现采用基于口令的加解密保护,可以不依赖复杂的密码体制,不受限于密码算法专利,不需要复杂的密钥交换和管理和不依赖第三方的认证机构。由于重要信息往往不是需要经常访问或浏览的,因此采用口令的加密保护具有操作简单,使用方便的优点,而且,可以防止非法用户解密读取邮件信息。同时邮件加密和解密操作都是由收信人完成,具有操作方便的优点。另外本发明采用动态加解密的机制,具有加解密速度快的特点,并通过将加密系统内嵌于网页邮件系统中,能和网页邮件系统无缝结合,使系统的整体性和安全性大大提高。The method proposed by the invention can realize the encrypted protection of the mail information displayed on the user's webpage, and solve the confidentiality problem of the received mail. Implementing password-based encryption and decryption protection in the web mail encryption system does not rely on complex cryptographic systems, is not limited to cryptographic algorithm patents, does not require complex key exchange and management, and does not rely on third-party certification agencies. Because important information often does not need to be accessed or browsed frequently, the encrypted protection with password has the advantages of simple operation and convenient use, and can prevent illegal users from decrypting and reading mail information. At the same time, the mail encryption and decryption operations are all completed by the recipient, which has the advantage of convenient operation. In addition, the present invention adopts a dynamic encryption and decryption mechanism, which has the characteristics of fast encryption and decryption speed, and by embedding the encryption system in the web mail system, it can be seamlessly combined with the web mail system, so that the integrity and security of the system are greatly improved .

附图说明Description of drawings

下面结合附图及实施例对本发明作进一步描述:The present invention will be further described below in conjunction with accompanying drawing and embodiment:

图1为网页邮件系统的拓扑图。Figure 1 is a topological diagram of the web mail system.

图2为现有的电子邮件加解密的流程图。Fig. 2 is a flow chart of existing email encryption and decryption.

图3为本发明的加密步骤的流程图。Fig. 3 is a flowchart of the encryption steps of the present invention.

图4为本发明的解密步骤的流程图。Fig. 4 is a flowchart of the decryption steps of the present invention.

具体实施方式Detailed ways

实施例:本发明提供了一种对网页邮件(Webmail)的邮件内容实施加密保护的具体实施例,其用于解决网页邮件的邮件内容以明文显示而出现的信息保密问题,其方法具体如下:Embodiment: the present invention provides a kind of specific embodiment that the mail content of web mail (Webmail) is encrypted and protected, and it is used to solve the information confidentiality problem that the mail content of web mail is shown with clear text and occurs, and its method is specifically as follows:

1.加密步骤1. Encryption steps

从图3中我们可以看出,网页邮件的加密过程及其显示执行步骤如下:From Figure 3, we can see that the encryption process of webmail and its display execution steps are as follows:

S1当用户在网页邮件系统中通过用户登录认证后,首先网页邮件系统(MUA)读取邮件信息,即从邮件服务器通过邮件通信协议,如POP3,IMAP等通信协议,但不限于此,获取邮件服务器中用户的所有邮件,其中邮件服务器为任意的第三方独立的邮件服务器。S1 After the user passes the user login authentication in the web mail system, first the web mail system (MUA) reads the mail information, that is, from the mail server through the mail communication protocol, such as POP3, IMAP and other communication protocols, but not limited to this, to obtain the mail All mails of users in the server, where the mail server is any third-party independent mail server.

S2读取本地的加密邮件记录,即从数据库或文件中读取加密邮件的特征值(ID),该特征值可以是/包括邮件头中符合RFC822/MIME规范的“X-ID”,或“X-Message”等字段,也可以是用户自定义的特征值邮件头信息字段。加密邮件记录在网页邮件系统中采用如数据库或文件等方式进行存储和读取,但可以不限于此,即可以以各种方式进行存储和读取。同时加密邮件记录可采用加密方式进行存储,提高安全性。加密邮件记录在网页邮件系统中实现,相对于邮件服务器,它是属于本地。S2 reads the local encrypted mail record, that is, reads the characteristic value (ID) of the encrypted mail from the database or file. The characteristic value can be/include the "X-ID" in the mail header conforming to the RFC822/MIME specification, or " X-Message" and other fields, or user-defined feature value mail header information fields. Encrypted email records are stored and read in the webmail system using methods such as databases or files, but not limited thereto, that is, they can be stored and read in various ways. At the same time, encrypted email records can be stored in an encrypted manner to improve security. Encrypted mail records are implemented in the web mail system, which is local to the mail server.

S3接着,网页邮件系统将从邮件服务器读取的每一封邮件的特征值与加密邮件记录进行比较,如果发现该邮件的特征值有在加密邮件记录中,则对该邮件在“邮件列表”页面中显示的信息内容进行加密处理,而加密处理方式可以是简单的替代或置换,如用户“*”替代,或者采用现代密码算法进行加密保护。否则,不对该邮件的邮件列表显示内容进行处理,其中“邮件列表”至少包括邮件主题名称、邮件来源、邮件到达时间等项目。S3 Next, the webmail system compares the characteristic value of each mail read from the mail server with the encrypted mail record, if it is found that the characteristic value of the mail is in the encrypted mail record, the mail will be listed in the "mail list" The information content displayed on the page is encrypted, and the encryption method can be simple replacement or replacement, such as user "*" replacement, or modern cryptographic algorithms for encryption protection. Otherwise, do not process the mailing list display content of the mail, wherein the "mailing list" includes at least the subject name of the mail, the source of the mail, the arrival time of the mail and other items.

S4然后,网页邮件根据处理后的“邮件列表”的数据生成静态的“邮件列表”网页(Web)页面,并将该页面传给用户的浏览器显示。这时,用户将在“邮件列表”网页页面中看到以下内容:对于未加密的邮件,将显示其列表的明文信息;对于已加密的邮件将显示其列表的密文信息。用户对邮件的浏览可以通过任意的浏览器查看,如IE,Firefox等,但不限于此。S4 Then, the webmail generates a static "mailing list" webpage (Web) page according to the processed "mailing list" data, and transmits the page to the user's browser for display. At this time, the user will see the following content on the "mailing list" web page: for unencrypted mail, the plaintext information of the list will be displayed; for encrypted mail, the ciphertext information of the list will be displayed. Users can view emails through any browser, such as IE, Firefox, etc., but not limited thereto.

S5如果用户需要对“邮件列表”中的明文邮件进行加密操作,则在“邮件列表”网页页面中点击与此对应的加密操作控件,并设置加密口令。S5 If the user needs to encrypt the plaintext emails in the "mailing list", click the corresponding encryption operation control on the "mailing list" webpage, and set an encryption password.

S6网页邮件系统记录用户选定加密的特征值和设置的加密口令,即“加密邮件记录”。“加密邮件记录”可以在网页邮件系统中采用如数据库或文件等进行存储和读取,但可以不限于此,即可以以各种方式进行存储,另外“加密邮件记录”可以采用加密方式进行存储,提高安全性。为了安全考虑,还可以将加密口令信息加密,如采用散列函数MD5或SHA1进行加密,但不限于此。然后,回到步骤S1刷新网页邮件的“邮件列表”网页显示页面,即可显示加密后的邮件列表信息。The S6 web mail system records the encrypted feature value selected by the user and the encrypted password set, that is, "encrypted mail record". "Encrypted email records" can be stored and read in the webmail system, such as databases or files, but not limited to this, that is, they can be stored in various ways, and "encrypted email records" can be stored in an encrypted manner , improve security. For security considerations, the encrypted password information may also be encrypted, for example, using a hash function MD5 or SHA1 for encryption, but not limited thereto. Then, go back to step S1 to refresh the "mailing list" webpage display page of the webmail, and then the encrypted mailing list information can be displayed.

S7如果用户需要显示邮件的具体内容,在“邮件列表”网页页面中点击该邮件的链接,进入该邮件的“邮件内容”网页页面,其中“邮件内容”包括“邮件列表”中所有的项目、和邮件具体正文项目或附件项目。S7 If the user needs to display the specific content of the mail, click the link of the mail in the "mail list" web page to enter the "mail content" web page of the mail, wherein the "mail content" includes all items in the "mail list", and mail specific body items or attachment items.

S8网页邮件系统从邮件服务器中读取用户选择的邮件,即当用户进入该邮件的“邮件内容”网页页面时,网页邮件系统将从邮件服务器读取该邮件的内容,通信方式可以采用POP3/IMAP协议,但不限于此。The S8 web mail system reads the mail selected by the user from the mail server, that is, when the user enters the "mail content" web page of the mail, the web mail system will read the content of the mail from the mail server, and the communication method can be POP3/ IMAP protocol, but not limited to it.

S9网页邮件系统读取加密邮件记录,其中网页邮件读取的“加密邮件记录”信息是指加密邮件的特征值,该特征值可以是/包括邮件头中符合RFC822/MIME规范的“X-ID”,或“X-Message”等字段,也可以是用户自定义的特征值邮件头信息字段。另外,“加密邮件记录”可以在网页邮件系统中采用如数据库或文件等进行存储和读取,但可以不限于此,即可以以各种方式进行存储和读取。另外“加密邮件记录”可以采用加密方式进行存储,提高安全性。The S9 webmail system reads encrypted email records, where the "encrypted email record" information read by webmail refers to the characteristic value of encrypted emails, which can be/include the "X-ID" in the mail header that complies with the RFC822/MIME specification ", or "X-Message" and other fields, and can also be user-defined feature value mail header information fields. In addition, the "encrypted email record" can be stored and read in a web mail system such as a database or a file, but it is not limited thereto, that is, it can be stored and read in various ways. In addition, "encrypted email records" can be stored in an encrypted manner to improve security.

S10接着,将从用户选择显示的邮件的特征值与加密邮件记录进行比较,如果发现该邮件的特征值有在加密邮件记录中,则执行步骤S11;如用户选择的邮件不在加密邮件记录中,则执行步骤S12。S10 then compares the feature value of the mail selected by the user with the encrypted mail record, if it is found that the feature value of the mail is in the encrypted mail record, then step S11 is performed; if the mail selected by the user is not in the encrypted mail record, Then step S12 is executed.

S11网页邮件系统根据加密处理后的邮件内容信息生成静态“邮件内容”网页页面,并将该网页页面传给用户的浏览器显示;用户将在“邮件内容”网页页面中只能看到加密后的邮件信息;对该邮件在“邮件内容”页面中显示的信息内容进行加密处理,该加密处理方式可以是简单的替代或置换,如用户“*”替代,或者采用现代密码算法进行加密。网页邮件系统将根据判断结果对特征值为“加密”的邮件的邮件内容信息进行动态加密处理。The S11 web mail system generates a static "email content" web page based on the encrypted mail content information, and transmits the web page to the user's browser for display; the user will only see the encrypted content in the "email content" web page The email information of the email; the information displayed in the "mail content" page of the email is encrypted. The encryption method can be simple replacement or replacement, such as user "*" replacement, or encryption using modern cryptographic algorithms. The web mail system will dynamically encrypt the mail content information of the mail whose feature value is "encrypted" according to the judgment result.

S12不对该邮件的“邮件内容”进行处理,并执行步骤S13;S12 does not process the "mail content" of the email, and executes step S13;

S13网页邮件系统根据邮件明文内容信息生成静态“邮件内容”网页页面,并将该网页页面传给用户的浏览器显示,用户将在“邮件内容”网页页面中看到明文邮件信息;用户对邮件的浏览可以通过任意的浏览器查看,如IE,Firefox等,但不限于此。S13 The web mail system generates a static "email content" web page according to the plain text content information of the mail, and transmits the web page to the user's browser for display, and the user will see the plain text mail information in the "mail content" web page; The browsing can be viewed through any browser, such as IE, Firefox, etc., but not limited thereto.

S14如果用户需要对“邮件内容”网页页面看到的明文邮件进行加密操作,则在“邮件内容”网页页面中点击与此对应的加密操作控件,并设置加密口令;S14 If the user needs to encrypt the plaintext mail seen on the "mail content" web page, click the corresponding encryption operation control in the "mail content" web page, and set an encryption password;

S15网页邮件系统记录用户选定加密的邮件的特征值和设置的加密口令。为了安全考虑,还可以将口令信息加密,如采用散列函数MD5或SHA1进行加密,但不限于此。用户对邮件的浏览可以通过任意的浏览器查看,如IE,Firefox等,但不限于此。用户通过“邮件内容”网页页面对明文邮件进行加密操作时,需要记录该加密邮件的特征值和用户设置的加密口令信息,即加密邮件记录。加密邮件记录可以在网页邮件中采用如数据库或文件等进行存储和读取,但可以不限于此,即可以以各种方式进行存储。另外加密邮件记录可以采用加密方式进行存储,提高安全性。在完成加密操作后,通过刷新“邮件内容”网页页面即可显示加密后的邮件内容信息。The S15 web mail system records the characteristic value of the encrypted mail selected by the user and the encrypted password set. For security considerations, the password information may also be encrypted, for example, using a hash function MD5 or SHA1 for encryption, but not limited thereto. Users can view emails through any browser, such as IE, Firefox, etc., but not limited thereto. When a user encrypts a plaintext email through the "Mail Content" webpage, it needs to record the characteristic value of the encrypted email and the encrypted password information set by the user, that is, the encrypted email record. Encrypted email records can be stored and read in webmails such as databases or files, but not limited thereto, that is, can be stored in various ways. In addition, encrypted email records can be stored in an encrypted manner to improve security. After the encryption operation is completed, the encrypted mail content information can be displayed by refreshing the "Mail Content" web page.

2.解密步骤2. Decryption steps

从图4中我们可以看出,网页邮件的解密过程及其显示执行步骤如下:From Figure 4, we can see that the decryption process of webmail and its display execution steps are as follows:

S16当用户在网页邮件系统中通过用户登录认证后,网页邮件系统从邮件服务器获取用户的所有邮件,即从邮件服务器通过邮件通信协议,如POP3,IMAP等,并存放在一个临时变量中;S16 After the user passes the user login authentication in the web mail system, the web mail system obtains all mails of the user from the mail server, that is, from the mail server through mail communication protocols, such as POP3, IMAP, etc., and store them in a temporary variable;

S17读取加密邮件记录,即从数据库或文件中读取加密邮件的特征值;本步骤中网页邮件系统读取的“加密邮件记录”信息是指加密邮件的特征值,该特征值可以是包括邮件头中符合RFC822/MIME规范的“X-ID”,或“X-Message”等字段,也可以是用户自定义的特征值邮件头信息字段。另外,“加密邮件记录”可以在网页邮件系统中采用如数据库或文件等方式进行存储和读取,但可以不限于此,即可以以各种方式进行存储和读取。另外“加密邮件记录”可以采用加密方式进行存储,提高安全性。S17 reads the encrypted mail record, that is, reads the characteristic value of the encrypted mail from the database or the file; the "encrypted mail record" information read by the webmail system in this step refers to the characteristic value of the encrypted mail, and this characteristic value can include The "X-ID" or "X-Message" field in the mail header conforming to the RFC822/MIME specification can also be a user-defined characteristic value mail header information field. In addition, the "encrypted email record" can be stored and read in the webmail system by means such as database or file, but it is not limited thereto, that is, it can be stored and read in various ways. In addition, "encrypted email records" can be stored in an encrypted manner to improve security.

S18接着,将从邮件服务器读取的每一封邮件与加密邮件记录进行比较,如果发现该邮件不在加密邮件记录中,则不对该邮件的邮件列表显示内容进行处理;否则,如果发现该邮件有在加密邮件记录中,则读取临时解密邮件记录,并判断该邮件是否属于临时解密的邮件;如果该邮件属于“临时解密”的邮件,则同样不对该邮件的邮件列表显示内容进行处理;否则,对该邮件在“邮件列表”网页页面中显示的信息内容进行加密处理;其中加密处理方式可以是简单的替代/置换,如用户“*”替代,或者采用现代密码算法进行加密。网页邮件系统将从邮件服务器中获取的邮件中提取每封邮件的特征值,并将每封邮件的特征值与“加密邮件记录”进行比较,从而判断该邮件是否属于加密的邮件。网页邮件系统读取的“临时解密邮件记录”信息是指临时邮件的特征值,该特征值可以是/包括邮件头中符合RFC822/MIME规范的“X-ID”,或“X-Message”等字段,也可以是用户自定义的特征值邮件头信息字段。另外,“临时解密邮件记录”可以在网页邮件中采用如Session等方式进行存储和读取,但可以不限于此,即可以以各种方式进行存储和读取。另外“临时解密邮件记录”可以采用加密方式进行存储,提高安全性。网页邮件系统将从加密邮件中提取其邮件的特征值,并将其特征值与“临时邮件记录”进行比较,从而判断该邮件是否属于临时的解密邮件。网页邮件系统将根据判断结果对属性为“加密”且“非临时解密”的邮件的列表信息进行“动态”加密处理。S18 then compares each mail that is read from the mail server with the encrypted mail record, if it is found that the mail is not in the encrypted mail record, then the mailing list display content of the mail is not processed; otherwise, if it is found that the mail has In the encrypted mail record, read the temporarily decrypted mail record, and judge whether the mail belongs to the temporarily decrypted mail; if the mail belongs to the "temporarily decrypted" mail, the content displayed in the mail list of the mail will not be processed; otherwise , to encrypt the content of the email displayed on the "mailing list" webpage; the encryption method can be simple replacement/replacement, such as user "*" replacement, or encryption using modern cryptographic algorithms. The web mail system will extract the characteristic value of each mail from the mail obtained from the mail server, and compare the characteristic value of each mail with the "encrypted mail record", so as to determine whether the mail belongs to encrypted mail. The "temporary decrypted mail record" information read by the web mail system refers to the characteristic value of the temporary mail, which can be/include the "X-ID" or "X-Message" in the mail header that conforms to the RFC822/MIME specification, etc. field, or a user-defined characteristic value mail header information field. In addition, the "temporarily decrypted email record" can be stored and read in the web mail using methods such as Session, but it is not limited thereto, that is, it can be stored and read in various ways. In addition, the "temporary decryption mail record" can be stored in an encrypted manner to improve security. The webmail system will extract the characteristic value of the email from the encrypted email, and compare its characteristic value with the "temporary email record", so as to determine whether the email is a temporary decrypted email. The web mail system will perform "dynamic" encryption processing on the list information of the mail whose attributes are "encrypted" and "non-temporary decryption" according to the judgment result.

S19然后,网页邮件系统根据处理后的“邮件列表”的数据生成静态的“邮件列表”网页页面,并将该页面传给用户的浏览器显示:对于未加密的邮件,将显示邮件列表的明文信息;对于加密的邮件,如果该邮件临时解密,则显示邮件列表的明文信息,否则将显示邮件列表的密文信息;用户对邮件的浏览可以通过任意的浏览器查看,如IE,Firefox等,但不限于此。网页邮件系统将根据处理结果生成静态“邮件列表”网页页面,并将该页面传输给用户浏览器显示。S19 Then, the webmail system generates a static "mailing list" web page according to the data of the processed "mailing list", and passes the page to the user's browser to display: for unencrypted mail, the plaintext of the mailing list will be displayed information; for encrypted mail, if the mail is temporarily decrypted, the plaintext information of the mailing list will be displayed, otherwise the ciphertext information of the mailing list will be displayed; the user can view the mail through any browser, such as IE, Firefox, etc. But not limited to this. The web mail system will generate a static "mailing list" web page according to the processing results, and transmit this page to the user's browser for display.

S20如果用户需要对“邮件列表”中的密文邮件进行解密操作,则用户在“邮件列表”网页页面中点击与此对应的解密操作控件,并输入解密口令和选择解密方式,其中解密方式包括“临时解密”和“永久解密”两种;用户可以在“邮件列表”网页页面中对任意的加密邮件分别进行解密操作。用户在“邮件列表”网页页面中对加密邮件进行解密操作时,需要输入解密口令,并选择解密方式:“临时解密”或者“永久解密”。S20 If the user needs to decrypt the ciphertext mail in the "mailing list", the user clicks the corresponding decryption operation control on the "mailing list" web page, and enters the decryption password and selects the decryption method, wherein the decryption method includes: There are two types of "temporary decryption" and "permanent decryption"; users can decrypt arbitrary encrypted emails in the "mailing list" web page. When users decrypt encrypted emails on the "mailing list" web page, they need to enter the decryption password and choose a decryption method: "temporary decryption" or "permanent decryption".

S21网页邮件系统读取加密邮件记录,并与用户输入的口令进行比较,如果口令不正确,则终止解密操作;如果口令正确,则判断是否属于“临时解密”还是“永久解密”,如果是临时解密,在临时解密记录中存储该邮件的特征值;如果是永久解密,则删除加密邮件记录,并回到步骤S16刷新网页邮件的“邮件列表”网页显示页面;用户对邮件的浏览可以通过任意的浏览器查看,如IE,Firefox等,但不限于此。网页邮件系统在用户通过“邮件列表”网页页面对加密邮件进行解密操作时,需要先读取“加密邮件记录”中用户选择的邮件的口令信息,并将它与用户输入的口令信息进行比较。网页邮件系统根据口令比较结果确定是否需要进行解密操作。如果口令不正确,则禁止解密操作;如果口令正确,则根据用户选择的解密方式进行不同的操作:对于“临时解密”,需要在“临时解密邮件记录”中记录该临时解密邮件的特征值信息,而“临时解密邮件记录”可以在网页邮件系统中采用如Session等方式进行存储和读取,但可以不限于此,即可以以各种方式进行存储,另外“临时解密邮件记录”可以采用加密方式进行存储,提高安全性;对于“永久解密”,需要在“加密邮件记录”中删除该解密邮件的特征值信息,“加密邮件记录”可以在网页邮件系统中采用如数据库或文件等方式进行存储和读取,但可以不限于此,即可以以各种方式进行存储,另外“加密邮件记录”可以采用加密方式进行存储,提高安全性。网页邮件系统在完成解密操作后,通过刷新“邮件列表”网页页面即可显示解密后的邮件列表信息。S21 The web mail system reads the encrypted mail record and compares it with the password entered by the user. If the password is incorrect, the decryption operation is terminated; if the password is correct, it judges whether it belongs to "temporary decryption" or "permanent decryption". Decryption, store the characteristic value of this mail in the temporary decryption record; If it is permanent decryption, then delete the encrypted mail record, and get back to step S16 to refresh the "mail list" webpage display page of web mail; the user can browse the mail through any Browser viewing, such as IE, Firefox, etc., but not limited to this. When a user decrypts an encrypted email through the "mail list" web page, the webmail system needs to read the password information of the email selected by the user in the "encrypted email record" and compare it with the password information entered by the user. The web mail system determines whether to perform decryption according to the password comparison result. If the password is incorrect, the decryption operation is prohibited; if the password is correct, different operations will be performed according to the decryption method selected by the user: for "temporary decryption", the feature value information of the temporarily decrypted email needs to be recorded in the "temporary decrypted email record" , and the "temporary decrypted email record" can be stored and read in the webmail system by using methods such as Session, but it is not limited to this, that is, it can be stored in various ways, and the "temporary decrypted email record" can be encrypted For "permanent decryption", it is necessary to delete the characteristic value information of the decrypted email in the "encrypted email record". Storage and reading, but not limited to this, that is, it can be stored in various ways. In addition, "encrypted email records" can be stored in an encrypted way to improve security. After the webmail system completes the decryption operation, the decrypted mailing list information can be displayed by refreshing the "mailing list" web page.

S22如果用户需要查显示邮件的具体信息内容,在“邮件列表”网页页面中点击该邮件的链接;S22 If the user needs to check the specific information content of the displayed email, click the link of the email in the "mail list" web page;

S23网页邮件系统从邮件服务器中读取用户选择邮件的邮件内容,用户进入该邮件的“邮件内容”网页页面时,网页邮件系统将从邮件服务器读取该邮件的邮件内容,通信方式可以采用POP3/IMAP协议,但不限于此。S23 web mail system reads the mail content of the mail selected by the user from the mail server. When the user enters the "mail content" web page of the mail, the web mail system will read the mail content of the mail from the mail server. The communication method can be POP3 /IMAP protocol, but not limited to this.

S24网页邮件系统读取加密邮件记录;其主要是读取加密邮件的特征值,该特征值可以是包括邮件头中符合RFC822/MIME规范的“X-ID”,或“X-Message”等在内的字段信息,也可以是用户自定义的特征值邮件头信息字段。另外,“加密邮件记录”可以在网页邮件系统中采用如数据库或文件等进行存储和读取,但可以不限于此,即可以以各种方式进行存储和读取。另外“加密邮件记录”可以采用加密方式进行存储,提高安全性。The S24 web mail system reads encrypted mail records; it mainly reads the characteristic value of encrypted mail, which can include "X-ID" or "X-Message" in the mail header conforming to the RFC822/MIME specification, etc. The field information in the field can also be a user-defined characteristic value mail header information field. In addition, the "encrypted email record" can be stored and read in a web mail system such as a database or a file, but it is not limited thereto, that is, it can be stored and read in various ways. In addition, "encrypted email records" can be stored in an encrypted manner to improve security.

S25接着,网页邮件系统将从用户选择查看的邮件与加密邮件记录进行比较,如果该邮件不在加密邮件记录中,则不对该邮件在“邮件内容”页面中显示的信息内容进行处理,并执行步骤S26,如果该邮件在加密邮件记录中,则执行步骤S27;S25 Then, the web mail system compares the mail selected by the user with the encrypted mail record, if the mail is not in the encrypted mail record, then the information content displayed in the "mail content" page of the mail is not processed, and the steps are executed S26, if the email is in the encrypted email record, execute step S27;

S26网页邮件系统根据邮件明文内容信息,生成静态解密“邮件内容”网页页面,并将该页面传给用户的浏览器显示,直至结束;S26 The web mail system generates a statically decrypted "email content" web page based on the plain text content information of the mail, and sends the page to the user's browser for display until the end;

S27先读取临时解密邮件记录,并判断该邮件是否属于临时解密的邮件;如果该邮件属于“临时解密”的邮件,则同样不对该邮件的显示内容进行处理,如果该邮件不属于“临时解密”的邮件,则执行步骤S28;网页邮件系统将根据判断结果对属性为“加密”的邮件读取其临时解密特征值,将临时解密特征值与“临时解密邮件记录”进行比较,从而判断该邮件是否属于临时解密的邮件。网页邮件系统将根据判断结果对属性为“临时解密”的邮件的邮件内容信息进行不做加密处理。S27 first reads the temporarily decrypted email record, and judges whether the email belongs to the temporarily decrypted email; if the email belongs to the "temporarily decrypted" email, then the display content of the email is not processed, ", execute step S28; the webmail system will read the temporary decryption characteristic value of the mail whose attribute is "encrypted" according to the judgment result, and compare the temporary decryption characteristic value with the "temporary decryption mail record", thereby judging the Whether the message is a temporary decrypted message. The webmail system will not encrypt the email content information of the email whose attribute is "temporarily decrypted" according to the judgment result.

S28网页邮件系统根据加密处理后的邮件内容信息,生成静态密文“邮件内容”网页页面,并将该页面传给用户的浏览器显示,用户将在“邮件内容”网页页面中将看到加密后的邮件信息;对该邮件在“邮件内容”页面中显示的信息/内容进行加密处理(加密处理方式可以是简单的替代或置换,如用户“*”替代,或者采用现代密码算法进行加密,但不限于此)。网页邮件系统对属性为“加密”且“非临时解密”的邮件的邮件内容信息进行“动态/实时”加密处理。The S28 webmail system generates the static ciphertext "email content" web page according to the encrypted mail content information, and transmits the page to the user's browser for display, and the user will see the encrypted content in the "email content" web page. Encrypt the information/content displayed on the "Mail Content" page (the encryption method can be simple replacement or replacement, such as user "*" replacement, or use modern cryptographic algorithms to encrypt, but not limited to this). The webmail system performs "dynamic/real-time" encryption processing on the email content information of emails whose attributes are "encrypted" and "non-temporary decryption".

S29用户对“邮件内容”网页页面看到的密文邮件进行解密操作时,则在“邮件内容”网页页面中点击与此对应的解密操作控件,并输入解密口令和选择解密方式,其中解密方式至少包括“临时解密”和“永久解密”两种;用户可以在加密“邮件内容”网页页面中对该邮件进行解密操作。S29 When the user decrypts the ciphertext mail seen on the "Mail Content" web page, he clicks on the corresponding decryption operation control on the "Mail Content" web page, and enters the decryption password and selects the decryption method, where the decryption method is At least include "temporary decryption" and "permanent decryption"; users can decrypt the email in the encrypted "mail content" web page.

S30网页邮件系统读取加密邮件记录,并与用户所输入的口令进行比较,如果口令不正确,则终止解密操作;如果口令正确,则判断是否属于“临时解密”还是“永久解密”;如果是临时解密,则在临时解密邮件记录中存储该邮件的特征值;如果是永久解密,则删除加密邮件记录,且解密之后回到步骤23。用户对邮件的浏览可以通过任意的浏览器查看,如IE,Firefox等,但不限于此。网页邮件系统在用户通过“邮件内容”网页页面对加密邮件进行解密操作时,需要先读取“加密邮件记录”中该加密邮件的口令信息,并将用户输入的口令信息与口令进行比较。网页邮件系统根据口令比较结果确定是否需要进行解密操作,如果口令不正确,则禁止解密操作。如果口令正确,则根据用户选择的解密方式进行不同的操作。对于“临时解密”,需要在“临时解密邮件记录”中记录该临时解密邮件的特征值信息。“临时解密邮件记录”可以在网页邮件系统中采用如Session等方式进行存储和读取,但可以不限于此,即可以以各种方式进行存储。另外“临时解密邮件记录”可以采用加密方式进行存储,提高安全性;对于“永久解密”,需要在“加密邮件记录”中删除该解密邮件的特征值信息。“加密邮件记录”可以在网页邮件系统中采用如数据库或文件等方式进行存储和读取,但可以不限于此,即可以以各种方式进行存储。另外“加密邮件记录”可以采用加密方式进行存储,提高安全性。另外在完成解密操作后,通过刷新“邮件内容”网页页面即可显示解密后的邮件内容信息。The S30 web mail system reads the encrypted mail record and compares it with the password entered by the user. If the password is incorrect, the decryption operation is terminated; if the password is correct, it is judged whether it belongs to "temporary decryption" or "permanent decryption"; For temporary decryption, store the feature value of the email in the temporarily decrypted email record; if it is permanent decryption, delete the encrypted email record, and return to step 23 after decryption. Users can view emails through any browser, such as IE, Firefox, etc., but not limited thereto. When the user decrypts the encrypted email through the "Mail Content" web page, the webmail system needs to read the password information of the encrypted email in the "Encrypted Email Record" first, and compare the password information entered by the user with the password. The webmail system determines whether decryption is required according to the password comparison result, and if the password is incorrect, the decryption is prohibited. If the password is correct, perform different operations according to the decryption method selected by the user. For "temporary decryption", it is necessary to record the feature value information of the temporarily decrypted email in the "temporary decrypted email record". "Temporarily decrypted mail records" can be stored and read in the web mail system by means such as Session, but not limited thereto, that is, can be stored in various ways. In addition, the "temporary decrypted email record" can be stored in an encrypted manner to improve security; for "permanent decryption", the characteristic value information of the decrypted email needs to be deleted in the "encrypted email record". The "encrypted email record" can be stored and read in the webmail system, such as a database or a file, but it is not limited thereto, that is, it can be stored in various ways. In addition, "encrypted email records" can be stored in an encrypted manner to improve security. In addition, after the decryption operation is completed, the decrypted email content information can be displayed by refreshing the "mail content" web page.

本发明通过根据用户指定的邮件在网页邮件系统实现对邮件的加密显示,实现对邮件的加密保护,并通过口令机制实现对加密邮件的解密认证,从而实现对加密邮件的身份认证,防止非法用户查看加密邮件的邮件列表及其邮件内容。The present invention realizes the encrypted display of mails in the web mail system according to the mails specified by the user, realizes the encrypted protection of mails, and realizes the decryption and authentication of encrypted mails through a password mechanism, thereby realizing the identity authentication of encrypted mails and preventing illegal users View the mailing list of encrypted messages and their message content.

当然上述实施例只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人能够了解本发明的内容并据以实施,并不能以此限制本发明的保护范围。凡根据本发明主要技术方案的精神实质所做的等效变换或修饰,都应涵盖在本发明的保护范围之内。Of course, the above-mentioned embodiments are only to illustrate the technical conception and characteristics of the present invention, and its purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly, and not to limit the protection scope of the present invention. All equivalent changes or modifications made according to the spirit of the main technical solutions of the present invention shall fall within the protection scope of the present invention.

Claims (5)

1.一种网页邮件信息加密的方法,其特征在于:其加密步骤包括:1. A method for web mail information encryption, characterized in that: its encryption steps include: S1当用户在网页邮件系统中通过用户登录认证后,获取邮件服务器中用户的所有邮件;S1 After the user passes the user login authentication in the web mail system, obtain all the mails of the user in the mail server; S2读取本地的加密邮件记录;S2 reads the local encrypted email records; S3接着,网页邮件系统将从邮件服务器读取的每一封邮件与加密邮件记录进行比较,如果发现某邮件有在加密邮件记录中,则对该邮件在“邮件列表”网页页面中显示的信息内容进行加密处理;否则不对该邮件的“邮件列表”网页页面中显示的信息内容进行处理;S3 Next, the web mail system compares each mail read from the mail server with the encrypted mail record, and if it is found that a certain mail is in the encrypted mail record, the information displayed on the "mail list" web page of the mail The content is encrypted; otherwise, the content of the information displayed in the "mailing list" web page of the email will not be processed; S4然后,网页邮件系统根据处理后的“邮件列表”的数据生成静态的“邮件列表”网页页面,并将该页面传给用户的浏览器显示;对于未加密的邮件,将显示其“邮件列表”的明文信息;而对于已加密的邮件将显示“邮件列表”的密文信息;S4 Then, the webmail system generates a static "mailing list" web page according to the data of the processed "mailing list", and passes the page to the user's browser for display; for unencrypted mail, its "mailing list" will be displayed ”; for encrypted emails, the ciphertext information of “mailing list” will be displayed; S5如果用户需要对“邮件列表”中的明文邮件进行加密操作,则在“邮件列表”网页页面中点击与此对应的加密操作控件,并设置加密口令;S5 If the user needs to encrypt the plaintext mail in the "mailing list", click the corresponding encryption operation control in the "mailing list" web page, and set the encryption password; S6网页邮件系统记录用户选定加密邮件的特征值和设置的加密口令,即“加密邮件记录”,并回到步骤S1刷新网页邮件系统的“邮件列表”显示网页页面,以显示加密后的“邮件列表”信息。S6 web mail system records the feature value of encrypted mail selected by the user and the encrypted password of setting, i.e. "encrypted mail record", and returns to step S1 to refresh the "mail list" of web mail system to display the web page, to show the encrypted "mail list" mailing list" information. 2.如权利要求1所述的方法,其特征在于:其加密步骤进一步包括:2. The method according to claim 1, characterized in that: its encryption step further comprises: S7如果用户需要查显示邮件的具体信息内容,在“邮件列表”网页页面中点击该邮件的链接,进入该邮件的“邮件内容”网页页面;S7 If the user needs to check the specific information content of the displayed mail, click the link of the mail in the "mail list" web page to enter the "mail content" web page of the mail; S8网页邮件系统从邮件服务器中读取用户选择的邮件,即当用户进入该邮件的“邮件内容”网页页面时,网页邮件系统将从邮件服务器读取该邮件的内容;The S8 web mail system reads the mail selected by the user from the mail server, that is, when the user enters the "mail content" web page of the mail, the web mail system will read the content of the mail from the mail server; S9网页邮件系统读取加密邮件记录,其中网页邮件系统读取的“加密邮件记录”信息是指加密邮件的特征值;S9 The webmail system reads encrypted email records, wherein the "encrypted email record" information read by the webmail system refers to the characteristic value of encrypted emails; S10接着,将从用户选择显示的邮件与加密邮件记录进行比较,如果发现该邮件有在加密邮件记录中,则执行步骤S11;如用户选择的邮件不在加密邮件记录中,则执行步骤S12;S10 then, comparing the mail selected and displayed by the user with the encrypted mail record, if it is found that the mail is in the encrypted mail record, then perform step S11; if the mail selected by the user is not in the encrypted mail record, then perform step S12; S11网页邮件系统根据加密处理后的邮件内容信息生成静态“邮件内容”网页页面,并将该网页页面传给用户的浏览器显示;用户将在“邮件内容”网页页面中只能看到加密后的邮件信息;The S11 web mail system generates a static "email content" web page based on the encrypted mail content information, and transmits the web page to the user's browser for display; the user will only see the encrypted content in the "email content" web page email information; S12不对该邮件的“邮件内容”进行处理,并执行步骤S13;S12 does not process the "mail content" of the email, and executes step S13; S13网页邮件系统根据邮件明文内容信息生成静态“邮件内容”网页页面,并将该网页页面传给用户的浏览器显示,用户将在“邮件内容”网页页面中看到明文邮件信息;S13 The web mail system generates a static "mail content" web page according to the plain text content information of the mail, and transmits the web page to the user's browser for display, and the user will see the plain text mail information in the "mail content" web page; S14如果用户需要对“邮件内容”网页页面看到的明文邮件进行加密操作,则在“邮件内容”网页页面中点击与此对应的加密操作控件,并设置加密口令;S14 If the user needs to encrypt the plaintext mail seen on the "mail content" web page, click the corresponding encryption operation control in the "mail content" web page, and set an encryption password; S15网页邮件系统记录用户选定加密的邮件特征值和设置的加密口令。The S15 web mail system records the characteristic value of encrypted mail selected by the user and the encrypted password set. 3.根据权利要求1所述的方法,其特征在于:其解密步骤包括:3. The method according to claim 1, characterized in that: its decryption step comprises: S16当用户在网页邮件系统中通过用户登录认证后,网页邮件系统从邮件服务器获取用户的所有邮件,并存放在一个临时变量中;S16 After the user passes the user login authentication in the web mail system, the web mail system obtains all mails of the user from the mail server and stores them in a temporary variable; S17读取加密邮件记录,即从数据库或文件中读取加密邮件的特征值;S17 reads the encrypted email record, that is, reads the characteristic value of the encrypted email from the database or file; S18接着,将从邮件服务器读取的每一封邮件与加密邮件记录进行比较,如果发现该邮件不在加密邮件记录中,则不对该邮件的邮件列表显示内容进行处理;否则,如果发现该邮件有在加密邮件记录中,则读取临时解密邮件记录,并判断该邮件是否属于临时解密的邮件;如果该邮件属于“临时解密”的邮件,则同样不对该邮件的邮件列表显示内容进行处理;否则,对该邮件在“邮件列表”网页页面中显示的信息内容进行加密处理;S18 then compares each mail that is read from the mail server with the encrypted mail record, if it is found that the mail is not in the encrypted mail record, then the mailing list display content of the mail is not processed; otherwise, if it is found that the mail has In the encrypted mail record, read the temporarily decrypted mail record, and judge whether the mail belongs to the temporarily decrypted mail; if the mail belongs to the "temporarily decrypted" mail, the content displayed in the mail list of the mail will not be processed; otherwise , to encrypt the content of the message displayed on the "mailing list" web page; S19然后,网页邮件系统根据处理后的“邮件列表”的数据生成静态的“邮件列表”网页页面,并将该页面传给用户的浏览器显示:对于未加密的邮件,将显示邮件列表的明文信息;对于加密的邮件,如果该邮件临时解密,则显示邮件列表的明文信息,否则将显示邮件列表的密文信息;S19 Then, the webmail system generates a static "mailing list" web page according to the data of the processed "mailing list", and passes the page to the user's browser to display: for unencrypted mail, the plaintext of the mailing list will be displayed information; for encrypted emails, if the email is temporarily decrypted, the plaintext information of the mailing list will be displayed, otherwise the ciphertext information of the mailing list will be displayed; S20如果用户需要对“邮件列表”中的密文邮件进行解密操作,则用户在“邮件列表”网页页面中点击与此对应的解密操作控件,并输入解密口令和选择解密方式,其中解密方式包括“临时解密”和“永久解密”两种;S20 If the user needs to decrypt the ciphertext mail in the "mailing list", the user clicks the corresponding decryption operation control on the "mailing list" web page, and enters the decryption password and selects the decryption method, wherein the decryption method includes: "Temporary decryption" and "permanent decryption"; S21网页邮件系统读取加密邮件记录,并与用户输入的口令进行比较,如果口令不正确,则终止解密操作;如果口令正确,则判断是否属于“临时解密”还是“永久解密”,如果是临时解密,在临时解密记录中存储该邮件的特征值;如果是永久解密,则删除加密邮件记录,并回到步骤S16刷新网页邮件的“邮件列表”网页显示页面;S21 The web mail system reads the encrypted mail record and compares it with the password entered by the user. If the password is incorrect, the decryption operation is terminated; if the password is correct, it judges whether it belongs to "temporary decryption" or "permanent decryption". Decryption, store the characteristic value of this mail in the temporary decryption record; If it is permanent decryption, then delete the encrypted mail record, and get back to step S16 to refresh the "mail list" web page display page of web mail; 4.如权利要求1所述的方法,其特征在于:其解密步骤进一步包括:4. The method according to claim 1, characterized in that: its decryption step further comprises: S22如果用户需要查显示邮件的具体信息内容,在“邮件列表”网页页面中点击该邮件的链接;S22 If the user needs to check the specific information content of the displayed email, click the link of the email in the "mail list" web page; S23网页邮件系统从邮件服务器中读取用户所选择邮件的邮件内容;S23 The web mail system reads the mail content of the mail selected by the user from the mail server; S24网页邮件系统读取加密邮件记录;S24 web mail system reads encrypted mail records; S25接着,网页邮件系统将从用户选择查看的邮件与加密邮件记录进行比较,如果该邮件不在加密邮件记录中,则不对该邮件在“邮件内容”页面中显示的信息内容进行处理,并执行步骤S26,如果该邮件在加密邮件记录中,则执行步骤S27;S25 Then, the web mail system compares the mail selected by the user with the encrypted mail record, if the mail is not in the encrypted mail record, then the information content displayed in the "mail content" page of the mail is not processed, and the steps are executed S26, if the email is in the encrypted email record, execute step S27; S26网页邮件系统根据邮件明文内容信息,生成静态解密“邮件内容”网页页面,并将该页面传给用户的浏览器显示,直至结束;S26 The web mail system generates a statically decrypted "email content" web page based on the plain text content information of the mail, and sends the page to the user's browser for display until the end; S27先读取临时解密邮件记录,并判断该邮件是否属于临时解密的邮件;如果该邮件属于“临时解密”的邮件,则同样不对该邮件的显示内容进行处理,如果该邮件不属于“临时解密”的邮件,则执行步骤S28;S27 first reads the temporarily decrypted email record, and judges whether the email belongs to the temporarily decrypted email; if the email belongs to the "temporarily decrypted" email, then the display content of the email is not processed, ", execute step S28; S28网页邮件系统根据加密处理后的邮件内容信息,生成静态密文“邮件内容”网页页面,并将该页面传给用户的浏览器显示,用户将在“邮件内容”网页页面中将看到加密后的邮件信息;The S28 webmail system generates the static ciphertext "email content" web page according to the encrypted mail content information, and transmits the page to the user's browser for display, and the user will see the encrypted content in the "email content" web page. post mail message; S29用户对“邮件内容”网页页面看到的密文邮件进行解密操作时,则在“邮件内容”网页页面中点击与此对应的解密操作控件,并输入解密口令和选择解密方式,其中解密方式至少包括“临时解密”和“永久解密”两种;S29 When the user decrypts the ciphertext mail seen on the "Mail Content" web page, he clicks on the corresponding decryption operation control on the "Mail Content" web page, and enters the decryption password and selects the decryption method, where the decryption method is At least include "temporary decryption" and "permanent decryption"; S30网页邮件系统读取加密邮件记录,并与用户所输入的口令进行比较,如果口令不正确,则终止解密操作;如果口令正确,则判断是否属于“临时解密”还是“永久解密”;如果是临时解密,则在临时解密邮件记录中存储该邮件的特征值;如果是永久解密,则删除加密邮件记录,且解密之后回到步骤23。The S30 web mail system reads the encrypted mail record and compares it with the password entered by the user. If the password is incorrect, the decryption operation is terminated; if the password is correct, it is judged whether it belongs to "temporary decryption" or "permanent decryption"; For temporary decryption, store the feature value of the email in the temporarily decrypted email record; if it is permanent decryption, delete the encrypted email record, and return to step 23 after decryption. 5.如权利要求1所述的方法,其特征在于:其解密步骤进一步包括:所述的特征值至少包括邮件头中符合RFC822/MIME规范的“X-ID”或“X-Message”字段。5. The method according to claim 1, wherein the decryption step further comprises: said characteristic value at least includes the "X-ID" or "X-Message" field in the mail header conforming to the RFC822/MIME specification.
CN 201010598307 2010-12-21 2010-12-21 Method for encrypting webmail information Expired - Fee Related CN102055685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010598307 CN102055685B (en) 2010-12-21 2010-12-21 Method for encrypting webmail information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010598307 CN102055685B (en) 2010-12-21 2010-12-21 Method for encrypting webmail information

Publications (2)

Publication Number Publication Date
CN102055685A true CN102055685A (en) 2011-05-11
CN102055685B CN102055685B (en) 2013-02-13

Family

ID=43959631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010598307 Expired - Fee Related CN102055685B (en) 2010-12-21 2010-12-21 Method for encrypting webmail information

Country Status (1)

Country Link
CN (1) CN102055685B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188129A (en) * 2011-12-29 2013-07-03 盈世信息科技(北京)有限公司 E-mail encryption method, mail server and system
CN103532704A (en) * 2013-10-08 2014-01-22 武汉理工大学 E-mail IBE (identity based encryption) system aiming at OWA (outlook web access)
CN103580991A (en) * 2013-01-05 2014-02-12 网易(杭州)网络有限公司 Mail attachment uploading method and device
CN103906004A (en) * 2012-12-19 2014-07-02 上海晨兴希姆通电子科技有限公司 Mail server, mail sending end and mail sending and receiving method
CN104158725A (en) * 2014-08-22 2014-11-19 深圳市清时捷科技有限公司 Data management platform and data management method based on mail transmission
CN104270517A (en) * 2014-09-23 2015-01-07 中兴通讯股份有限公司 Information encryption method and mobile terminal
CN104734944A (en) * 2015-03-18 2015-06-24 重庆森格玛科技有限公司 Transmission method and device for electronic mail
CN107707456A (en) * 2017-09-25 2018-02-16 维沃移动通信有限公司 A kind of voting method and mobile terminal
CN113452687A (en) * 2021-06-24 2021-09-28 中电信量子科技有限公司 Method and system for encrypting sent mail based on quantum security key

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1201198A (en) * 1997-04-22 1998-12-09 夏普公司 data receiving device
JP2002373140A (en) * 2001-06-15 2002-12-26 Nec Corp Portable telephone device
CN101115020A (en) * 2006-07-25 2008-01-30 腾讯科技(深圳)有限公司 Secret mail protecting method and mail system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1201198A (en) * 1997-04-22 1998-12-09 夏普公司 data receiving device
JP2002373140A (en) * 2001-06-15 2002-12-26 Nec Corp Portable telephone device
CN101115020A (en) * 2006-07-25 2008-01-30 腾讯科技(深圳)有限公司 Secret mail protecting method and mail system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188129A (en) * 2011-12-29 2013-07-03 盈世信息科技(北京)有限公司 E-mail encryption method, mail server and system
CN103906004B (en) * 2012-12-19 2019-02-01 上海晨兴希姆通电子科技有限公司 Mail server, mail transmitting terminal and mail transmission/reception method
CN103906004A (en) * 2012-12-19 2014-07-02 上海晨兴希姆通电子科技有限公司 Mail server, mail sending end and mail sending and receiving method
CN103580991A (en) * 2013-01-05 2014-02-12 网易(杭州)网络有限公司 Mail attachment uploading method and device
CN103580991B (en) * 2013-01-05 2017-06-06 网易(杭州)网络有限公司 The method for uploading and equipment of a kind of Email attachment
CN103532704A (en) * 2013-10-08 2014-01-22 武汉理工大学 E-mail IBE (identity based encryption) system aiming at OWA (outlook web access)
CN103532704B (en) * 2013-10-08 2016-08-17 武汉理工大学 A kind of Email IBE encryption system for OWA
CN104158725A (en) * 2014-08-22 2014-11-19 深圳市清时捷科技有限公司 Data management platform and data management method based on mail transmission
CN104270517A (en) * 2014-09-23 2015-01-07 中兴通讯股份有限公司 Information encryption method and mobile terminal
CN104734944A (en) * 2015-03-18 2015-06-24 重庆森格玛科技有限公司 Transmission method and device for electronic mail
CN107707456A (en) * 2017-09-25 2018-02-16 维沃移动通信有限公司 A kind of voting method and mobile terminal
CN113452687A (en) * 2021-06-24 2021-09-28 中电信量子科技有限公司 Method and system for encrypting sent mail based on quantum security key
CN113452687B (en) * 2021-06-24 2022-12-09 中电信量子科技有限公司 Method and system for encrypting sent mail based on quantum security key

Also Published As

Publication number Publication date
CN102055685B (en) 2013-02-13

Similar Documents

Publication Publication Date Title
US10348670B2 (en) Secure electronic mail system
CN102055685B (en) Method for encrypting webmail information
US20220198049A1 (en) Blockchain-Based Secure Email System
CN101416467B (en) KEM-DEM encrypted electronic data communication system
US8688790B2 (en) Secure electronic mail system with for your eyes only features
CN101416458B (en) Electronic data communication system
JP7266536B2 (en) Encryption of cloud-based data
US20070174636A1 (en) Methods, systems, and apparatus for encrypting e-mail
US20090271627A1 (en) Secure Data Transmission
JP2011530248A (en) Method and apparatus for encrypted message exchange
US20130103944A1 (en) Hypertext Link Verification In Encrypted E-Mail For Mobile Devices
CN103078743B (en) E-mail IBE (Internet Booking Engine) encryption realizing method
US20080044023A1 (en) Secure Data Transmission
WO2018113708A1 (en) Mail sending, reading, and read control method, and apparatus for same
US20070288746A1 (en) Method of providing key containers
CN105187379B (en) Password based on multi-party mutual mistrust splits management method
TW201117041A (en) Mutual authentication method of external storage devices
Dumka et al. Taxonomy of E-Mail Security Protocol
Nourai et al. Securing email for the average users via a new architecture
US11736462B1 (en) Hybrid content protection architecture for email
Huo et al. A Secure Web Email System Based on IBC
Samardžić et al. Public key infrastructure and methods of e-mail protection
CN114553506A (en) Mail encryption method, system, equipment and storage medium based on cloud service
CN115720137A (en) A system, method and device for information management
Rehm et al. Mobile Encryption Gateway (MEG) for Email Encryption

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201222

Address after: No.13 caodang Road, Changshu City, Suzhou City, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: 215500 No. three, South 99 Ring Road, Jiangsu, Changshou City

Patentee before: CHANGSHU INSTITUTE OF TECHNOLOGY

TR01 Transfer of patent right
CP02 Change in the address of a patent holder

Address after: 215500 5th floor, building 4, 68 Lianfeng Road, Changfu street, Changshu City, Suzhou City, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: No.13 caodang Road, Changshu City, Suzhou City, Jiangsu Province

Patentee before: Changshu intellectual property operation center Co.,Ltd.

CP02 Change in the address of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130213

CF01 Termination of patent right due to non-payment of annual fee