Content sharing method based on different applications and related device thereof

By generating and managing target password information and utilizing whitelist judgment and caching mechanisms, the complex content sharing problem in bank employee applications is solved, improving the efficiency and security of password sharing and reducing the risk of information leakage.

CN115509774BActive Publication Date: 2026-08-04PING AN BANK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PING AN BANK CO LTD
Filing Date
2022-10-25
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

In bank employee applications, the multi-business lines and multi-functionality lead to complex content sharing needs. How to effectively identify and manage various password information and reduce interference from external applications and the risk of password information leakage is a key challenge.

Method used

By generating initial password information, generating target password information and saving it to the clipboard, determining the match between the target password information and the second application and the whitelist, obtaining the first link and saving or clearing the clipboard content, and using the whitelist to determine whether to cache the link to reduce the risk of information leakage.

Benefits of technology

It reduces interference from external applications, lowers user identification costs, improves the efficiency and security of password sharing, and reduces the risk of information leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115509774B_ABST
    Figure CN115509774B_ABST
Patent Text Reader

Abstract

The application relates to a content sharing method based on different application programs and a related device thereof, which comprises the following steps: generating initial password information according to a sharing operation through a first application program; generating target password information according to the initial password information and saving the target password information to a pasteboard; obtaining a first link according to the target password information; judging whether the first link is located in a preset whitelist; if the first link is located in the whitelist, saving the first link to a local cache of a second application program and emptying the content of the pasteboard; and if the first link is located outside the whitelist, directly emptying the content of the pasteboard. The application can reduce the interference of external first application programs, reduce the identification cost of users, improve the efficiency of password sharing, clean the pasteboard in time at the application level, reduce the risk of password information leakage, and improve the security of password sharing by setting the whitelist to judge whether the first link is cached and the pasteboard is emptied.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a content sharing method based on different applications and related devices. Background Technology

[0002] In related technologies, bank staff use a staff application as an important platform for their daily work. This platform connects to numerous business lines and provides a variety of functions, including business processing, data reports, course learning, online branches, and feedback, offering a wealth of content.

[0003] In practical use, the multi-service and multi-functional nature of the bank employee application creates a significant demand for sharing. For example, users frequently need to share high-quality content, surveys, product recommendations, and other information with others. Simultaneously, other external applications also have a need to share with the bank employee application. This diversity and complexity of sharing presents numerous challenges for both users and application administrators, one key issue being the identification of various complex passwords. Summary of the Invention

[0004] In view of this, this application proposes a content sharing method and related device based on different applications, which can reduce interference from external first applications, reduce user identification costs, improve the efficiency of password sharing, and clean up the clipboard in a timely manner at the application level, thereby reducing the risk of password information leakage and improving the security of password sharing.

[0005] According to one aspect of this application, a content sharing method based on different applications is provided. The method includes: generating initial password information corresponding to the shared content based on a sharing target triggered by a sharing operation of a first application and shared content related to a second application; generating target password information for sharing to the second application based on the initial password information, and saving the target password information to the clipboard; obtaining a first link related to the second application based on the target password information; determining whether the first link is within a preset whitelist of the second application; if the first link is within the whitelist, saving the first link to the local cache of the second application and clearing the content of the clipboard; if the first link is outside the whitelist, directly clearing the content of the clipboard.

[0006] Further, based on the initial password information, generating target password information for sharing to the second application includes: obtaining initial access information corresponding to the initial password information; generating an initial link corresponding to the shared content based on the initial access information; obtaining a preset encoding format of the second application; and concatenating the initial link and the preset encoding format to generate target password information for sharing to the second application.

[0007] Furthermore, before obtaining the first link related to the second application based on the target password information, the content sharing method based on different applications further includes: obtaining the running status of the second application; and obtaining the content of the clipboard when the second application switches from the background to the foreground or when the second application restarts and opens.

[0008] Further, obtaining a first link related to the second application based on the target password information includes: determining whether the target password information matches a preset character cluster of the second application; if the target password information matches a preset character cluster of the second application, obtaining a first link related to the second application based on the target password information; if the target password information does not match a preset character cluster of the second application, not obtaining a first link related to the second application.

[0009] Further, determining whether the target password information matches a character cluster preset by the second application includes: obtaining a regular expression corresponding to the target password information; comparing the regular expression corresponding to the target password information with the character cluster preset by the second application to obtain a comparison result corresponding to the target password information; determining whether the target password information matches a character cluster preset by the second application based on the comparison result, wherein, if the regular expression corresponding to the target password information is within a character cluster preset by the second application, the target password information is determined to match a character cluster preset by the second application; if the regular expression corresponding to the target password information is outside a character cluster preset by the second application, the target password information is determined not to match a character cluster preset by the second application.

[0010] Further, determining whether the first link is in the preset whitelist of the second application includes: reading the preset whitelist of the second application; extracting target keywords related to the second application based on the first link; and determining whether the first link is in the preset whitelist of the second application by querying whether all the target keywords are in the whitelist.

[0011] Furthermore, the content sharing method based on different applications also includes: jumping to the target display page of the second application through a preset plugin of the second application; calling the Aladdin method in the target password information on the target display page to obtain a second link related to the second application; and jumping to the target page corresponding to the target password information based on the second link.

[0012] According to another aspect of this application, a content sharing device based on different applications is provided, the content sharing device based on different applications includes: an initial password generation module, used to generate initial password information corresponding to the sharing content based on the sharing target triggered by the sharing operation of a first application and the sharing content related to a second application; a target password generation module, used to generate target password information for sharing to the second application based on the initial password information, and save the target password information to the clipboard; a first link acquisition module, used to acquire a first link related to the second application based on the target password information; a whitelist judgment module, used to determine whether the first link is located in a preset whitelist of the second application; and a clearing module, used to save the first link to the local cache of the second application and clear the content of the clipboard if the first link is located in the whitelist; and to directly clear the content of the clipboard if the first link is located outside the whitelist.

[0013] According to another aspect of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the content sharing method based on different applications.

[0014] According to another aspect of this application, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the content sharing method based on different applications.

[0015] The method generates initial password information through sharing operations based on a first application, generates target password information based on the initial password information, saves the target password information to the clipboard, obtains a first link related to a second application, and then sets a whitelist to determine whether to cache the first link and clear the clipboard. According to various aspects of this application, interference from the external first application can be reduced, the user's identification cost can be reduced, and the efficiency of password sharing can be improved. At the same time, timely clearing of the clipboard at the application level can reduce the risk of password information leakage and improve the security of password sharing. Attached Figure Description

[0016] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.

[0017] Figure 1 A flowchart illustrating a content sharing method based on different applications according to an embodiment of this application is shown.

[0018] Figure 2 This diagram illustrates a content sharing method based on different applications according to an embodiment of this application.

[0019] Figure 3 A block diagram illustrating a content sharing device based on different applications according to an embodiment of this application is shown.

[0020] Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of this application is shown. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0022] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0023] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication between them; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0024] The following disclosure provides many different implementations or examples for carrying out different structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various implementations and / or arrangements discussed. In addition, examples of various specific processes and materials are provided in this application, but those skilled in the art will recognize the application of other processes and / or the use of other materials. In some instances, methods, means, elements, and circuits well known to those skilled in the art are not described in detail in order to highlight the main points of this application.

[0025] Figure 1 A flowchart illustrating a content sharing method based on different applications according to an embodiment of this application is shown. Figure 1 As shown, the content sharing method based on different applications in this application may include:

[0026] Step S1: Generate initial password information corresponding to the sharing content based on the sharing target triggered by the sharing operation of the first application and the sharing content related to the second application;

[0027] The content sharing method based on different applications can be used in an application environment including a first terminal, a second terminal, and a server. The first terminal has the first application installed, and the second terminal has the second application installed. The first terminal and the second terminal can communicate through a server. Both the first terminal and the second terminal can be devices such as mobile phones, tablets, computers, or embedded devices. The server can run on a Linux platform or other platforms such as Windows. The content sharing method based on different applications can run on a server. It is understood that this application does not limit the specific implementation of the first terminal, the second terminal, and the server.

[0028] For example, the second application could be a bank employee app developed by the bank, running on mobile operating systems such as Android or iOS. The first application could be an application developed within the bank other than the employee app, or it could be an external application outside the bank, such as Alipay or NetEase News.

[0029] Specifically, upon detecting a sharing operation by a first user in the first application, the system obtains the sharing target triggered by the sharing operation and the sharing content related to the second application. Based on the sharing target and the sharing content, it generates initial password information corresponding to the sharing content. Here, the first user is the initiator of the sharing.

[0030] In one example, the interface of the first application has a share button. When the first user reads financial news that needs to be shared, they can bring up the share button to perform a sharing operation on the first application. The sharing operation can trigger a corresponding sharing target and sharing content, wherein the sharing target includes the destination to which the sharing content will be sent, and the sharing content includes the interface of the first application that the first user is currently using.

[0031] The initial password information may include a title, the complete initial password text content, and a prompt message. For example, the title may be "Copy current password," and the prompt message may be "Paste to bank application." The title, initial password text content, and prompt message may be displayed sequentially on a fixed page of the first application.

[0032] Step S2: Based on the initial password information, generate target password information for sharing to the second application, and save the target password information to the clipboard;

[0033] The target password information may include a corresponding link and title. The data structure of the target password information can be configured as needed. It is understood that this application does not limit the specific content of the target password information.

[0034] Further, based on the initial password information, target password information for sharing to the second application is generated, including:

[0035] Step S21: Obtain the initial access information corresponding to the initial password information;

[0036] The initial access information may include the current access link and a password parameter. The current access link corresponds to the shared content, and the password parameter is associated with the first application.

[0037] Step S22: Generate an initial link corresponding to the shared content based on the initial access information;

[0038] Specifically, initial access information corresponding to the initial password information is obtained, and an initial link corresponding to the shared content is generated based on the initial access information. Further, a short link corresponding to the initial password information can be obtained based on the current access link and the password parameters, and then a preset generic domain name is deleted from the short link to generate an initial link corresponding to the shared content.

[0039] Step S23: Obtain the preset encoding format of the second application;

[0040] For example, the preset encoding format may include a password encoding format and a page opening type encoding format. Different applications may use different password encoding formats, while the page opening type encoding formats may be the same or different. For instance, different applications may open pages using a pop-up window, a direct page jump, or the application's native page opening method. It is understood that this application does not limit the type of preset encoding format.

[0041] Step S24: Concatenate the initial link and the preset encoding format to generate target password information for sharing to the second application.

[0042] Specifically, the initial link, password encoding format, and page open type encoding format can be concatenated to generate a concatenated field corresponding to the shared content. Then, the concatenated field is transcoded to generate target password information for sharing to the second application.

[0043] Specifically, when the target password information is associated with the password encoding format and page opening type encoding format of the second application, the generated concatenated field already possesses preliminary characteristics that allow the second application to recognize and open it. Next, for the target password information to be recognized and parsed by the second application and to open the corresponding shared content, further judgment needs to be made using the whitelist from this application embodiment.

[0044] Step S3: Obtain the first link related to the second application based on the target password information;

[0045] The first link is associated with the second application. The first link may include a Uniform Resource Locator (URL) corresponding to the shared content. The URL may include letters, numbers, and special characters such as forward slashes associated with the first link.

[0046] Further, obtaining a first link related to the second application based on the target password information includes:

[0047] Step S31: Determine whether the target password information matches the character cluster preset by the second application;

[0048] Since the target password information is generated based on the first application, and given the differences between the first and second applications, it is necessary to first determine whether the target password information matches the second application. Then, based on the fact that the target password information matches the second application, it is further determined whether the first link is in the preset whitelist of the second application.

[0049] Specifically, determining whether the target password information matches a character set preset by the second application includes:

[0050] Step S311: Obtain the regular expression corresponding to the target password information based on the target password information;

[0051] The regular expression corresponding to the target password information may include a string related to the second application. This string may include letters, numbers, and other special characters such as forward slashes. For example, the string related to the second application can be directly extracted from the target password information to obtain the regular expression corresponding to the target password information.

[0052] Step S312: Compare the regular expression corresponding to the target password information with the character cluster preset by the second application to obtain the comparison result corresponding to the target password information;

[0053] Specifically, the character cluster of the second application can be a set of characters pre-set in the configuration file of the second application. Before executing step S312, the server can pre-read the character cluster of the second application.

[0054] Step S313: Determine whether the target password information matches the character cluster preset by the second application based on the comparison result. If the regular expression corresponding to the target password information is within the character cluster preset by the second application, it is determined that the target password information matches the character cluster preset by the second application. If the regular expression corresponding to the target password information is outside the character cluster preset by the second application, it is determined that the target password information does not match the character cluster preset by the second application.

[0055] For example, the character cluster of the second application can be represented as: ^[az][0-9]$. ^ indicates the leading boundary of the character cluster, and $ indicates the trailing boundary. In this case, if the regular expression corresponding to the target password information contains any letter of 'az' and any number from 0 to 9, it indicates that the target password information matches the character cluster preset by the second application; if the regular expression corresponding to the target password information contains neither any letter of 'az' nor any number from 0 to 9, or contains only any letter of 'az' and only any number from 0 to 9, it indicates that the target password information does not match the character cluster preset by the second application.

[0056] Step S32: If the target password information matches the character cluster preset by the second application, obtain the first link related to the second application based on the target password information; if the target password information does not match the character cluster preset by the second application, do not obtain the first link related to the second application.

[0057] Step S32 is performed based on the judgment result of step S31. Step S31 determines whether the target password information matches a preset character cluster of the second application and generates a corresponding matching result. Then, in step S32, the matching result determines whether to obtain the first link related to the second application or not. If it is determined that the first link related to the second application should be obtained, the asynchronous thread can invoke the corresponding network request, and then obtain the first link related to the second application based on the network request.

[0058] Furthermore, before obtaining the first link related to the second application based on the target password information, the content sharing method based on different applications further includes:

[0059] Step S301: Obtain the running status of the second application;

[0060] The running state of the second application can include an active state and an inactive state. In the active state, the second application has two running scenarios: one is that the second application switches from the background to the foreground, and the other is that the second application restarts and is open. The inactive state can refer to the second application not being open, or being forcibly paused through settings options, etc.

[0061] Step S302: When the second application switches from the background to the foreground or restarts and opens, obtain the contents of the clipboard.

[0062] In step S302, either the entire content of the clipboard or a portion of its content can be retrieved. Preferably, the entire content of the clipboard is retrieved. It is worth noting that the clipboard content is retrieved only when the second application is active, for example, when the second application switches from the background to the foreground or restarts and opens. Otherwise, if the second application is inactive, the clipboard content may not be retrieved.

[0063] Step S4: Determine whether the first link is in the whitelist preset by the second application;

[0064] Specifically, determining whether the first link is in the second application's preset whitelist includes:

[0065] Step S41: Read the whitelist preset by the second application;

[0066] The whitelist can be pre-configured in the configuration file of the second application. For example, the whitelist may include multiple preset links, such as www.baidu.com, or keywords related to the links, such as baidu.

[0067] Step S42: Extract target keywords related to the second application based on the first link;

[0068] For example, the first link is www.baidu.com / wenku. In this case, the target keywords "baidu" and "wenku" can be extracted from the first link. If the whitelist includes both "baidu" and "wenku", it indicates that the target keywords are within the whitelist, thus indicating that the first link is within the whitelist preset by the second application. Otherwise, it indicates that the target keywords are outside the whitelist, thus indicating that the first link is outside the whitelist preset by the second application. Alternatively, the whitelist may also include links such as "www.baidu.com". If the first link is www.baidu.com / wenku, it means that the first link is a sub-link of "www.baidu.com", which also indicates that the first link is within the whitelist preset by the second application.

[0069] Step S43: Determine whether the first link is in the whitelist preset by the second application by querying whether all the target keywords are in the whitelist.

[0070] In step S43, the priority of each link or keyword in the preset whitelist can be used to query whether the target keyword is in the whitelist, thereby determining whether the first link is in the preset whitelist of the second application. It is understood that the priority of each link or keyword in the whitelist can be set as needed, and this application does not limit this setting.

[0071] Step S5: If the first link is in the whitelist, save the first link to the local cache of the second application and clear the contents of the clipboard; if the first link is not in the whitelist, directly clear the contents of the clipboard.

[0072] Step S5 is based on the determination result from step S4 regarding whether the first link is within the preset whitelist of the second application. Specifically, if the first link is within the whitelist, it means the content corresponding to the first link can be shared to the second application. In this case, the local cache of the first link in the second application can be saved for further retrieval, while the clipboard content is cleared to reduce the risk of clipboard content information leakage. If the first link is outside the whitelist, it means the content corresponding to the first link cannot be shared to the second application. In this case, the clipboard content can be directly cleared to further reduce the risk of clipboard content information leakage.

[0073] Furthermore, since the password's data structure can contain a title, the title can also be saved to the local cache of the second application when the first link to the second application is saved.

[0074] Furthermore, the content sharing method based on different applications also includes:

[0075] Step S61: Redirect to the target display page of the second application through the preset plugin of the second application;

[0076] The target display page for the second application can be its homepage. In one example, a preset plugin for the second application is associated with its homepage. When the preset plugin is clicked, the second application automatically redirects to the target display page.

[0077] Step S62: On the target display page, invoke the Aladdin method in the target password information to obtain the second link related to the second application;

[0078] For example, the Aladdin method is `aladdin.banka_command.getCommandInfo`. Assume the target password information includes the following data structure:

[0079] {"data":{"url":"sicaih5 / dist / module / colMainPage.html","title":"Play with Pocket Coins, We're Waiting for You!"}}

[0080] Here, `url` can be the second link, and `title` can be the title. By calling this Aladdin method, the second link related to the second application and its corresponding title can be obtained.

[0081] Step S63: Redirect to the target page corresponding to the target password information based on the second link.

[0082] The second link can be used to directly jump to the page pointed to by the target password information from the target display page, and the page pointed to by the target password information is the target page.

[0083] Figure 2 This diagram illustrates a content sharing method based on different applications according to an embodiment of this application.

[0084] like Figure 2 As shown, for example, the server can first obtain the sharing operation of the first application, then generate initial password information corresponding to the sharing content based on the sharing target triggered by the sharing operation of the first application and the sharing content related to the second application, and generate target password information for sharing to the second application based on the initial password information, while saving the target password information to the clipboard.

[0085] Next, the running status of the second application can be determined. If the second application is active, the clipboard content can be retrieved; if the second application is inactive, there will be no response. After retrieving the clipboard content, a first link related to the second application can be obtained based on the target password information, and it can be determined whether the first link is in the second application's preset whitelist. If the first link is in the whitelist, the first link is saved to the second application's local cache, and the clipboard content is cleared; if the first link is not in the whitelist, the clipboard content is directly cleared.

[0086] exist Figure 2 Furthermore, other decision branches can be configured. For example, before obtaining the first link, regular expression matching can be used to determine whether the target password information matches a character cluster preset by the second application. Other logical branches of the method can be found in the content sharing method based on different applications described above, and will not be elaborated further.

[0087] In summary, by generating initial password information through sharing operations based on a first application, generating target password information based on the initial password information, saving the target password information to the clipboard, obtaining a first link related to a second application, and then setting a whitelist to determine whether to cache the first link and clear the clipboard, this application can reduce interference from external first applications, reduce user identification costs, improve the efficiency of password sharing, and at the same time, timely clearing of the clipboard at the application level can reduce the risk of password information leakage and improve the security of password sharing.

[0088] Figure 3 A block diagram illustrating a content sharing device based on different applications according to an embodiment of this application is shown.

[0089] like Figure 3 As shown, the content sharing device 30 based on different applications in this application embodiment may include:

[0090] The initial password generation module 31 is used to generate initial password information corresponding to the sharing content based on the sharing target triggered by the sharing operation of the first application and the sharing content related to the second application.

[0091] The target password generation module 32 is used to generate target password information for sharing to the second application based on the initial password information, and save the target password information to the clipboard;

[0092] The first link acquisition module 33 is used to acquire a first link related to the second application based on the target password information;

[0093] The whitelist determination module 34 is used to determine whether the first link is in the whitelist preset by the second application;

[0094] The clear module 35 is used to save the first link to the local cache of the second application and clear the contents of the clipboard if the first link is in the whitelist; if the first link is not in the whitelist, the contents of the clipboard are cleared directly.

[0095] In the embodiments of this application, the content sharing device based on different applications may further include other modules. It is understood that this application does not limit the specific composition of the content sharing device based on different applications. For specific details regarding the content sharing device based on different applications, please refer to the content sharing method based on different applications, which will not be repeated here.

[0096] In addition, this application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the content sharing method based on different applications.

[0097] Furthermore, this application also provides an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the content sharing method based on different applications.

[0098] Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of this application is shown.

[0099] like Figure 4 As shown, the electronic device can be used to implement the content sharing method based on different applications. Specifically, the electronic device may include a computer system. It should be noted that... Figure 4 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0100] like Figure 4 As shown, the computer system includes a Central Processing Unit (CPU) 1801, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1802 or programs loaded from storage portion 1808 into Random Access Memory (RAM) 1803, such as performing the methods described in the above embodiments. The RAM 1803 also stores various programs and data required for system operation. The CPU 1801, ROM 1802, and RAM 1803 are interconnected via a bus 1804. An Input / Output (I / O) interface 1805 is also connected to the bus 1804.

[0101] The following components are connected to I / O interface 1805: an input section 1806 including a keyboard, mouse, etc.; an output section 1807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to I / O interface 1805 as needed. Removable media 1811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1810 as needed so that computer programs read from them can be installed into storage section 1808 as needed.

[0102] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1809, and / or installed from removable medium 1811. When the computer program is executed by central processing unit (CPU) 1801, it performs various functions defined in the system of this application.

[0103] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0105] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0106] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.

[0107] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0108] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.

[0109] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0110] The content sharing methods and related devices based on different applications provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of this application. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A content sharing method based on different applications, characterized in that, The method includes: Based on the sharing target triggered by the sharing operation through the first application and the sharing content related to the second application, an initial password information corresponding to the sharing content is generated; the second application is the bank's application. Based on the initial password information, obtain the initial access information corresponding to the initial password information; based on the initial access information, generate an initial link corresponding to the shared content; obtain the preset encoding format of the second application; concatenate the initial link and the preset encoding format to generate target password information for sharing to the second application, and save the target password information to the clipboard; Obtain the running status of the second application; when the second application switches from the background to the foreground or restarts and opens, obtain the contents of the clipboard; if the second application is inactive, do not obtain the contents of the clipboard. Obtain a first link related to the second application based on the target password information; Determine whether the first link is in the whitelist preset by the second application to reduce interference from external applications; If the first link is in the whitelist, save the first link to the local cache of the second application and clear the contents of the clipboard; if the first link is not in the whitelist, directly clear the contents of the clipboard to reduce the risk of password information leakage. The user is redirected to the target display page of the second application via a preset plugin; on the target display page, the Aladdin method in the target password information is invoked to obtain a second link related to the second application; and the user is redirected to the target page corresponding to the target password information based on the second link.

2. The content sharing method based on different applications according to claim 1, characterized in that, Obtaining a first link related to the second application based on the target password information includes: Determine whether the target password information matches a character set preset by the second application; If the target password information matches a character set preset by the second application, a first link related to the second application is obtained based on the target password information; if the target password information does not match a character set preset by the second application, the first link related to the second application is not obtained.

3. The content sharing method based on different applications according to claim 2, characterized in that, Determining whether the target password information matches a character set preset by the second application includes: Obtain the regular expression corresponding to the target password information based on the target password information; The regular expression corresponding to the target password information is compared with the character cluster preset by the second application to obtain the comparison result corresponding to the target password information; Based on the comparison result, it is determined whether the target password information matches the character cluster preset by the second application. Specifically, if the regular expression corresponding to the target password information is within the character cluster preset by the second application, it is determined that the target password information matches the character cluster preset by the second application; if the regular expression corresponding to the target password information is outside the character cluster preset by the second application, it is determined that the target password information does not match the character cluster preset by the second application.

4. The content sharing method based on different applications according to claim 1, characterized in that, Determining whether the first link is in the preset whitelist of the second application includes: Read the whitelist preset by the second application; Extract target keywords related to the second application based on the first link; By querying whether all the target keywords are within the whitelist, it can be determined whether the first link is within the whitelist preset by the second application.

5. A content sharing device based on different applications, characterized in that, The content sharing device based on different applications includes: The initial password generation module is used to generate initial password information corresponding to the sharing content based on the sharing target triggered by the sharing operation of the first application and the sharing content related to the second application; the second application is the bank's application. The target password generation module is used to obtain initial access information corresponding to the initial password information based on the initial password information; generate an initial link corresponding to the shared content based on the initial access information; obtain a preset encoding format of the second application; concatenate the initial link and the preset encoding format to generate target password information for sharing to the second application, and save the target password information to the clipboard. The first link acquisition module is used to acquire the running status of the second application; acquire the content of the clipboard when the second application switches from the background to the foreground or restarts and opens; if the second application is inactive, the content of the clipboard is not acquired; and acquire the first link related to the second application according to the target password information. The whitelist determination module is used to determine whether the first link is in the whitelist preset by the second application, thereby reducing interference from external applications. The clearing module is used to save the first link to the local cache of the second application and clear the contents of the clipboard if the first link is within the whitelist; if the first link is outside the whitelist, the contents of the clipboard are cleared directly to reduce the risk of password information leakage. The display module is used to jump to the target display page of the second application through a preset plugin of the second application; on the target display page, call the Aladdin method in the target password information to obtain a second link related to the second application; and jump to the target page corresponding to the target password information based on the second link.

6. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the content sharing method based on different applications as described in any one of claims 1 to 4.

7. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the content sharing method based on different applications as described in any one of claims 1 to 4.