Telegraph code translation method, device, equipment, storage medium and program product

By receiving resource settlement requests and using telegraphic code encryption strategies to decrypt and translate encrypted messages, the problem of insufficient security of traditional telegraphic codes is solved, thereby improving the security of resource transfer information.

CN118264468BActive Publication Date: 2025-12-19INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410397860.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2025-12-19
Estimated Expiration
2044-04-03

AI Technical Summary

Technical Problem

Traditional telegraph codes have limited encryption effectiveness, pose security risks, and are difficult to effectively protect the security of information transferred for resources.

Method used

By receiving resource settlement requests, the encrypted messages are decrypted and translated using the first user's telegraphic code encryption strategy, replacing the target field in the resource transfer information, thereby improving the security of the telegraphic code.

Benefits of technology

It enhances the security of resource transfer information, ensures the encryption and decryption process of important data, and improves the security of telegraph codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118264468B_ABST
    Figure CN118264468B_ABST
Patent Text Reader

Abstract

The application relates to a telegraph code translation method, device, equipment, storage medium and program product. It relates to the technical field of information security. The method comprises the following steps: receiving a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information; performing message decryption on the encrypted message in the resource transfer information according to a telegraph code encryption strategy corresponding to the first user to obtain a message decryption result; performing translation on the message decryption result to obtain a message translation result; and replacing a target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user. The method can improve the security of the resource transfer information.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of information security, and in particular to a telegraph code translation method and device, equipment, a storage medium and a program product. BACKGROUND

[0002] With the development of the financial field, more and more financial businesses have emerged, and usually, the financial businesses involve resource transfer. In order to ensure the security of the user resource transfer information, it is usually necessary to encrypt the user resource transfer information, for example, in the cross-border resource clearing scenario, a telegraph code is used to encrypt the resource transfer information.

[0003] However, the telegraph code of the traditional technology usually appears in the form of a four-corner code of Chinese characters, and its encryption effect is limited, and there are still unsafe situations. SUMMARY

[0004] Therefore, it is necessary to provide a telegraph code translation method, device, equipment, storage medium and program product capable of improving the security of resource transfer information in view of the above technical problems.

[0005] In a first aspect, the present application provides a telegraph code translation method, comprising:

[0006] receiving a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information;

[0007] decrypting an encrypted message in the resource transfer information according to a telegraph code encryption strategy corresponding to the first user to obtain a message decryption result;

[0008] translating the message decryption result to obtain a message translation result;

[0009] replacing a target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user.

[0010] In one embodiment, the encrypted message includes at least one group of encrypted telegraph codes, each encrypted telegraph code includes a preset number of encrypted characters; decrypting the encrypted message in the resource transfer information according to the telegraph code encryption strategy corresponding to the first user to obtain the message decryption result includes: decrypting each encrypted telegraph code based on the original characters corresponding to each encrypted character in the telegraph code encryption strategy to obtain the original telegraph code corresponding to each encrypted telegraph code.

[0011] In one of the embodiments, the encrypted telegram code is decrypted based on the original character corresponding to each encrypted character in the telegram code encryption strategy, to obtain the original telegram code corresponding to the encrypted telegram code, including: for each group of encrypted telegram codes, determining each encrypted character in the encrypted telegram code; based on the telegram code encryption strategy, determining the original character corresponding to each encrypted character; and replacing each original character with the corresponding encrypted character to obtain the original telegram code corresponding to the encrypted telegram code.

[0012] In one of the embodiments, the telegram decryption result is translated to obtain the telegram translation result, including: translating each original telegram code to obtain the initial translation result corresponding to each original telegram code; and splicing the translation results corresponding to each original telegram code according to the translation order corresponding to different original telegram codes to obtain the telegram translation result.

[0013] In one of the embodiments, the method further includes: obtaining the reference resource transfer information input by the second user; wherein the resource transfer information and the reference resource transfer information correspond to the same resource transfer record; and processing the resource clearing request according to the consistency of the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user.

[0014] In one of the embodiments, the telegram decryption result is translated to obtain the telegram translation result, including: translating each original telegram code to obtain the initial translation result corresponding to each original telegram code; and splicing the translation results corresponding to each original telegram code according to the translation order corresponding to different original telegram codes to obtain the telegram translation result.

[0015] In a second aspect, the application further provides a telegram code translation device, including:

[0016] The request receiving module is configured to receive the resource clearing request input by the first user; wherein the resource clearing request carries the resource transfer information;

[0017] The telegram decryption module is configured to decrypt the encrypted telegram in the resource transfer information according to the telegram code encryption strategy corresponding to the first user, to obtain the telegram decryption result;

[0018] The telegram translation module is configured to translate the telegram decryption result to obtain the telegram translation result;

[0019] The target translation information determining module is configured to replace the target field in the resource transfer information with the telegram translation result to obtain the target resource transfer information corresponding to the first user.

[0020] In a third aspect, the present application provides a computer device, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0021] receiving a resource clearing request input by a first user, wherein the resource clearing request carries resource transfer information;

[0022] decrypting an encrypted message in the resource transfer information according to a cipher policy corresponding to the first user to obtain a message decryption result;

[0023] translating the message decryption result to obtain a message translation result;

[0024] replacing a target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user.

[0025] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the following steps when executed by a processor:

[0026] receiving a resource clearing request input by a first user, wherein the resource clearing request carries resource transfer information;

[0027] decrypting an encrypted message in the resource transfer information according to a cipher policy corresponding to the first user to obtain a message decryption result;

[0028] translating the message decryption result to obtain a message translation result;

[0029] replacing a target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user.

[0030] In a fifth aspect, the present application provides a computer program product, comprising a computer program, and the computer program implements the following steps when executed by a processor:

[0031] receiving a resource clearing request input by a first user, wherein the resource clearing request carries resource transfer information;

[0032] decrypting an encrypted message in the resource transfer information according to a cipher policy corresponding to the first user to obtain a message decryption result;

[0033] translating the message decryption result to obtain a message translation result;

[0034] replacing a target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user.

[0035] The telegraph code translation method, device, equipment, storage medium and program product described above, after receiving the resource clearing request input by the first user, extract the resource transfer information in the resource clearing request, and in the case that there is an encrypted message in the resource transfer information, decrypt the encrypted message according to the telegraph code encryption strategy corresponding to the first user to obtain a message decryption result, then translate the message decryption result to obtain a message translation result. And replace the target field in the resource transfer information with the message translation result to obtain the target resource transfer information corresponding to the first user. That is, in the embodiment of the present application, in order to ensure the security of the resource transfer information, for important data, not only the telegraph code is used for encryption, but also the telegraph encryption strategy corresponding to the user is used to encrypt the telegraph code, so as to improve the security of the telegraph code and the security of the resource transfer information. BRIEF DESCRIPTION OF DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technical solutions, the drawings needed to be used in the embodiments or the related technical solution description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0037] Figure 1 An application environment diagram of a telegraph code translation method provided by the present embodiment;

[0038] Figure 2 A flowchart of a telegraph code translation method provided by the present embodiment;

[0039] Figure 3 A flowchart of determining a message decryption result provided by the present embodiment;

[0040] Figure 4 A flowchart of determining an original telegraph code provided by the present embodiment;

[0041] Figure 5 A flowchart of a message translation method provided by the present embodiment;

[0042] Figure 6 A flowchart of a resource clearing process provided by the present embodiment;

[0043] Figure 7 A flowchart of another telegraph code translation method provided by the present embodiment;

[0044] Figure 8 A structural block diagram of a telegraph code translation device provided by the present embodiment;

[0045] Figure 9An internal structure diagram of a computer device is provided for the embodiment. DETAILED DESCRIPTION

[0046] For the purpose, technical solutions and advantages of the present application to be clearer, the present application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not to limit the present application.

[0047] The telegraph code translation method provided by the embodiments of the present application can be applied to the application environment as shown in Figure 1 . The terminal 102 communicates with the server 104 through the network. The data storage system can store the data required to be processed by the server 104. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. Specifically, the server 104 receives a resource clearing request input by a first user through the terminal 102; wherein the resource clearing request carries resource transfer information; the server 104 decrypts the encrypted message in the resource transfer information according to the telegraph code encryption policy corresponding to the first user, to obtain a message decryption result; the server 104 translates the message decryption result to obtain a message translation result; the server 104 replaces the target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user. The server 104 displays the target resource transfer information corresponding to the first user through the terminal 102. The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0048] In one embodiment, as shown in Figure 2 , a telegraph code translation method is provided. Taking the server 104 in Figure 1 as an example, the method includes the following steps. Wherein:

[0049] S201, receiving a resource clearing request input by a first user.

[0050] The first user can be a user with a historical resource transfer record. For example, the first user can be a historical user of a financial institution, and the user has a historical resource transfer record before the current time. The resource clearing request can be a request input by the first user through a terminal, and the request is used to request a resource clearing service. The resource clearing request carries at least resource transfer information. For example, the resource transfer information can include basic information of resource transfer parties and resource transfer content information.

[0051] Specifically, in the embodiment of the present application, when the first user has a resource clearing request, the first user can input the corresponding resource clearing request through the terminal. At this time, the server can receive the resource clearing request input by the first user through the terminal.

[0052] S202, according to the telegraph code encryption strategy corresponding to the first user, the encrypted message in the resource transfer information is decrypted to obtain a message decryption result.

[0053] The telegraph code encryption strategy can be a telegraph code encryption strategy used by the first user when encrypting the resource transfer information. The message decryption result can be obtained by decrypting the encrypted message in the resource transfer information based on the telegraph code encryption strategy, and is used to represent the information of the unencrypted message content corresponding to the encrypted message in the resource transfer information.

[0054] For example, the telegraph code encryption strategy can be carried in the resource clearing request.

[0055] It should be noted that, in order to improve the effect of telegraph code encryption, the telegraph code encryption strategy corresponding to the first user can be updated and adjusted regularly.

[0056] In an optional implementation, the server can input the telegraph code encryption strategy and the resource transfer information into a pre-trained message decryption model to obtain the message decryption result. It should be noted that the construction method and training process of the message decryption model are not limited in the embodiment of the present application.

[0057] In another optional implementation, after receiving the resource transfer information, the server can extract the encrypted message in the resource transfer information, and further decrypt the encrypted message based on the telegraph code encryption strategy to obtain a decryption result. For example, the preset message content in the resource transfer information can be regarded as the encrypted message, for example, all the numbers in the resource transfer information are regarded as the encrypted message. The encrypted message is decrypted by using a corresponding decryption method according to the encryption method recorded in the telegraph code encryption strategy. The encryption method can be a common encryption method, for example, a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash function, and the like, which is not limited.

[0058] S203, translating the message decryption result to obtain a message translation result.

[0059] The message translation result represents the specific content corresponding to the encrypted message.

[0060] In an optional implementation, the message decryption result can be input into a pre-trained message translator to obtain the message translation result. It should be noted that the construction method and training process of the message translator are not limited in the embodiments of the present application.

[0061] In another optional implementation, the message decryption result can be translated according to the message decryption result and a pre-determined message translation comparison table to obtain the message translation result. For example, the message translation comparison table records the translation result corresponding to each message. The message translation comparison table in the embodiments of the present application can be determined based on artificial experience, or can be set by the user, which is not limited.

[0062] S204, using the message translation result to replace the target field in the resource transfer information to obtain target resource transfer information corresponding to the first user.

[0063] The target field can be a field with a preset format in the resource transfer information, for example, a field corresponding to the encrypted message. The target resource transfer information can be resource transfer information without the encrypted message.

[0064] Specifically, in the embodiments of the present application, the target field in the resource transfer information can be deleted, and the message translation result can be added to the position of the original target field to obtain the target resource transfer information corresponding to the first user.

[0065] In the above telegraph code translation method, after receiving the resource clearing request input by the first user, the resource transfer information in the resource clearing request is extracted, and in the case that there is an encrypted message in the resource transfer information, the encrypted message is decrypted according to the telegraph code encryption strategy corresponding to the first user to obtain a message decryption result, and then the message decryption result is translated to obtain a message translation result. The message translation result replaces the target field in the resource transfer information to obtain the target resource transfer information corresponding to the first user. That is, in the embodiment of the present application, in order to ensure the security of the resource transfer information, for important data, not only is it encrypted by a telegraph code, but also the telegraph code is encrypted by the telegraph encryption strategy corresponding to the user, thereby improving the security of the telegraph code and the security of the resource transfer information.

[0066] On the basis of the above embodiments, it should be noted that if the resource transfer information does not include an encrypted message, the resource transfer information does not need to be decrypted and translated. Therefore, as shown in the embodiment of the present application, Figure 3 After receiving the resource clearing request input by the first user and extracting the resource transfer information, the following steps are performed:

[0067] S301, extracting the target field in the resource transfer information.

[0068] Exemplarily, the target field can be a preset character in the resource transfer information, for example, the target field can be a number in the resource transfer information.

[0069] In the embodiment of the present application, the target field can be extracted from the resource transfer information according to the field format of different fields in the resource transfer information. Exemplarily, the resource transfer information is character recognized, and the number is taken as the target field.

[0070] S302, determining whether there is an encrypted message in the resource transfer information according to the field format of the target field.

[0071] In the embodiment of the present application, the target field does not necessarily belong to the encrypted message. Exemplarily, the encrypted message can be a target field of a preset format. For example, the format of the encrypted message can be in the form of “space plus a preset number of encrypted characters plus space”, and taking the encrypted character as a number as an example, the encrypted message can be “ 2947 3957 9900 ”.

[0072] Exemplarily, in the embodiment of the present application, after the target field is extracted, the format of the target field is determined, and it is determined whether the encrypted message exists in the resource transfer information according to the format of the target field. For example, it is identified whether multiple spaces exist in the target field, if yes, it is further identified whether a preset number of encrypted characters exist between the two spaces, if yes, the encrypted characters between the two spaces are taken as a group of encrypted telegrams. If only one group of encrypted telegrams exists, the encrypted telegrams are taken as the encrypted message; if the continuous encrypted telegrams exist, the continuous encrypted telegrams are taken as the encrypted message. It can be understood that the number of encrypted messages corresponding to one resource transfer information can not be unique, and at least one group of encrypted telegrams is included in a group of encrypted messages.

[0073] Exemplarily, in the embodiment of the present application, the target field can also be converted into a set, and the set is traversed to determine whether the field of the current set satisfies that only a preset number of encrypted characters are included, if not, it is not considered as the encrypted telegram; if yes, the target field in the form of “first group of spaces + a preset number of encrypted characters + spaces” is determined as a group of encrypted telegrams. In the case that the continuous encrypted telegrams exist, the continuous encrypted telegrams are taken as the encrypted message. Of course, if only one group of encrypted telegrams exists, the encrypted telegrams can also be taken as the encrypted message.

[0074] S303, in the case that the encrypted message exists in the resource transfer information, the message decryption is performed on the encrypted message according to the telegram encryption strategy corresponding to the first user, and a message decryption result is obtained.

[0075] In an optional implementation, the encrypted message and the telegram encryption strategy corresponding to the first user can be input into a pre-trained message decryption model to obtain the message decryption result. It should be noted that the construction manner and training process of the message decryption model are not limited in the embodiment of the present application.

[0076] In another optional implementation, each encrypted telegram can be decrypted based on the original character corresponding to each encrypted character in the telegram encryption strategy to obtain the original telegram corresponding to each encrypted telegram, and the specific implementation is described in detail in the following embodiment.

[0077] The above embodiment gives the operation before the encrypted message is processed after the resource transfer information is extracted: it is determined whether the encrypted message exists in the resource transfer information. Specifically, the encrypted message is the target field in the preset field format in the resource transfer information, and it can be directly determined whether the encrypted message exists in the resource transfer information according to the format of the target field, so that the existence determination process of the encrypted message is simpler.

[0078] On the basis of the above embodiments, further, in order to make the process of performing the message decryption on the encrypted message more specific, in one embodiment, asFigure 4 As shown, decrypting each encrypted telegraph code based on the original character corresponding to each encrypted character in the telegraph code encryption strategy to obtain the original telegraph code corresponding to each encrypted telegraph code includes the following steps:

[0079] S401, for each group of encrypted telegraph codes, determining each encrypted character in the encrypted telegraph code.

[0080] Specifically, in the embodiment, each encrypted telegraph code can be decrypted during the decryption process of the encrypted telegraph code. For each group of encrypted telegraph codes, each encrypted character contained in the encrypted telegraph code is extracted.

[0081] For example, taking the encrypted telegraph code "4569" as an example, the encrypted characters contained in the encrypted telegraph code are determined, i.e. 4, 5, 6 and 9.

[0082] S402, based on the telegraph code encryption strategy, determining the original character corresponding to each encrypted character.

[0083] In the embodiment of the application, the telegraph code encryption strategy records the original character corresponding to each encrypted character. That is, the telegraph code encryption strategy can be understood as a comparison relationship between encrypted characters and original characters. For example, the telegraph code encryption strategy can record that the encrypted character 1 corresponds to the original character 9, the encrypted character 0 corresponds to the original character 3, and the like.

[0084] S403, replacing each original character with the corresponding encrypted character to obtain the original telegraph code corresponding to the encrypted telegraph code.

[0085] Specifically, the encrypted telegraph code can be decrypted into an original telegraph code according to the corresponding relationship between the encrypted characters and the original characters recorded in the telegraph code encryption strategy.

[0086] For example, continuing to take the encrypted telegraph code "4569" as an example, if the telegraph code encryption strategy records that the encrypted character 4 corresponds to the original character 2, the encrypted character 5 corresponds to the original character 1, the encrypted character 6 corresponds to the original character 4, and the encrypted character 9 corresponds to the original character 0, then the original telegraph code corresponding to the encrypted telegraph code "4569" is "2140".

[0087] In the above embodiment, for the encrypted characters in each encrypted telegraph code, the original character corresponding to the encrypted character is used to decrypt each encrypted character contained in the encrypted telegraph code to obtain the original character corresponding to the encrypted telegraph code. Since the telegraph code encryption strategy records the corresponding relationship between each encrypted character and its corresponding original character, this step makes the decryption process of the encrypted telegraph code more convenient.

[0088] On the basis of the above embodiments, further, in one embodiment, the specific way of translating the message decryption result is also provided, as shown in the following Figure 5 The method comprises the following steps:

[0089] S501, translate each original telegraph code to obtain the initial translation result corresponding to each original telegraph code.

[0090] The original telegraph code can be a quadrangle code, and each quadrangle code corresponds to a character. The initial translation result can be the character value corresponding to each original telegraph code.

[0091] For example, in the embodiment of the present application, after determining the original telegraph code, the quadrangle code character table can be queried, and the character corresponding to each original telegraph code is taken as the initial translation result corresponding to the original telegraph code.

[0092] S502, according to the translation order corresponding to different original telegraph codes, the translation results corresponding to each original telegraph code are spliced to obtain the message translation result.

[0093] For example, in the embodiment, the original telegraph code can be translated in sequence. For a group of encrypted messages, after determining the initial translation result of each original telegraph code, the initial translation result corresponding to each original telegraph code in the encrypted message is spliced in order to obtain the message translation result corresponding to the group of encrypted messages.

[0094] It can be understood that in the embodiment of the present application, each group of encrypted messages can correspond to a message translation result. When the message translation result is used to replace the target field in the resource transfer information, the target field in the resource transfer information is deleted, and each group of message translation results is added to the corresponding position to obtain the target resource transfer information corresponding to the first user.

[0095] On the basis of the above embodiments, further, in the embodiment of the present application, after determining the target resource transfer information corresponding to the first user, the resource clearing request input by the first user can be processed. In order to ensure the accuracy of resource clearing, in one embodiment, as shown in the following Figure 6 The method comprises the following steps:

[0096] S601, obtaining the reference resource transfer information input by the second user.

[0097] The second user and the first user have a resource transfer record, for example, a cross-regional resource transfer record. The resource transfer information and the reference resource transfer information correspond to the same resource transfer record.

[0098] Exemplarily, in the embodiment of the present application, the second user can be obtained after the server sends a reference resource transfer information input prompt to the terminal corresponding to the second user after determining the target resource transfer information corresponding to the first user, or can be input by the second user in advance. The input time is not limited. Exemplarily, the input can be when the first user inputs the resource clearing request.

[0099] It should be noted that the reference resource transfer information is translated information. The information input by the second user can not include the encrypted message, or can include the encrypted message. If the information input by the second user includes the encrypted message, the information input by the second user can be decrypted and translated by using the above message decryption method to obtain the reference resource transfer information. Details are not described herein.

[0100] S602, processing the resource clearing request according to the consistency of the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user.

[0101] Specifically, in the embodiment, the target resource transfer information and the reference resource transfer information are compared. If the target resource transfer information is consistent with the reference resource transfer information, the resource clearing is performed in response to the resource clearing request of the first user. If the target resource transfer information is inconsistent with the reference resource transfer information, the first user is fed back prompt information of resource clearing request error.

[0102] In the above embodiment, the resource transfer request of the first user is responded only when the target resource transfer information corresponding to the first user is consistent with the reference resource transfer information of the second user, which can improve the security of resource clearing.

[0103] In order to facilitate those skilled in the art to understand the present scheme, the telegraph code translation method provided by the embodiment of the present application is described in detail, as shown in the following. Figure 7 The method comprises the following steps:

[0104] S701, receiving a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information.

[0105] S702, extracting a target field in the resource transfer information.

[0106] S703, determining whether there is an encrypted message in the resource transfer information according to the field format of the target field; if yes, performing S704, and if no, performing S713.

[0107] S704, performing message decryption on the encrypted message according to the telegraph code encryption strategy corresponding to the first user to obtain a message decryption result.

[0108] S705, for each group of encrypted telegraph code, determining each encrypted character in the encrypted telegraph code.

[0109] S706, based on the telegraph code encryption strategy, determining the original character corresponding to each encrypted character.

[0110] S707, replacing each original character with the corresponding encrypted character to obtain the original telegraph code corresponding to the encrypted telegraph code.

[0111] S708, translating each original telegraph code to obtain the initial translation result corresponding to each original telegraph code.

[0112] S709, according to the translation order corresponding to different original telegraph codes, splicing the translation results corresponding to each original telegraph code to obtain the message translation result.

[0113] S710, using the message translation result to replace the target field in the resource transfer information to obtain the target resource transfer information corresponding to the first user.

[0114] S711, obtaining the reference resource transfer information input by the second user.

[0115] Wherein, the resource transfer information and the reference resource transfer information correspond to the same resource transfer record.

[0116] S712, according to the consistency of the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user, processing the resource clearing request.

[0117] S713, taking the resource transfer information input by the first user as the target resource transfer information.

[0118] It should be understood that although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise stated herein, the execution of these steps has no strict order limitation, and these steps can be executed in other order. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or steps or stages in other steps.

[0119] Based on the same inventive concept, the application further provides a telegraph code translation device for implementing the above-mentioned telegraph code translation method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above-mentioned method, and therefore the specific limitations in one or more telegraph code translation device embodiments provided below can refer to the limitations of the telegraph code translation method described above, which will not be described here again.

[0120] In one embodiment, as shown in Figure 8 A telegraph code translation device is provided, comprising: a request receiving module 810, a message decryption module 820, a message translation module 830, and a target translation information determining module 840, wherein:

[0121] The request receiving module 810 is configured to receive a resource clearing request input by a first user.

[0122] The resource clearing request carries resource transfer information.

[0123] The message decryption module 820 is configured to perform message decryption on encrypted messages in the resource transfer information according to a telegraph code encryption strategy corresponding to the first user, to obtain a message decryption result.

[0124] The message translation module 830 is configured to translate the message decryption result to obtain a message translation result.

[0125] The target translation information determining module 840 is configured to replace a target field in the resource transfer information with the message translation result, to obtain target resource transfer information corresponding to the first user.

[0126] In one embodiment, the encrypted messages include at least one group of encrypted telegraph codes, each encrypted telegraph code includes a preset number of encrypted characters; correspondingly, the message decryption module is configured to decrypt each encrypted telegraph code based on original characters corresponding to each encrypted character in the telegraph code encryption strategy, to obtain original telegraph codes corresponding to each encrypted telegraph code.

[0127] In one embodiment, the message decryption module includes an encrypted character determining unit configured to determine each encrypted character in each group of encrypted telegraph codes, an original character determining unit configured to determine original characters corresponding to each encrypted character based on the telegraph code encryption strategy, and an original telegraph code determining unit configured to replace each original character with the corresponding encrypted character to obtain original telegraph codes corresponding to each encrypted telegraph code.

[0128] In one embodiment, the message translation module includes an initial translation unit configured to translate each original telegraph code to obtain initial translation results corresponding to each original telegraph code, and a message translation unit configured to splice the translation results corresponding to each original telegraph code according to a translation order corresponding to different original telegraph codes, to obtain the message translation result.

[0129] In one embodiment, the message translation device further comprises a resource clearing module, comprising an information acquisition unit configured to acquire reference resource transfer information input by a second user; wherein the resource transfer information and the reference resource transfer information correspond to a same resource transfer record; and a request processing unit configured to process the resource clearing request according to consistency between the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user.

[0130] In one embodiment, the message decryption module comprises a field extraction unit configured to extract a target field in the resource transfer information; a message determination unit configured to determine whether there is an encrypted message in the resource transfer information according to a field format of the target field; and a message decryption unit configured to, in the case that there is an encrypted message in the resource transfer information, perform message decryption on the encrypted message according to a telegraph code encryption strategy corresponding to the first user to obtain a message decryption result.

[0131] The various modules in the above telegraph code translation device can be realized by software, hardware and combinations thereof in whole or in part. The various modules can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so as to be called and executed by the processor to perform operations corresponding to the various modules.

[0132] In one exemplary embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram of the computer device can be as shown in Figure 9The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to perform wired or wireless communication with external terminals. The wireless communication can be achieved through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program is executed by the processor to implement a telegraph code translation method. The display unit of the computer device is configured to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.

[0133] Those skilled in the art can understand that, Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. A specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0134] In one exemplary embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the following steps:

[0135] Receiving a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information;

[0136] According to the telegraph code encryption strategy corresponding to the first user, decrypting the encrypted message in the resource transfer information to obtain a message decryption result;

[0137] Translating the message decryption result to obtain a message translation result;

[0138] Replacing the target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user.

[0139] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0140] Based on the original character corresponding to each encrypted character in the telegraph code encryption strategy, each encrypted telegraph code is decrypted to obtain the original telegraph code corresponding to each encrypted telegraph code.

[0141] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0142] For each group of encrypted telegraph codes, determine each encrypted character in the encrypted telegraph code;

[0143] Based on the telegraph code encryption strategy, determine the original character corresponding to each encrypted character;

[0144] Replace each original character with the corresponding encrypted character to obtain the original telegraph code corresponding to the encrypted telegraph code.

[0145] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0146] Translate each original telegraph code to obtain the initial translation result corresponding to each original telegraph code;

[0147] According to the translation order corresponding to different original telegraph codes, splice the translation results corresponding to each original telegraph code to obtain the message translation result.

[0148] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0149] Obtain the reference resource transfer information input by the second user; wherein the resource transfer information and the reference resource transfer information correspond to the same resource transfer record;

[0150] According to the consistency of the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user, process the resource clearing request.

[0151] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0152] Extract the target field in the resource transfer information;

[0153] According to the field format of the target field, determine whether there is an encrypted message in the resource transfer information;

[0154] In the case where there is an encrypted message in the resource transfer information, according to the telegraph code encryption strategy corresponding to the first user, the message decryption result is obtained by decrypting the encrypted message.

[0155] In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements the following steps:

[0156] receiving a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information;

[0157] decrypting the encrypted message in the resource transfer information according to the cipher policy corresponding to the first user to obtain a message decryption result;

[0158] translating the message decryption result to obtain a message translation result;

[0159] replacing a target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user.

[0160] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0161] decrypting each encrypted telegraph code based on the original character corresponding to each encrypted character in the cipher policy of the telegraph code to obtain an original telegraph code corresponding to each encrypted telegraph code.

[0162] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0163] determining each encrypted character in the encrypted telegraph code for each group of encrypted telegraph codes;

[0164] determining the original character corresponding to each encrypted character based on the cipher policy of the telegraph code;

[0165] replacing each original character with the corresponding encrypted character to obtain an original telegraph code corresponding to the encrypted telegraph code.

[0166] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0167] translating each original telegraph code to obtain an initial translation result corresponding to each original telegraph code;

[0168] splicing the translation results corresponding to each original telegraph code according to the translation order corresponding to different original telegraph codes to obtain a message translation result.

[0169] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0170] obtaining reference resource transfer information input by a second user; wherein the resource transfer information and the reference resource transfer information correspond to a same resource transfer record;

[0171] According to consistency between the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user, the resource clearing request is processed.

[0172] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0173] Extracting a target field in the resource transfer information;

[0174] According to the field format of the target field, it is determined whether there is an encrypted message in the resource transfer information;

[0175] In the case that there is an encrypted message in the resource transfer information, according to the telegraphic code encryption strategy corresponding to the first user, the encrypted message is decrypted to obtain a message decryption result.

[0176] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by the processor, implements the following steps:

[0177] Receiving a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information;

[0178] According to the telegraphic code encryption strategy corresponding to the first user, the encrypted message in the resource transfer information is decrypted to obtain a message decryption result;

[0179] Translating the message decryption result to obtain a message translation result;

[0180] Using the message translation result to replace the target field in the resource transfer information to obtain target resource transfer information corresponding to the first user.

[0181] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0182] Based on the original characters corresponding to each encrypted character in the telegraphic code encryption strategy, each encrypted telegraphic code is decrypted to obtain the original telegraphic code corresponding to each encrypted telegraphic code.

[0183] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0184] For each group of encrypted telegraphic codes, each encrypted character in the encrypted telegraphic code is determined;

[0185] Based on the telegraphic code encryption strategy, the original characters corresponding to each encrypted character are determined;

[0186] Each original character is replaced by the corresponding encrypted character to obtain the original telegraphic code corresponding to the encrypted telegraphic code.

