CN109005105A - Record generation method, device and the storage medium of sender's location information mail - Google Patents
Record generation method, device and the storage medium of sender's location information mail Download PDFInfo
- Publication number
- CN109005105A CN109005105A CN201810809068.2A CN201810809068A CN109005105A CN 109005105 A CN109005105 A CN 109005105A CN 201810809068 A CN201810809068 A CN 201810809068A CN 109005105 A CN109005105 A CN 109005105A
- Authority
- CN
- China
- Prior art keywords
- location information
- signature
- current
- generation method
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/222—Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/42—Mailbox-related aspects, e.g. synchronisation of mailboxes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of generation methods for recording sender's location information mail, comprising the following steps: obtains equipment current location information as location information;The location information is added in the signed attribute of mail signature, and calculates the characteristic value of the signed attribute;It is signed by the signing certificate of the equipment to the characteristic value, generates signed data;Signature mail is generated according to the characteristic value and the signed data.The invention also discloses a kind of generating means for recording sender's location information mail and a kind of computer readable storage mediums.The present invention realizes the purpose for proving actual position information when Email senders send mail by the insertion position information in the signed attribute of signature mail.
Description
Technical field
The present invention relates to e-mail technique field more particularly to a kind of generation sides for recording sender's location information mail
Method, device and computer readable storage medium.
Background technique
With the development of communication technology, Email is also evolving, from the encryption of earliest plaintext mail till now
Mail, signature mail.User increasingly payes attention to the confidentiality and authenticity of Email.But ciphering signature only is carried out to mail
It can no longer meet the demand of people.Conventionally, as Email does not carry sender's geographical location information, because
This, actual position information or Email Sender's needs when e-mail recipient needs to learn that Email Sender sends mail
When proving position when oneself sending mail to e-mail recipient, existing email technology is unable to satisfy the demand of user.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of generation method, device and meters for recording sender's location information mail
Calculation machine readable storage medium storing program for executing, it is intended to realize the purpose for proving actual position information when Email senders send mail.
To achieve the above object, the present invention provides a kind of generation method for recording sender's location information mail, the note
The generation method of record sender's location information mail includes the following steps:
Equipment current location information is obtained as location information;
The location information is added in the signed attribute of mail signature, and calculates the feature of the signed attribute
Value;
It is signed by the signing certificate of the equipment to the characteristic value, generates signed data;
Signature mail is generated according to the characteristic value and the signed data.
Preferably, the acquisition equipment current location information includes: as the step of location information
When current system is android system and gets the positioning permission of the android system, pass through first
Set the current latitude and longitude information that manager class obtains the equipment;
The location information is determined according to the current latitude and longitude information.
Preferably, the acquisition equipment current location information includes: as the step of location information
When current system is iOS system and gets the positioning permission of the iOS system, pass through second position manager
Class obtains the current latitude and longitude information of the equipment;
The location information is determined according to the current latitude and longitude information.
Preferably, the acquisition equipment current location information includes: as the step of location information
Obtain the current IP address of third-party application data access authority or the equipment;
When getting the current IP address of third-party application data access authority or the equipment, third party is read
Using the current location information of preservation, or calculate the corresponding location information of the IP address;
Using the current location information or the corresponding location information of the IP address as the location information.
Preferably, the position adding method of the signature mail, further includes:
When receiving the signature mail, whether the signature for verifying the signature mail is effective;
When the signature of the signature mail is effective, the location information carried in the signature mail is parsed.
Preferably, whether effective step includes: the signature of the verifying signature mail
In the presence of the signing certificate of the signature, judge the signature time of the signature whether in the signing certificate
In permitted hours;
When the signature time is in the permitted hours, the cryptographic Hash of the signature mail original text is calculated;
When the original text cryptographic Hash is identical as the eap-message digest, the signature is decrypted according to the signing certificate;
When decrypted result is identical as the cryptographic Hash of the signed attribute, determine that the signature is effective.
Preferably, the step that the location information is added in the signed attribute of mail signature includes:
Determine respective items of the location information in the signed attribute;
The object identifier of the respective items is added, so that the third-party application of the receiving end of the signature mail passes through institute
It states object identifier and obtains the location information.
Preferably, after described the step of generating signature mail according to the characteristic value and the signed data, further includes:
According to the object identifier, the position carried in the signature mail is read by the third-party application
Information, and the location information is shown in map.
In addition, to achieve the above object, the present invention also provides a kind of generating means for recording sender's location information mail,
It is characterized in that, described device includes: memory, processor and is stored on the memory and can transport on the processor
Capable mail generates program, and the mail, which generates, realizes record sender as described above position when program is executed by the processor
The step of setting the generation method of information mail.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums, which is characterized in that institute
It states and is stored with mail generation program on computer readable storage medium, the mail is generated when program is executed by processor and realized such as
The step of generation method of upper record sender's location information mail.
Generation method, device and the computer for a kind of record sender location information mail that the embodiment of the present invention proposes can
Storage medium is read, is added to mail label as location information, and by the location information by obtaining equipment current location information
In the signed attribute of name, the characteristic value of the signed attribute is then calculated, and then pass through the signing certificate pair of the equipment
The characteristic value is signed, and signed data is generated, and finally generates signature mail according to the characteristic value and the signed data.
In this way, the purpose of the insertion position information in the signed attribute of signature mail is realized, so that solving the prior art can not
Again in Email the technical issues of the information of insertion position.
Detailed description of the invention
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the generation method first embodiment of present invention record sender's location information mail;
Fig. 3 is the flow diagram of the generation method second embodiment of present invention record sender's location information mail;
Fig. 4 is the flow diagram of the generation method 3rd embodiment of present invention record sender's location information mail;
Fig. 5 is the flow diagram of the generation method fourth embodiment of present invention record sender's location information mail;
Fig. 6 is the flow diagram of the 5th embodiment of generation method of present invention record sender's location information mail;
Fig. 7 is the flow diagram of the generation method sixth embodiment of present invention record sender's location information mail;
Fig. 8 is the flow diagram of the 7th embodiment of generation method of present invention record sender's location information mail;
Fig. 9 is the flow diagram of the 8th embodiment of generation method of present invention record sender's location information mail.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:
Equipment current location information is obtained as location information;
The location information is added in the signed attribute of mail signature, and calculates the feature of the signed attribute
Value;
It is signed by the signing certificate of the equipment to the characteristic value, generates signed data;
Signature mail is generated according to the characteristic value and the signed data
Since the prior art cannot achieve the location information of insertion sender in the e-mail.
The generation method for a kind of record sender location information mail that the embodiment of the present invention proposes, by obtaining mail hair
The current location information of equipment is sent, and the location information is inserted into the signed attribute of signature mail, to solve existing
Have technology can not in the e-mail insertion position information the technical issues of.
As shown in Figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention can be PC machine and/or intelligent mobile terminal etc..
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, and communication bus 1002, display 1003,
Network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.Storage
Device 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as disk
Memory.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium
Network communication module, Subscriber Interface Module SIM and mail generate program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client, and then realize
Pass through the purpose of client output data;And processor 1001 can be used for that the mail stored in memory 1005 is called to generate journey
Sequence, and execute following operation:
Equipment current location information is obtained as location information;
The location information is added in the signed attribute of mail signature, and calculates the feature of the signed attribute
Value;
It is signed by the signing certificate of the equipment to the characteristic value, generates signed data;
Signature mail is generated according to the characteristic value and the signed data
Further, processor 1001 can call the mail stored in memory 1005 to generate program, also execute following
Operation:
When current system is android system and gets the positioning permission of the android system, pass through first
Set the current latitude and longitude information that manager class obtains the equipment;
The location information is determined according to the current latitude and longitude information.
Further, processor 1001 can call the mail stored in memory 1005 to generate program, also execute following
Operation:
When current system is iOS system and gets the positioning permission of the iOS system, pass through second position manager
Class obtains the current latitude and longitude information of the equipment;
The location information is determined according to the current latitude and longitude information.
Further, processor 1001 can call the mail stored in memory 1005 to generate program, also execute following
Operation:
Obtain the current IP address of third-party application data access authority or the equipment;
When getting the current IP address of third-party application data access authority or the equipment, third party is read
Using the current location information of preservation, or calculate the corresponding location information of the IP address;
Using the current location information or the corresponding location information of the IP address as the location information.
Further, processor 1001 can call the mail stored in memory 1005 to generate program, also execute following
Operation:
When receiving the signature mail, whether the signature for verifying the signature mail is effective;
When the signature of the signature mail is effective, the location information carried in the signature mail is parsed.
Further, processor 1001 can call the mail stored in memory 1005 to generate program, also execute following
Operation:
In the presence of the signing certificate of the signature, judge the signature time of the signature whether in the signing certificate
In permitted hours;
When the signature time is in the permitted hours, the cryptographic Hash of the signature mail original text is calculated;
When the original text cryptographic Hash is identical as the eap-message digest, the signature is decrypted according to the signing certificate;
When decrypted result is identical as the cryptographic Hash of the signed attribute, determine the signature effectively then.
Further, processor 1001 can call the mail stored in memory 1005 to generate program, also execute following
Operation:
Determine respective items of the location information in the signed attribute;
The object identifier of the respective items is added, so that the third-party application of the receiving end of the signature mail passes through institute
It states object identifier and obtains the location information.
Further, processor 1001 can call the mail stored in memory 1005 to generate program, also execute following
Operation:
According to the object identifier, the position carried in the signature mail is read by the third-party application
Information, and the location information is shown in map.
Referring to Fig. 2, the present invention records the generation method first embodiment of sender's location information mail, and the record is sent
The generation method of person's location information mail includes:
Step S10, equipment current location information is obtained as location information;
In the present embodiment, equipment location information is first obtained as location information, wherein the location information directly passes through
Bottom obtains, and mail transmitting terminal customized can not be changed.
Specifically, when current system is android system, due to supporting to provide location-based service under Android platform
API (Application Programming Interface, application programming interface), thus can be transported in development process
With two objects of LocationManager (location manager) and LocationProviders (position supplier), equipment is obtained
Current location information.
Such as: first addition access location information permission android.permision.ACCESS_FINE_LOCATION,
Described in permission can be customized by the user switch, when user select close the permission when, output because can not obtain position believe
Cease and can not generate the prompt information of mail.When permission is opened, application program passes through LocationManager (location management
Device) class, the current location information (current latitude and longitude information) of equipment can be directly obtained.Then the location information is converted
For location information (latitude and longitude information is converted to the normal location informations such as corresponding country, region, street).
When current system is iOS system, since iOS system carries positioning function, import in the process of development
Behind CoreLocation (common location) library, can be used CLLocationManager (location manager of iOS system, i.e., it is described
Second position manager) obtain location information.
Such as: positioning permission is first obtained, wherein user can control whether to allow to weigh using the positioning by client
Limit.When user does not allow using the positioning permission, output can not generate the prompt of mail because that can not obtain location information
Otherwise information passes through the current location information of CLLocationManager type acquistion device, then converts the location information
For location information.
When current system is Windows system, first obtains the third party that current system carries and position application (for example, high
Moral map) data access authority or equipment current IP address, getting third-party application data access authority, or
When the current IP address of equipment, read the third-party application location information (for example, read Amap save " I
Position "), or by the current location information of IP address calculating equipment, then again using the location information as position
Information.
It should be noted that for ensure location information reliability, the location information obtain the step of bottom carry out,
And the location information got cannot be modified.
Step S20, the location information is added in the signed attribute of mail signature, and calculates the signed category
The characteristic value of property;
In the present embodiment, when getting location information, using the location information as the signed category of signature mail
Property in data item, be inserted into the signed attribute, then calculate the spy of the signed attribute of insertion position information
Value indicative.
Specifically, first creation signature mail main structure, wherein the main structure include sign mail data type and
Number data content, then creates the SignData (signed data) of data content, wherein the SignData includes signed data
Version number, signature algorithm, the content signed, the certificate chain of signing certificate, signing certificate CRL (Certificate
Revocation List, certificate revocation list) and SignerInfos (information of signer).The SignerInfos can
To include signer digital certificate mark, Hash (hash) algorithm of mail original text, signed attribute (SignedAttrs), label
Result and attribute of unsigning (UnSignedAttrs) after name algorithm, private key signature.Further, described signed is being generated
When affixing one's name to attribute, the signed attribute first calculates the cryptographic Hash of original text when generating, and then obtains the location information of equipment, will
The cryptographic Hash of the original text and the location information are encapsulated into the signed attribute.In addition, the signed attribute may be used also
To include signature algorithm, symmetric encipherment algorithm and the secret key cryptographic algorithm set etc. of signature time and signer support.
In addition, first determining the location information described when the location information to be inserted into the signed attribute
In signed attribute to item, and add the respective items object identifier (OID, Object Identifier, such as
The OID can be 1.3.6.1.4.1.50775.2.8).
After generating the signed attribute, calculate the characteristic value of the signed attribute, i.e., the described signed attribute
Cryptographic Hash, to be applicable in the signature private key of signer.
Step S30, it is signed by the signing certificate of the equipment to the characteristic value, generates signed data;
Step S40, signature mail is generated according to the characteristic value and the signed data.
In the present embodiment, it after by calculating the characteristic value for obtaining the signed attribute, is demonstrate,proved by the signature of equipment
Book signs to the characteristic value, generates signed data, is then based on the signature value and the signed data generates signature
Mail.
In the present embodiment, current location information is first obtained, the location information has then been inserted into signature mail
In signature attribute, signed data is generated, signature mail is finally generated according to the signed data, is achieved and produces carrying position
The mail of confidence breath, solving the prior art cannot achieve the technical issues of geographical location is added in mail.
Further, referring to Fig. 3, the present invention records the generation method second embodiment of sender's location information mail, base
In above-mentioned first embodiment, the step S10 includes:
Step S11, when current system is android system and gets the positioning permission of the android system, lead to
Cross the current latitude and longitude information that first position manager class obtains the equipment;
Step S12, the location information is determined according to the current latitude and longitude information.
In the present embodiment, when current system is android system, due to supporting to provide position under Android platform
The API (Application Programming Interface, application programming interface) of service, thus in development process
LocationManager (location manager) and two objects of LocationProviders (position supplier) can be used, are obtained
Take the current location information of equipment.
Such as: positioning permission android.permision.ACCESS_FINE_LOCATION is first obtained, wherein the power
Limit can be customized by the user switch, and when user selects to close the permission, output can not due to can not obtain location information
Generate the prompt information of mail.When permission is opened, application program, can by LocationManager (location manager) class
To be directly obtained the current location information (current latitude and longitude information) of equipment.Then the location information is converted into position letter
It ceases (latitude and longitude information is converted into the normal location informations such as corresponding country, region, street).
It should be noted that method of the present invention is at least suitable for Android, iOS and Windows system.
In the present embodiment, the positioning permission of system is first obtained, then obtains equipment current location information, and then determine institute
State location information, so that the reliability of the location information got improves.
Further, referring to Fig. 4, the present invention records the generation method 3rd embodiment of sender's location information mail, base
In above-mentioned first embodiment, the step S10 further include:
Step S13, when current system is iOS system and gets the positioning permission of the iOS system, pass through second
Set the current latitude and longitude information that manager class obtains the equipment;
Step S14, the location information is determined according to the current latitude and longitude information.
It should be noted that in the process of development, for different system (such as: android system, iOS system or
Windows system) use different location acquiring methods.It should be understood that when current system is iOS system, equipment peace
The position acquisition program of dress is necessarily the corresponding position acquisition program of iOS system.
Develop iOS system to program when, importing can be passed through by solving to obtain location information under iOS system
Behind CoreLocation (common location) library, using CLLocationManager (location manager of iOS system, i.e., described second
Location manager) obtain location information.
In the present embodiment, the positioning permission under iOS is first obtained, then according to the positioning authority acquiring location information,
And location information is determined according to the location information, the purpose for obtaining reliable location information under iOS system has been achieved, has mentioned
The high reliability of compatibility and location information.
Further, referring to Fig. 5, the present invention records the generation method fourth embodiment of sender's location information mail, base
In above-mentioned first embodiment, the step S10 further include:
Step S15, the current IP address of third-party application data access authority or the equipment is obtained;
In the present embodiment, when current system is Windows system, Windows system third-party application data are obtained
Access authority (for example, obtain access Amap data permission), or obtain equipment current IP address.
It should be noted that equipment third party data access authority and current IP address can be obtained simultaneously.
Step S16, it when getting the current IP address of third-party application data access authority or the equipment, reads
The current location information for taking third-party application to save, or calculate the corresponding location information of the IP address;
Step S17, believe using the current location information or the corresponding location information of the IP address as the position
Breath.
In the present embodiment, when getting the access authority of the third data, the number of the third-party application is read
According to determining current location information according to the data of the third-party application.For example, with reading the installed high moral of current system
The data of figure, wherein the data of the Amap may include " my position ", i.e. current location information.And then according to third
The location information of the determination of Fang Yingyong determines current device location information.
In the current IP address for getting equipment, the current location information of equipment is calculated according to the IP address, wherein
Equipment current location information is calculated according to IP address, the database of IP address corresponding address information can be pre-generated, then root
According to IP address querying positioning information in the database, it is also possible to inquire in third party database by network
The corresponding location information of the IP address.
And then by the corresponding location information of the IP address and it is described according to third-party application determine location information, as
Location information.
It should be noted that when, there are when locating module, can also directly pass through locating module under the Windows system
Obtain location information.
In the present embodiment, the access authority or IP address of third-party application data are first obtained, and then according to described the
The data or IP address of tripartite's application determine location information, have been achieved in equipment there is no when locating module, have obtained equipment
The purpose of current location information.
Further, referring to Fig. 6, the present invention records the 5th embodiment of generation method of sender's location information mail, base
In above-mentioned first to fourth embodiment, the step S20 further include:
Step S21, respective items of the location information in the signed attribute are determined;
Step S22, the object identifier of the respective items is added, so that the third party of the receiving end of the signature mail answers
The location information is obtained with by the object identifier.
In the present embodiment, the signed attribute may include the signature time, the encrypted certificate of signer, mail original text
Hash, data type, location information, signer support signature algorithm, symmetric encipherment algorithm and secret key cryptographic algorithm set
Deng.Therefore when being inserted into the location information, need to define an AIA (program source file format) ASN.1 (information
System network, information systems internetting) generate in structure include location information extension, OID can be
1.3.6.1.4.1.50775.2.8。
In the present embodiment, respective items of the location information in the signed attribute are first determined, institute is then added
The object identifier of correspondence is stated, third-party application any in this way can obtain the location information by the object identifier
Purpose, improve can the location information compatibility.
Further, referring to Fig. 7, the present invention records the generation method sixth embodiment of sender's location information mail, base
In the above-mentioned first to the 5th embodiment, the generation method of record sender's location information mail further include:
Step S50, when receiving the signature mail, whether the signature for verifying the signature mail is effective;
Step S60, when the signature of the signature mail is effective, the position letter carried in the signature mail is parsed
Breath.
In the present embodiment, when receiving mail, first judge whether the mail is signature mail.When the mail is
When signature mail, the signed data of the signature mail is obtained, and the label are verified according to the signed data of the signature mail
Whether the signature of name mail is effective.
When the signature is effective, determines that the location information is to be tampered, then parse the signature mail and carry
Signed data.
In the present embodiment, whether the signature of priori signed certificate name mail is effective, determines location information not when signing effective
It is tampered, and then parses the location information, so that the reliability of position information that recipient receives improves.
Further, referring to Fig. 8, the present invention records the 7th embodiment of generation method of sender's location information mail, base
In above-mentioned first to sixth embodiment, the step S50 includes:
Step S51, in the presence of the signing certificate of the signature, judge the signature time of the signature whether in the label
In the permitted hours of name certificate;
In the present embodiment, first judge that the signing certificate of the signature whether there is, in the presence of the signing certificate, sentence
Break the signature the signature time whether in the permitted hours of the signing certificate, otherwise, it is determined that the signature is invalid.
Specifically, the certificate chain of the signing certificate carried in the signature mail is obtained, and then according to the signing certificate
Certificate chain judge that the signing certificate whether there is.In the presence of the signing certificate, the effective of the signing certificate is obtained
The signature time in time (i.e. permitted hours) and the signed attribute, and judge the signature time whether described effective
In time.Otherwise, it is determined that the signature is invalid.
Step S52, when the signature time is in the permitted hours, the Hash of the signature mail original text is calculated
Value;
In the present embodiment, when the signature time is in the permitted hours, the textual content of the mail is obtained
With the hash algorithm of mail original text, and the cryptographic Hash of the mail original text is calculated according to the hash algorithm of the mail original text.And
Compare calculate the resulting original text cryptographic Hash whether with the Message Digest that carries in the signature mail (message is plucked
Will) whether identical.
When the signature time is not in the permitted hours, determine that the signature is invalid.
It should be noted that the component part that the Message Digest (eap-message digest) is signature mail is known normal
Know, repeats no more again.
Step S53, when the original text cryptographic Hash is identical as the eap-message digest, according to signing certificate decryption
Signature;
In the present embodiment, when the cryptographic Hash of the original text is identical as the eap-message digest, the signing certificate is obtained
Public key decryptions described in sign the signature (signature) of mail, and by decrypted result and signedAttributes (signed
Attribute) in cryptographic Hash comparison.
When the cryptographic Hash of the original text and the eap-message digest be not identical, determine that the signature is invalid.
Step S54, when decrypted result is identical as the cryptographic Hash of the signed attribute, determine that the signature is effective.
In the present embodiment, when decrypted result is identical as the cryptographic Hash in signedAttributes (signed attribute)
When, the fixed signature is effective.Otherwise, it is determined that the signature is invalid.
In the present embodiment, first judge that signing certificate whether there is, the signature time is judged in the presence of signing certificate whether
Effectively, when the time of signing is effective, judge whether original text cryptographic Hash is identical as the eap-message digest, when identical, judgement
Whether decrypted result is identical as cryptographic Hash, and then determines signature effectively when cryptographic Hash is identical, in this way by repeatedly determining, improves
The reliability of signature verification improves the authenticity of signature e-mail messages.
Further, referring to Fig. 9, the present invention records the 8th embodiment of generation method of sender's location information mail, base
After the above-mentioned first to the 7th embodiment, the step S60, further includes:
Step S70, it according to the object identifier, is read by the third-party application and to be carried in the signature mail
The location information, and the location information is shown in map.
In the present embodiment, when receiving the signature mail, and third-party application (it can be map class application, it is such as high
Moral map, Baidu map etc.) obtain it is described signature mail in signed attribute carry location information object identifier (example
Such as, ID:1.3.6.1.4.1.50775.2.8), then according to the object identifier, institute is obtained from the signed attribute
State location information.And the location information is shown in map.
It should be noted that when the location information type got is latitude and longitude information, by the location information on ground
Be converted into figure country, region and or the form in street show.
In the present embodiment, when receiving the signature mail for carrying location information, third-party application can be according to object mark
Know symbol and obtain the location information, and be shown in map, so that the location information can more intuitively be shown.
In addition, the embodiment of the present invention also proposes that a kind of generating means for recording sender's location information mail, feature exist
Include: memory, processor in, described device and is stored in the mail that can be run on the memory and on the processor
Program is generated, the mail, which generates, realizes record sender's location information postal as described above when program is executed by the processor
The step of generation method of part.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, which is characterized in that the computer can
It reads to be stored with mail generation program on storage medium, the mail generates when program is executed by processor and realizes such as above embodiments
The step of generation method of record sender's location information mail.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In computer readable storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can
To be mobile phone, computer or tablet computer etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of generation method for recording sender's location information mail, which is characterized in that record sender's location information
The generation method of mail the following steps are included:
Equipment current location information is obtained as location information;
The location information is added in the signed attribute of mail signature, and calculates the characteristic value of the signed attribute;
It is signed by the signing certificate of the equipment to the characteristic value, generates signed data;
Signature mail is generated according to the characteristic value and the signed data.
2. the generation method of record sender's location information mail as described in claim 1, which is characterized in that the acquisition is set
Include: as the step of location information for current location information
When current system is android system and gets the positioning permission of the android system, managed by first position
Reason device class obtains the current latitude and longitude information of the equipment;
The location information is determined according to the current latitude and longitude information.
3. the generation method of record sender's location information mail as described in claim 1, which is characterized in that the acquisition is set
Include: as the step of location information for current location information
When current system is iOS system and gets the positioning permission of the iOS system, obtained by second position manager class
Take the current latitude and longitude information of the equipment;
The location information is determined according to the current latitude and longitude information.
4. the generation method of record sender's location information mail as described in claim 1, which is characterized in that the acquisition is set
Include: as the step of location information for current location information
Obtain the current IP address of third-party application data access authority or the equipment;
When getting the current IP address of third-party application data access authority or the equipment, third-party application is read
The current location information of preservation, or calculate the corresponding location information of the IP address;
Using the current location information or the corresponding location information of the IP address as the location information.
5. the generation method of record sender's location information mail as described in claim 1, which is characterized in that it is described will be described
The step that location information is added in the signed attribute of mail signature includes:
Determine respective items of the location information in the signed attribute;
Add the object identifier of the respective items, for the signature mail receiving end third-party application by described right
As identifier obtains the location information.
6. the generation method of record sender's location information mail as claimed in claim 5, which is characterized in that the record hair
The generation method of the person's of sending location information mail, further includes:
When receiving the signature mail, whether the signature for verifying the signature mail is effective;
When the signature of the signature mail is effective, the location information carried in the signature mail is parsed.
7. the generation method of record sender's location information mail as claimed in claim 6, which is characterized in that the verifying institute
State signature mail signature whether effective step includes:
In the presence of the signing certificate of the signature, judge the signature signature the time whether the signing certificate license
In time;
When the signature time is in the permitted hours, the cryptographic Hash of the signature mail original text is calculated;
When the original text cryptographic Hash is identical as the eap-message digest, the signature is decrypted according to the signing certificate;
When decrypted result is identical as the cryptographic Hash of the signed attribute, determine that the signature is effective.
8. the generation method of record sender's location information mail as claimed in claim 6, which is characterized in that described to parse
After the step of location information carried in the signature mail, further includes:
According to the object identifier, the position carried in the signature mail is read by the third-party application and is believed
Breath, and the location information is shown in map.
9. a kind of generating means for recording sender's location information mail, which is characterized in that record sender's location information
The generating means of mail include: memory, processor and are stored on the memory and can run on the processor
Mail generates program, and the mail is generated when program is executed by the processor and realized as described in any one of claims 1 to 8
Record sender's location information mail generation method the step of.
10. a kind of computer readable storage medium, which is characterized in that it is raw to be stored with mail on the computer readable storage medium
At program, the mail generates and realizes that record described in any item of the claim 1 to 8 such as is sent when program is executed by processor
The step of generation method of person's location information mail.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810809068.2A CN109005105B (en) | 2018-07-20 | 2018-07-20 | Method and device for generating mail with recorded sender position information and storage medium |
PCT/CN2018/104852 WO2020015090A1 (en) | 2018-07-20 | 2018-09-10 | Method and device for generating mail recording position information of sender, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810809068.2A CN109005105B (en) | 2018-07-20 | 2018-07-20 | Method and device for generating mail with recorded sender position information and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005105A true CN109005105A (en) | 2018-12-14 |
CN109005105B CN109005105B (en) | 2021-12-14 |
Family
ID=64596668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810809068.2A Active CN109005105B (en) | 2018-07-20 | 2018-07-20 | Method and device for generating mail with recorded sender position information and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109005105B (en) |
WO (1) | WO2020015090A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110311904A (en) * | 2019-06-26 | 2019-10-08 | 沃通电子认证服务有限公司 | The Internet of Things means of communication, device, terminal and computer storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1402176A (en) * | 2001-08-21 | 2003-03-12 | 松下电器产业株式会社 | Data allocation method and system |
CN102025519A (en) * | 2009-09-22 | 2011-04-20 | 中国移动通信集团公司 | Mail proxy server, mail push system and method and mobile terminal |
CN102148770A (en) * | 2010-02-09 | 2011-08-10 | 宏碁股份有限公司 | Method and system for sharing moving path |
CN102655482A (en) * | 2011-12-26 | 2012-09-05 | 上海西默通信技术有限公司 | HTTP (hyper text transport protocol) protocol analysis based web E-mail recovering method |
US20130130721A1 (en) * | 2008-12-16 | 2013-05-23 | Lg Electronics Inc. | Mobile terminal and method of transferring or receiving data using the same |
CN104579924A (en) * | 2014-12-27 | 2015-04-29 | 北京奇虎科技有限公司 | Method for displaying email and email client |
CN106789585A (en) * | 2016-12-27 | 2017-05-31 | 沃通电子认证服务有限公司 | Can verify that Email sends the method and device of time |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413064A (en) * | 2010-09-25 | 2012-04-11 | 上海中标软件有限公司 | Browser control-based webmail signing encrypting method |
CN104159195A (en) * | 2014-08-06 | 2014-11-19 | 诚迈科技(南京)股份有限公司 | Device and method for automatically adding location information to short message |
CN107911225B (en) * | 2017-11-15 | 2021-01-19 | 李智虎 | Timestamp anti-counterfeiting method and device based on signature data chain |
-
2018
- 2018-07-20 CN CN201810809068.2A patent/CN109005105B/en active Active
- 2018-09-10 WO PCT/CN2018/104852 patent/WO2020015090A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1402176A (en) * | 2001-08-21 | 2003-03-12 | 松下电器产业株式会社 | Data allocation method and system |
US20130130721A1 (en) * | 2008-12-16 | 2013-05-23 | Lg Electronics Inc. | Mobile terminal and method of transferring or receiving data using the same |
CN102025519A (en) * | 2009-09-22 | 2011-04-20 | 中国移动通信集团公司 | Mail proxy server, mail push system and method and mobile terminal |
CN102148770A (en) * | 2010-02-09 | 2011-08-10 | 宏碁股份有限公司 | Method and system for sharing moving path |
CN102655482A (en) * | 2011-12-26 | 2012-09-05 | 上海西默通信技术有限公司 | HTTP (hyper text transport protocol) protocol analysis based web E-mail recovering method |
CN104579924A (en) * | 2014-12-27 | 2015-04-29 | 北京奇虎科技有限公司 | Method for displaying email and email client |
CN106789585A (en) * | 2016-12-27 | 2017-05-31 | 沃通电子认证服务有限公司 | Can verify that Email sends the method and device of time |
Non-Patent Citations (2)
Title |
---|
MEIJUAN YIN; JUNYONG LUO; DING CAO: "Automatically locating salutation and signature blocks in emails", 《2011 EIGHTH INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS AND KNOWLEDGE DISCOVERY (FSKD)》 * |
郑倩: "基于PKI技术的安全邮件系统的研究与实现", 《 中国优秀硕士论文电子期刊网》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110311904A (en) * | 2019-06-26 | 2019-10-08 | 沃通电子认证服务有限公司 | The Internet of Things means of communication, device, terminal and computer storage medium |
CN110311904B (en) * | 2019-06-26 | 2021-11-16 | 沃通电子认证服务有限公司 | Internet of things communication method, device, terminal and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109005105B (en) | 2021-12-14 |
WO2020015090A1 (en) | 2020-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20110231645A1 (en) | System and method to validate and authenticate digital data | |
US9590949B2 (en) | Confidential message exchange using benign, context-aware cover message generation | |
JP4444998B2 (en) | E-mail information management program, e-mail information management apparatus, and e-mail information management method | |
US10559049B2 (en) | Digital passport country entry stamp | |
CN108092779A (en) | A kind of method and device for realizing electronic signature | |
CN109741063A (en) | Digital signature method and device based on block chain | |
US20210211299A1 (en) | Generating electronic signatures | |
CN108022194A (en) | Law-enforcing recorder and its data safety processing method, server and system | |
CN109981287A (en) | A kind of code signature method and its storage medium | |
CN113961956B (en) | Method, device, equipment and medium for generating and applying labeled network information service | |
JP5934808B2 (en) | E-mail transmission proof method | |
JP2019510314A (en) | Message counterfeit prevention implementation method and device | |
CN104168117B (en) | A kind of speech digit endorsement method | |
CN110493011A (en) | Certificate authority management method and device based on block chain | |
CN112906067B (en) | Block chain data preservation method based on e-mail transmission mode | |
CN108989055A (en) | The signature and encryption method, device and storage medium of compatible files in different types | |
CN109005105A (en) | Record generation method, device and the storage medium of sender's location information mail | |
CN111770081A (en) | Role-based authentication method for accessing confidential files in big data | |
US12137174B2 (en) | Computer-readable recording medium storing information processing program, information processing apparatus, and system | |
JP2002229451A (en) | Data creation time guarantee system, data creation time guarantee method, and data creation time guarantee program | |
KR20090027556A (en) | A recording medium storing a system for managing an electronic document, a method thereof, and a program for implementing the method | |
Mseteka et al. | Web and mobile examination results dissemination and verification system using encryption and cryptographic hash functions: a case of TEVETA | |
ES2624916A1 (en) | System for recording and certification of web navigation and method for such system (Machine-translation by Google Translate, not legally binding) | |
CN113836521B (en) | Decentralized identity-based multiple identity management method and device | |
JP4595421B2 (en) | Information providing system, information storage device, advertising medium, advertising medium manufacturing apparatus, program, and program providing server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190711 Address after: 518000 Nanhai Avenue, Nanshan District, Shenzhen City, Guangdong Province, No. 1057 Science and Technology Building Phase II Building 502 Applicant after: Vorthong Electronic Certification Services Co., Ltd. Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Applicant before: Smith Technology (Shenzhen) Co., Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |