METHOD FOR TRANSMITTING, STORING AND ACCESSING A SECRET

Abstract: The invention is concerned with a method for the secure mediation and storage of secrets, for instance the passwords of datasystems, in a telecommunications network, which comprises a sender of the message, a recipient of the message and a database attached to the recipient, in which database received messages are stored and which sender and recipient comprise the necessary attributes for the signing, encrypting, checking of signatures and decryption of messages and a telecommunications connection has been set up between the sender and the recipient. The idea of the invention is that two separate messages are sent, of which the first one consists of the actual signed and encrypted secrecy data and the second one consists of individualizing data indicating the secrecy data. The encrypted first message and the individualizing data of the second message are stored in the recipient's database. The actual signed and encrypted secrecy data can later be extracted from the database on the basis of the individualizing data.

Description: METHOD FOR TRANSMITTING, STORING AND ACCESSING A SECRET TECHNICAL FIELD The present invention is concerned with telecommunications systems. The invention is especially concerned with a method for the secure meadiation, storage and extraction of secrets on a telecommunications system. BACKGROUND ART It is possible to both encrypt and sign data to be transferred In datanetworks in order to achieve confidentiality and integrity. With the signature and the encryption it is tried to achieve confidentiality, i.e. that the data remains secret and no outsiders will be able to read it. Furthermore, it aims to achieve integrity, i.e. that the data cannot be altered during the transfer without the recipient noticing it or that the data cannot be altered at all. In addition it aims to achieve indisputability i.e. that the sender cannot claim he did not send the message. A certain method for a digital signature is, that both a public and a secret signature key have been defined for both the sender and the recipient. In a digital signature, the sender forms a hash of the message and signs the hash with his own secret signature key. The recipient of the signed message then decrypts the message using the sender's public signature key. The origin of the message can be verified in such a way that the recipient compares the hash, calculated by himself from the received decrypted message, to the hash in the message. If the hashes match, the message has been signed with the private key corresponding to the public key in question. Analogously the encryption can be done for instance with the public key method. In the public key method both the sender and the recipient have both a public and a private key. When it is wanted to encrypt a message, the sender encrypts the message with the recipient's public key. The recipient decrypts the message with his own private key, which is only in his posession. This method is called an asymmetric method. In a symmetric encryption, the message is both encrypted and decrypted with the same key. Hence the key has to be in the possesion of both the sender and the recipient. A certain example of a symmetric encryption method is the 3DES (DES, Data Encryption Standard). At present, the use of many different systems and devices require the knowing of passwords, opening codes and other shared secrets. Furthermore, these are often predefined and the user cannot influence the form or length of them. The consequence of this is that it is difficult for a user to remember them when the degree of randomness of the secrets increases. This in turn leads to that the users write the secrets down on paper in order to remember them, which makes them eligible for theft or viewing from outsiders. Secrets can be tried to store securely in various ways. One way is to store the secret on a computer, where the secret is protected by a password. Another way is to divide the secret with different kinds of alghoritms so that you need n parts of m to form the whole secret. Thereafter which the secrets are stored in trustworthy places. The problem with the first solution is that a computer is needed for the solution, which is difficult to carry on continuously. The problem with the second solution is that the retrieving and connecting of parts of the secret takes time. THE OBJECT OF THE INVENTION The purpose of the invention is to remove said disadvantages or at least substantially alleviate them. Especially, the purpose of the invention is to present a new type of method for the safe mediation, storing and retrieving of secrets, for example passwords, using the telecommunications network. SUMMARY OF THE INVENTION The present invention is concerned with the secure mediation and storage of secrets, for instance passwords of datasystems, on the telecommunications system. In the invention, the sender forms two separate messages, which are sent to a recipient. The first message contains the actual secrecy data and the second data that reffers to the secrecy data. By using the refference data, the secrecy data can later be retrieved. The invention is concerned a method for the secure mediation and storage of secrets, for instance passwords of datasystems, in the telecommunications system, which comprises the sender of the message, the recipient of the message and the database attached to the recipient of the message, on which database received messages are stored and which sender and recipient have necessary attributes for the signing, encryption, checking of signatures and decryption and between which sender and recipient a telecommunications connection has been set up. With sender it is advantageously meant a mobile station and a subscriber identity module (SIM, Subscriber Identity Module) attached to the mobile station. With telecommunications connection it is advantageoulsy meant a mobile phone network, for instance a GSM-network (GSM, Global System for Mobile communications). In the method, a first message is formed. Likewise a second message is formed. The first message is encrypted and signed. The encryption is made advantageously using the sender's own public key and the signature with the private signature key. Likewise the second message is signed advantageously with the senders private signature key. The second message can also be encrypted if necessary, in which case the message recipient's public key is used to encrypt the message. With the first and/or the second message it is advantageously meant a short message of the mobile phone network. The public key method is advantageously RSA (RSA, Rivest, Shamir, Adleman). It is also possible to use other public key methods. Such as for instance ECC (ECC, Elliptic Curve Cryptography), NTRU and XTR. The messages are sent to the recipient. The recipient cannot decrypt the first message because it has been encrypted with the sender's own public encryption key and only the sender of the message himself can decrypt it. If the second message furthermore was encypted, the recipient decrypts the message and checks the digital signature concerned with the message. In accordance with the invention, the contents of the first message is set to be the secrecy data. Furthermore, the contents of the second message is set to be data that individualizes said secrecy data. The contents of the second message is attached to refer to the received, signed and encrypted first message. The signed and encrypted first message as well as the second message are stored in a database for later extraction. The invention is also concerned with a method for the safe extraction of secrets, for instance the passwords of datasystems, in the telecommunications system, which comprises of the sender of the message, the recipient of the message and the database attached to the recipient, in which database earlier received messages have been stored and which sender and recipient comprise necessary attributes for the signing, encryption, checking of signature and for the decryption of a message and between which sender and recipient a telecommunications connection has been set up. With sender it is advantageously meant a mobile station and the subscriber identity module attached to it. With telecommunications connection it is advantageously meant a mobile phone network, for instance a GSM-network. In the method a message is formed, which is signed. Advantageously, the message is also encrypted with the recipient's public encryption key. With message it is advantageously meant a short message of the mobile phone network. The public key method is advantageously RSA. It is also possible to use other public key methods. For instance ECC, NTRU and XTR. The signed and possibly encrypted message is sent to the recipient, which decrypts the received message and checks the digital signature concerned with the message. In accordance with the invention the contents of said message is set to be data that individualizes certain secrecy data. The recipient of the message checks from the database if secrecy data, which is concerned with the received individualizing data, has been stored for the sender of said message. If the secrecy data corresponding to the individualizing data is found, the secrecy data indicated by the individualizing data is sent back to the sender. The secrecy data is advantageously sent in a mobile phone network short message. In the extraction of secrecy data, heuristics can be used, if the received individualizing data is only a part of or resembles the original individualizing data stored earlier. Because of the presented invention the secrecy data stored by the recipient stays absolutely secret, because it has been encrypted with the sender's own public encryption key. Not even the storer of the encrypted secret data knows the contents of the secret. Furthermore, no outsider can alter the stored secret without the sender of the secret noticing it. This because the sender has signed the secret before its storage in the recipient's database. In the presented invention the secrets to be stored can be arbitrarily many. The presented method does not in any way restrict the amount of secrets to be stored. LIST OF DRAWINGS In the following the invention is decribed in detail using embodiment examples, where figure 1 presents a certain appplication of the invention. DETAILED DESCRIPTION OF THE INVENTION The example of with figure 1 comprises a user SUB, a subscriber identity module SIM, a server SR and a database SGE attached to the server SR. The subscriber identity module SIM is attached to a mobile station, which is in the possesion of the user SUB. In this example the method of the invention is used to store and extract a password. In accordance with arrow 1 , the user SUB defines a password and individualizing data reffering to the password - a key word or several key words. The mobile station in the possesion of the user SUB comprises the necessary attributes for the signing, encryption, checking of signature and decryption of the data. The subscriber identity module SIM requests the PIN- code (PIN, Personal Identification Number) as a confirmation for the carrying out of the signing and encryption procedure, arrow 2. The defined password is signed with the user's SUB private signature key and encrypted with the user's SUB own public encryption key. The public key method is advantageously RSA, but it is also possible to use other public key methods. For instance ECC, NTRU and XTR. The password is encrypted with the user's SUB own public key so that no one else than the user himself can decrypt the encryption. The key word or key words are signed with the user's private signature key. In addition, the message, which contains the key word or key words can be encrypted. The recipient's public key is advantageously used in the encryption. In this example, both the first and the second message have been signed and encrypted with the proper keys. The formed signed and encrypted messages are advantageously sent to the recipient in a mobile phone network short message, arrow 3. The mobile phone network is advantageously a GSM-network. The short messages are sent to the server SR, where means for receiving and sending short messages have been set up. With server SR is meant any device or computer, which comprises necessary attributes for the signing, encryption, checking of signature and decryption of encryption and other functions demanded by the invention. In accordance with arrow 4 data received by the server SR is stored in the database SGE. The line of dashes underneith arrow 4 means that the timeline between arrows 4 and 5 has not been predefined. In accordance with arrow 5 the user SUB demands certain secrecy to be followed for example in a situation where the user has forgotten a password required by a datasystem, but still remembers the key word or key words, where the encrypted secrecy data has been attached in the database SGE. The user SUB feeds the necessary key word or words into his mobile station. The subscriber identity module SIM requests from the user SUB the PIN-code for the extraction a secret, arrow 6. From the key word or key words fed by the user SUB a message is formed, which the subscriber identity module digitally signs and advantageously also encrypts with the recipient's ( server SR) public encryption key. The signed and advantageously encrypted message is sent to the server SR, arrow 7. The server SR extracts the requested data from the database SGE, arrow 8. In some cases the user might not necessarily remember the key word exactly. In this case the user sends the remembered part to the server SR and the server SR extracts the secrecy data stored in the database SGE for example using a heuristic determination. With this it is meant that it is checked if the received key word data is a part of or resembles an earlier key word stored in the database SGE. The server SR sends the stored secret to the subscriber identity module SIM, arrow 9. The secret to be sent does not need to be encrypted again because it has already been encrypted using the user's SUB own public encyption key. In accordance with arrow 10 the subscriber identity module SIM requests from the user the PIN-code for the decryption of the secrecy data (password). The subscriber identity module SIM decrypts the encryption and checks the signature. If the decryption of the secret and the checking of the signature is succesful, the secrecy data (password) is shown to the user SUB, arrow 11. Above the invention was explained with the help of a mobile phone and a subscriber identity module. It should be noted, that the sender's terminal can aslo be any other device from which there is a connection to a telecommunication network and which has the necessary attributes for the signing, encrypting, checking of signatures and decrypting of encryption. The invention is not restricted to concern only the application examples presented above, but various other variations are possible whilst staying within the inventive idea defined by the patent claims.

Claims: PATENT CLAIMS 1. A method for the secure mediation and storing of secrets, for example passwords of datasystems, in a telecommunications system, which comprises a sender of a message, a recipient of the message and a database attached to the recipient, in which database received messages are stored and which sender and recipient of the message comprise necessary attributes for the signing, encrypting, checking of signatures and decryption of encrypted messages and between which sender and recipient a telecommunications connection has been set up, which method comprises the following steps: forming of a first message; forming of a second message; signing and encryption of the first message; signing of the second message; sending of the signed and encrypted first message to the recipient; sending of the signed second message to the recipient; checking of the digital signature concerning the second message; c h a r a c h t e r i z e d in that, the method further comprises the following steps: setting of the secrecy data as the contents of said first message; setting of individualizing data refer to said secrecy data as the contents of said second message ; attaching of said second message's contents to refer to said signed and encrypted first message; and storing of said signed and encrypted first message as well as storing of said second message into the database for later extraction. 2. A method in accordance with patent claim 1 . c h a r a c t e r i z e d by, the encryption of the first message with the sender's own public key. 3. A method in accordance with patent claim 1 or 2, c h a r a c t e r i z e d by, the encryption of the second message with the recipient's public key; and by decryption of the second message before the checking of the digital signature. 4. A method in accordance with any of the earlier patent claims 1 , 2 or 3, c h a r a c e r i z e d in, that the public key method is RSA, ECC, NTRU or XTR. 5. A method in accordance with any of the earlier patent claims 1 , 2, 3 or 4, c h a r a c t e r iz e d in, that with sender it is meant a mobile station and the subscriber identity module attached to it. 6. A method in accordance with any of the earlier patent claims 1 , 2, 3, 4 or 5, c h a r a c t e r i z e d in, that the formed first and/or second message is a short message. 7. A method in accordance with any of the earlier patent claims 1 , 2, 3, 4, 5 or 6, c h a r a c t e r i z e d in, that the telecommunications connection has been set up using a mobile phone network. 8. A method for the secure extraction of secrets, for instance passwords of datasystems, in a telecommunications system, which comprises a sender of a message, a recipient of the message and a database attached to the recipient, in which database eariier received messages have been stored and which sender and recipient of the message comprise attributes necessary for the signing, encryption, checking of signature and the decryption of messages and where a telecommunications connection has been set up between the sender and the recipient, which method comprises of the following steps: forming of a message; signing of the message; sending of the signed message to the recipient; checking of the digital signature concerning the message; c h a r a c t e r i z e d in, that the method furthermore comprises of the following phases: certain individualizing data corresponding to the secrecy data is set up as the contents of said message; checking if secrecy data has been stored for the sender of said message into the recipient's database, which secrecy data is concerned with the received individualizing data; and if the secrecy data corresponding to the individualizing data is found, the secrecy data indicated by the individualizing data is sent back to the sender. 9. A method in accordance with patent claim 8, c h a r a c t e r i z e d by, the encryption of the message with the recipient's public key; and by the decryption of the message before the checking of the digital signature. 10. A method in accordance with patent claim 8 or 9, c h a r a c t e r i z e d by, the use of heurestics when searching previously stored secrecy data by using individualizing data. 11. A method in accordance with any of the eariierpatent claims 8, 9 or 10, c h aracterized in, that the public key method is RSA, ECC, NTRU or XTR. 12. A method in accordance with any of the earlier patent claims 8, 9, 10 or 11, characterized in, that with sender it is meant a mobile station and the subscriber identity module attached to it. 13. A method in accordance with any of the earlier patent claims 8, 9, 10, 11 or 12, c h a r a c t e r i z e d in, that the formed message is a short message. 14. A method in accordance with any of the earlier patent claims 8, 9, 10, 11, 12 or 13, c h a r a c t e r i z e d by, the sending of the secrecy data indicated by the individualizing data in a short message. 15. A method in accordance with any of the earlier patent claims 8, 9, 10, 11, 12, 13 or 14 c h a r a c t e r i z e d in, that the telecommunications connection between the sender and the recipient has been set up by using a mobile phone network.

Inventors: LIUKKONEN JUKKA, MAETTOE MIKKO, LIUKKONEN, JUKKA, MAETTOE, MIKKO
Applicants: LIUKKONEN JUKKA, MAETTOE MIKKO, SONERA SMARTTRUST LTD, LIUKKONEN, JUKKA, MAETTOE, MIKKO
Application year: 2001
Main classification: H04L9
IPC codes: H04L9, H04L29