[0187] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0188] The original telegrams are translated to obtain initial translation results corresponding to the original telegrams;

[0189] According to the translation order corresponding to different original telegrams, the translation results corresponding to the original telegrams are spliced to obtain a message translation result.

[0190] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0191] Obtain reference resource transfer information input by a second user; wherein the resource transfer information and the reference resource transfer information correspond to the same resource transfer record;

[0192] According to the consistency of the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user, the resource clearing request is processed.

[0193] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0194] Extract the target field in the resource transfer information;

[0195] According to the field format of the target field, determine whether there is an encrypted message in the resource transfer information;

[0196] In the case that there is an encrypted message in the resource transfer information, according to the telegram code encryption strategy corresponding to the first user, the message decryption result is obtained by decrypting the encrypted message.

[0197] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.

[0198] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0199] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.

[0200] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A method of translating a telegraph code, characterized by, The method comprises: receiving a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information and a telegraph code encryption strategy; decrypting an encrypted message in the resource transfer information according to the telegraph code encryption strategy corresponding to the first user to obtain a message decryption result; wherein the encrypted message comprises at least one group of encrypted telegraph codes, and each encrypted telegraph code comprises a preset number of encrypted characters; decrypting each encrypted telegraph code based on original characters corresponding to the encrypted characters in the telegraph code encryption strategy to obtain original telegraph codes corresponding to the encrypted telegraph codes, to obtain the message decryption result; translating the message decryption result to obtain a message translation result; replacing a target field in the resource transfer information with the message translation result to obtain target resource transfer information corresponding to the first user, wherein the target field is a field corresponding to the encrypted message.

2. The method of claim 1, wherein, decrypting each encrypted telegraph code based on original characters corresponding to the encrypted characters in the telegraph code encryption strategy to obtain original telegraph codes corresponding to the encrypted telegraph codes, to obtain the message decryption result, comprises: determining each encrypted character in the encrypted telegraph code for each group of encrypted telegraph codes; determining original characters corresponding to each encrypted character based on the telegraph code encryption strategy; replacing each original character with a corresponding encrypted character to obtain the original telegraph code corresponding to the encrypted telegraph code.

3. The method of claim 1, wherein, translating the message decryption result to obtain a message translation result, comprises: translating each original telegraph code to obtain an initial translation result corresponding to each original telegraph code; splicing the translation results corresponding to each original telegraph code according to a translation order corresponding to different original telegraph codes to obtain the message translation result.

4. The method according to any one of claims 1-3, characterized in that, The method further comprises: obtaining reference resource transfer information input by a second user; wherein the resource transfer information and the reference resource transfer information correspond to a same resource transfer record; processing the resource clearing request according to consistency between the target resource transfer information corresponding to the first user and the reference resource transfer information corresponding to the second user.

5. The method according to any one of claims 1-3, characterized in that, decrypting an encrypted message in the resource transfer information according to the telegraph code encryption strategy corresponding to the first user to obtain a message decryption result, comprises: extracting a target field in the resource transfer information; determining whether the resource transfer information contains an encrypted message according to a field format of the target field; decrypting the encrypted message according to the telegraph code encryption strategy corresponding to the first user to obtain a message decryption result, in a case where the resource transfer information contains an encrypted message.

6. A telegraph code translating apparatus characterized by comprising: The apparatus comprises: a request receiving module configured to receive a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information and a telegraph code encryption strategy; a request receiving module configured to receive a resource clearing request input by a first user; wherein the resource clearing request carries resource transfer information and a telegraph code encryption strategy; The message decryption module is configured to perform message decryption on the encrypted message in the resource transfer information according to a telegraph code encryption strategy corresponding to the first user, to obtain a message decryption result. The encrypted message includes at least one group of encrypted telegraph codes, and each encrypted telegraph code includes a preset number of encrypted characters. The message decryption module is configured to decrypt each encrypted telegraph code based on original characters corresponding to each encrypted character in the telegraph code encryption strategy, to obtain original telegraph codes corresponding to each encrypted telegraph code. The message translation module is configured to translate the message decryption result, to obtain a message translation result. The target translation information determination module is configured to replace a target field in the resource transfer information with the message translation result, to obtain target resource transfer information corresponding to the first user, where the target field is a field corresponding to the encrypted message. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method in any one of claims 1-5.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1-5.

9. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1-5.

Citation Information

Patent Citations

  • Construction method and device of telegram code database and telegraph code identification method and device

    CN107943923A

  • Novel password

    CN110941815A