Network data processing method and system based on RC4 encryption algorithm and XB algorithm
By using RC4 encryption and XB algorithms to process network data, this method solves the problems of slow, inefficient, and poor real-time performance in the video publishing process for e-commerce platforms. It enables fast, secure video data publishing and precise targeting, and is suitable for network data processing on e-commerce platforms.
Patent Information
- Application Number
- CN202410864118.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-30
- Publication Date
- 2026-03-17
- Estimated Expiration
- 2044-06-30
AI Technical Summary
In existing technologies, the network data processing of e-commerce platforms suffers from slow processes, low efficiency, and poor real-time performance during the release of product promotion videos. In particular, the AES and DES algorithms perform poorly in scenarios with high complexity and real-time requirements.
The system uses RC4 and XB encryption algorithms to process network data. It obtains product and video information through the WinHttp module, performs deduplication and sorting, and then encrypts the data. It combines real-time product promotion strategies to filter target arrays and transmits the data to the user's homepage to publish trending product videos.
It enables the rapid publishing of product promotion videos on e-commerce platforms, improving efficiency and real-time performance while ensuring data security. It is suitable for efficient processing and precise targeting of massive amounts of data.
Smart Images

Figure CN118797158B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, specifically to a network data processing method and system based on the RC4 encryption algorithm and the XB algorithm. Background Technology
[0002] With the rapid development of internet technology, e-commerce platforms have become a major channel for consumers to shop. The rapid rise of social e-commerce has attracted a large number of users and merchants. Some e-commerce platforms possess unique social attributes and strong traffic conversion capabilities. Active merchants on these platforms include many influencers and online celebrities who convey product information to consumers through product-selling videos. However, with the expansion of the user base, increasingly fierce market competition, and a growing variety of products on these platforms, finding potentially best-selling products from a massive amount of information, creating attractive product-selling content, and efficiently managing and promoting this content have become major challenges for influencers and agencies.
[0003] In related technologies, to address the network data processing issues faced by e-commerce live-streaming sales, AES or DES algorithms are typically used in code writing to obtain target product information and video information. In scenarios that assist users in e-commerce live-streaming sales, the real-time nature of network data is crucial for users. However, because AES and DES algorithms are relatively complex to apply, they are not suitable for scenarios with high real-time requirements, resulting in a slow, inefficient, and poor real-time publishing process for live-streaming videos. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this application provides a network data processing method and system based on the RC4 encryption algorithm and the XB algorithm, which solves the problems of slow, inefficient, and poor real-time performance of video network data publishing processes faced by users in e-commerce platform live-streaming sales.
[0005] To achieve the above objectives, the present invention provides the following technical solution:
[0006] In a first aspect, embodiments of this application provide a network data processing method based on the RC4 encryption algorithm and the XB algorithm. The method includes: upon verification of a received first instruction message, accessing a target webpage using a pre-set WinHttp module in a collection script to obtain product information and video data from the target webpage; performing deduplication and sorting processing on the video data to obtain a first database; encrypting the data in the first database using a pre-set RC4 algorithm program and an XB algorithm program to obtain a second database; receiving input second instruction information and selecting a target array from the second database based on the second instruction information; the second instruction information representing a real-time sales strategy; transmitting the data in the target array to multiple user homepages and decoding it to publish videos related to popular products on the e-commerce platform on the user homepages.
[0007] According to a first aspect of the embodiments of this application, the target webpage includes a first target webpage and a second target webpage, and the product information includes first product information and second product information; when the received first instruction information passes verification, the target webpage is accessed based on a preset WinHttp module in the acquisition script to obtain product information and video data information from the target webpage, including: accessing a preset first target webpage based on a preset WinHttp module in the acquisition script, and collecting first product information from the first target webpage; filtering the first product information according to the current product popularity index and commission ratio index to obtain second product information; and based on the second product information, accessing the second target webpage through the WinHttp module, and using regular expressions to parse and extract video data information from the second target webpage; wherein, the video data information is related to the second product information and includes a video title, video link, and video author.
[0008] According to a first aspect of the embodiments of this application, the first target webpage is an e-commerce platform website, and the second target webpage is a video website that cooperates with multiple user homepages belonging to the same platform.
[0009] According to a first aspect of the embodiments of this application, the aforementioned encryption of data in a first database based on a preset RC4 algorithm program and an XB algorithm program to obtain a second database includes: determining the urldata and postdata corresponding to the first database in a data transmission POST request; processing the urldata and postdata based on the preset XB algorithm program to obtain a target byte set; determining the user agent byte set corresponding to the XB algorithm program; inputting the target byte set and the user agent byte set into the preset RC4 algorithm program; performing Base64 encoding on the target byte set and the user agent byte set to obtain a first key; encrypting the first database using RC4 based on the first key and a preset specific key to obtain the target database; and converting the encrypted target database into Base64 text to obtain the second database for transmission over a network.
[0010] According to a first aspect of the embodiments of this application, the aforementioned processing of urldata and postdata based on a preset XB algorithm program to obtain a target byte set includes: converting urldata and postdata into a first byte set and determining the type corresponding to urldata and postdata; when type is 0, converting the first byte set into UTF-8 encoding and performing MD5 hash processing to obtain a hash array; converting the hash array into a second byte set and determining the two bytes on the right side of the second byte set as the target byte set; when type is not 0, directly converting urldata and postdata into byte set form to obtain the target byte set.
[0011] According to a first aspect of the embodiments of this application, before accessing the target webpage based on the WinHttp module preset in the acquisition script and obtaining product information and video data information from the target webpage, the network data processing method based on the RC4 encryption algorithm and the XB algorithm further includes: receiving the input first instruction information, the first instruction information including a username and password; generating an HTTP request based on the first instruction information and sending the HTTP request to the server to detect specific text of the verification information in the verification HTTP request; determining whether the first instruction information has passed verification based on the detection and verification result of the specific text; and performing a status check by parsing the response returned by the server if the first instruction information has passed verification.
[0012] According to a first aspect of the embodiments of this application, the aforementioned network data processing method based on the RC4 encryption algorithm and the XB algorithm further includes: executing tasks concurrently through a preset thread management submodule; processing network connection problems and file operation errors during the data processing process through a preset analysis submodule, and recording them through logs to facilitate debugging and problem localization.
[0013] Secondly, embodiments of this application provide a network data processing system based on the RC4 encryption algorithm and the XB algorithm. This system includes an acquisition module, a processing module, an encryption module, a filtering module, and a transmission module. The acquisition module, upon verification of the received first instruction information, accesses a target webpage using a preset WinHttp module in the acquisition script to obtain product information and video data from the target webpage. The processing module performs deduplication and sorting on the video data to obtain a first database. The encryption module encrypts the data in the first database based on preset RC4 and XB algorithm programs to obtain a second database. The filtering module receives input second instruction information and filters and determines a target array from the second database based on the second instruction information. The second instruction information can represent a real-time sales strategy. The transmission module transmits the data in the target array to multiple user homepages and decodes it to publish videos related to popular products on the e-commerce platform on the user homepages.
[0014] Thirdly, embodiments of this application provide an electronic device, which includes: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, it implements the network data processing method based on the RC4 encryption algorithm and the XB algorithm described in the first aspect above.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a program or instructions that, when executed by a processor, implement the network data processing method based on the RC4 encryption algorithm and the XB algorithm described in the first aspect above.
[0016] This application provides a network data processing method and system based on the RC4 encryption algorithm and the XB algorithm. Compared with the prior art, it has the following advantages:
[0017] This application obtains product information from target web pages and identifies the corresponding video data. Through deduplication and sorting, a first database is obtained. The data in the first database is then encrypted using RC4 and XB algorithms to obtain a second database. To identify popular products on e-commerce platforms, a target array is filtered from the second database using second instruction information corresponding to the current real-time sales strategy. This target array, consisting of attractive content selected from massive amounts of video data, is then pushed to multiple user homepages. The RC4 encryption algorithm provides high real-time data acquisition and strong security. Based on the method provided in this application, users can quickly execute tasks through automation technology during e-commerce platform sales promotions, resulting in a fast, efficient, and real-time video network data publishing process. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating the network data processing method based on the RC4 encryption algorithm and the XB algorithm provided in the embodiments of this application;
[0020] Figure 2 yes Figure 1 An exemplary process diagram of S110;
[0021] Figure 3 yes Figure 1 An exemplary process diagram of S130;
[0022] Figure 4 This is a schematic diagram of the structure of a network data processing system based on the RC4 encryption algorithm and the XB algorithm provided in the embodiments of this application;
[0023] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are described clearly and completely. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0026] This application provides a network data processing method and system based on the RC4 encryption algorithm and the XB algorithm, which solves the problems of slow, inefficient, and poor real-time performance of video network data publishing processes faced by users in e-commerce platform live-streaming sales.
[0027] The technical solution in this application is to solve the above-mentioned technical problems, and the general idea is as follows:
[0028] With the rapid development of internet technology, e-commerce platforms have become a major channel for consumers to shop in today's digital age. The rapid rise of social e-commerce has attracted a large number of users and merchants. Active merchants on these platforms include many influencers and online celebrities who interact with consumers through live-streaming sales and other methods. E-commerce platforms have extensive penetration capabilities in lower-tier markets, and some platforms possess unique social attributes and strong traffic conversion capabilities. Influencers and agencies deliver product information to a wide range of consumers and guide consumer behavior through carefully crafted sales videos.
[0029] However, with the expansion of the user base and the increasing market competition, the variety of products on the platform has also become increasingly diverse, providing ample room for development for influencers and agencies. But ensuring data security and efficient data transmission, quickly identifying potentially best-selling products from a massive amount of product information, creating truly engaging sales content, and efficiently managing and promoting this content have become major challenges for influencers and agencies.
[0030] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0031] The following section first introduces a network data processing method based on the RC4 encryption algorithm and the XB algorithm provided in the embodiments of this application.
[0032] This application provides a flowchart illustrating a network data processing method based on the RC4 encryption algorithm and the XB algorithm, as shown in the embodiments below. Figure 1 As shown, the method may include the following steps S110-S150.
[0033] S110. If the received first instruction information passes verification, the target webpage is accessed based on the WinHttp module preset in the acquisition script to obtain product information and video data information from the target webpage.
[0034] S120. Perform deduplication and sorting on the video data to obtain the first database.
[0035] S130. Based on the preset RC4 algorithm program and XB algorithm program, the data in the first database is encrypted to obtain the second database.
[0036] S140: Receive the input second instruction information, and determine the target array from the second database based on the second instruction information; the second instruction information can represent the real-time sales strategy.
[0037] S150. Transmit the data in the target array to multiple user homepages and decode it to publish videos related to popular products on the e-commerce platform on the user homepages.
[0038] In the embodiments of this application, it can be understood that the XB algorithm is the X-Bogus algorithm; the RC4 algorithm is a stream cipher algorithm that achieves encryption and decryption by performing an XOR operation on plaintext data and a key. The RC4 algorithm encrypts data by generating a pseudo-random key stream, and the generation of the key stream is based on the transformation of the initial key and the permutation box.
[0039] This application obtains popular product information from target web pages and identifies the corresponding video data. This data is then encrypted using RC4 and XB algorithms to obtain a second database. To determine popular product information on e-commerce platforms, a target array is filtered from the second database using second instruction information corresponding to the current real-time sales strategy. This target array, consisting of attractive content selected from massive amounts of video data, is then pushed to multiple user homepages. Based on this, users can quickly execute tasks through automation during e-commerce platform sales, resulting in a fast, efficient, and real-time video network data publishing process.
[0040] In one example, this application includes a user interface interaction module. After obtaining the second database, based on this user interface interaction module, the user can determine the second instruction information corresponding to different sales strategies by entering a file path, thereby achieving the purpose of filtering the target array. In addition, the user interface interaction module can also provide functions such as starting collection, stopping collection, and deleting selected items.
[0041] In some embodiments, during the process of transmitting data in the target array to the user's homepage, this application provides a security verification procedure. When encountering security verification, the security verification procedure in this application can prompt the user to perform a manual verification operation.
[0042] In some embodiments, the target webpage includes a first target webpage and a second target webpage, and the product information includes first product information and second product information. Please refer to... Figure 2If the first instruction information received is verified, the target webpage is accessed based on the WinHttp module preset in the acquisition script to obtain product information and video data information from the target webpage. Specifically, S110 may include the following steps:
[0043] S210. Access the preset first target webpage based on the WinHttp module preset in the collection script, and collect the first product information from the first target webpage.
[0044] S220. Based on the current product popularity index and commission rate index, filter the first product information to obtain the second product information.
[0045] S230. Based on the second product information, access the second target webpage through the WinHttp module, and use regular expressions to parse and extract video data information from the second target webpage; wherein, the video data information is related to the second product information and includes video title, video link and video author.
[0046] In this embodiment, it is understood that with the development of e-commerce, the product categories on shopping websites are becoming increasingly complex. When extracting video data information from a second target webpage based on product information, the accuracy of the product information extraction directly affects the degree to which the video data information is related to the current product popularity. Therefore, by filtering the first product information according to the current product popularity index and commission ratio index, more accurate second product information can be obtained, which is more aligned with the target audience.
[0047] In addition, this application can comprehensively analyze video data information, providing multi-dimensional data such as video title, video link, duration, size, and release time, so that users can perform targeted optimization.
[0048] In one example, the first target webpage is an e-commerce platform website, and the second target webpage is a video website that collaborates with multiple user homepage platforms.
[0049] In some embodiments, please refer to Figure 3 The aforementioned RC4 and XB algorithm programs are used to encrypt the data in the first database to obtain the second database. Specifically, S130 may include the following steps:
[0050] S310. Determine the urldata and postdata corresponding to the first database in the data transmission POST request.
[0051] S320. Based on the preset XB algorithm program, the urldata and postdata are processed to obtain the target byte set.
[0052] S330. Determine the user agent byte set corresponding to the XB algorithm program, input the target byte set and the user agent byte set into the preset RC4 algorithm program, and perform Base64 encoding on the target byte set and the user agent byte set to obtain the first key.
[0053] S340. Based on the first key and a preset specific key, the first database is encrypted using RC4 to obtain the target database.
[0054] S350. Convert the encrypted target database into Base64 text to obtain a second database for transmission over the network.
[0055] In this application embodiment, data security is effectively guaranteed by double encryption using a first key and a specific key; compared with the AES algorithm, the RC4 algorithm program has higher real-time data acquisition; the RC4 algorithm program also provides higher security compared with the DES algorithm; the RC4 algorithm program can encrypt streaming data, such as network transmission and data transmission, and its wide range of applications can be fully applied to the network data processing method based on the RC4 encryption algorithm and the XB algorithm provided in this application.
[0056] In one example, during Base64 encoding of the target byte set and the user agent byte set, the first two bytes and the reverse byte of the target byte set can be used in the operation.
[0057] In one example, the aforementioned XB algorithm-based program processes urldata and postdata to obtain the target byte set, i.e., S320 may specifically include the following steps:
[0058] S410. Convert urldata and postdata to the first byte set and determine the type corresponding to urldata and postdata.
[0059] S420. When type is 0, convert the first byte set to UTF-8 encoding and perform MD5 hashing to obtain a hash array.
[0060] S430. Convert the hash array into a second byte set, and determine the two bytes to the right of the second byte set as the target byte set.
[0061] S440. If type is not 0, directly convert urldata and postdata into byte set format to obtain the target byte set.
[0062] In one example, if the received first instruction information passes verification, before accessing the target webpage based on the WinHttp module preset in the acquisition script and obtaining product information and video data from the target webpage, i.e. before the aforementioned S110, the network data processing method based on the RC4 encryption algorithm and the XB algorithm may further include the following steps:
[0063] S106. Receive the first instruction information input, the first instruction information including username and password;
[0064] S107. Based on the first instruction information, generate an HTTP request and send the HTTP request to the server to detect specific text of the verification information in the HTTP request;
[0065] S108. Based on the detection and verification results of specific text, determine whether the first instruction information passes the verification;
[0066] S109. If the first instruction information passes verification, perform a status check by parsing the response returned by the server.
[0067] In the embodiments of this application, it can be understood that an HTTP request is then sent to the server for verification, and a login verification mechanism detects specific text to determine whether the login is successful; after successful login, a status check is performed, and the status is determined by parsing the response returned by the server; if it fails, a retry is performed; the specific text can be that the user's login status is normal.
[0068] In some embodiments, the aforementioned network data processing method based on the RC4 encryption algorithm and the XB algorithm further includes: executing tasks concurrently through a preset thread management submodule; processing network connection problems and file operation errors during data processing through a preset analysis submodule, and recording them through logs to facilitate debugging and problem localization.
[0069] In one example, the thread management submodule can download and capture videos in batches, improving the program's execution efficiency.
[0070] In some embodiments, the aforementioned network data processing method based on the RC4 encryption algorithm and the XB algorithm further includes: performing operations such as directory creation, file movement, and file writing through a preset file operation module to store and manage the collected data.
[0071] In some embodiments, this application also provides a network data processing system 500 based on the RC4 encryption algorithm and the XB algorithm, such as Figure 4 As shown, the system 500 may include the following modules:
[0072] The acquisition module 510 is used to access the target webpage based on the WinHttp module preset in the acquisition script, and obtain product information and video data information from the target webpage, provided that the first instruction information received has been verified.
[0073] The processing module 520 is used to deduplicate and sort the video data to obtain the first database.
[0074] The encryption module 530 is used to encrypt the data in the first database based on the preset RC4 algorithm program and XB algorithm program to obtain the second database.
[0075] The filtering module 540 is used to receive the input second instruction information and filter and determine the target array from the second database based on the second instruction information; the second instruction information can represent the real-time sales strategy.
[0076] The transmission module 550 is used to transmit data from the target array to multiple user homepages and decode it to publish videos related to popular products on the e-commerce platform on the user homepages.
[0077] According to embodiments of this application, any and multiple modules among the acquisition module 510, processing module 520, encryption module 530, filtering module 540, and transmission module 550 can be combined into one module, or any one of these modules can be split into multiple modules. Alternatively, at least some of the functions of one or more of these modules can be combined with at least some of the functions of other modules and implemented in one module.
[0078] In some embodiments, the aforementioned network data processing system 500 based on the RC4 encryption algorithm and the XB algorithm further includes a detection and verification module 509, which can be specifically used to: receive input first instruction information, the first instruction information including a username and password; generate an HTTP request based on the first instruction information and send the HTTP request to the server to detect and verify specific text of the verification information in the HTTP request; determine whether the first instruction information passes verification based on the detection and verification result of the specific text; and perform a status check by parsing the response returned by the server if the first instruction information passes verification.
[0079] In some embodiments, the acquisition module 510 may be specifically used to: access a preset first target webpage based on a WinHttp module preset in the acquisition script, and acquire first product information from the first target webpage; filter the first product information according to the current product popularity index and commission ratio index to obtain second product information; based on the second product information, access the second target webpage through the WinHttp module, and use regular expressions to parse and extract video data information from the second target webpage; wherein, the video data information is related to the second product information and includes video title, video link and video author.
[0080] In some embodiments, the encryption module 530 may specifically include:
[0081] The first determining submodule 531 is used to determine the urldata and postdata corresponding to the first database in the data transmission POST request.
[0082] The byte determination submodule 532 is used to process urldata and postdata based on a preset XB algorithm program to obtain the target byte set.
[0083] The second determining submodule 533 is used to determine the user agent byte set corresponding to the XB algorithm program. The target byte set and the user agent byte set are input into the preset RC4 algorithm program, and the target byte set and the user agent byte set are Base64 encoded to obtain the first key.
[0084] The encryption submodule 534 is used to perform RC4 encryption on the first database based on the first key and a preset specific key to obtain the target database.
[0085] The conversion submodule 535 is used to convert the encrypted target database into Base64 text to obtain a second database for transmission over the network.
[0086] In some embodiments, the aforementioned byte determination submodule 532 may specifically include:
[0087] The conversion determination unit 5321 is used to convert urldata and postdata into the first byte set and determine the type corresponding to urldata and postdata.
[0088] Encoding unit 5322 is used to convert the first byte set into UTF-8 encoding and perform MD5 hashing to obtain a hash array when type is 0.
[0089] The byte determination unit 5323 is used to convert the hash array into a second byte set and determine the two bytes to the right of the second byte set as the target byte set.
[0090] Byte conversion unit 5324 is used to directly convert urldata and postdata into byte set form to obtain the target byte set when type is not 0.
[0091] Figure 4 Each module in the system shown has the function of implementing each step in the aforementioned network data processing method based on the RC4 encryption algorithm and the XB algorithm, and can achieve the corresponding technical effect. For the sake of brevity, it will not be elaborated here.
[0092] In some embodiments, the development process of the aforementioned network data processing system 500 based on the RC4 encryption algorithm and the XB algorithm follows the principles of agile development. To ensure rapid iteration and continuous optimization, the development process of the network data processing system 500 based on the RC4 encryption algorithm and the XB algorithm may specifically include the following steps:
[0093] 1. Needs Analysis: Communicate closely with influencers to clarify product needs and functional priorities.
[0094] 2. Design Phase: Based on the requirements analysis results, complete the product prototype design and UI / UX design.
[0095] 3. Coding Implementation: Front-end and back-end developers carry out coding work according to the design documents.
[0096] 4. Unit testing and integration testing: Unit testing is performed after each module is developed, and integration testing is performed after integration to ensure compatibility and stability between modules.
[0097] 5. Performance Optimization: Specific optimizations are performed to address performance bottlenecks identified during testing, thereby improving product performance.
[0098] 6. Official Launch: After thorough testing and adjustments, the product is officially launched and its operational status is continuously monitored.
[0099] In some embodiments, after the development of the network data processing system 500 based on the RC4 encryption algorithm and the XB algorithm is completed, this application also provides a system testing scheme, which may specifically include the following steps:
[0100] 1. Unit testing: Perform detailed unit tests on each module to ensure the correctness of the internal logic of the module.
[0101] 2. Integration Testing: Simulate real-world scenarios and perform combined testing on each module to ensure that the modules work together flawlessly.
[0102] 3. Performance testing: Evaluate the product's response speed and stability under high concurrency conditions through stress testing and load testing.
[0103] 4. Security Testing: Conduct penetration testing and vulnerability scanning on the product to ensure the security and privacy protection of user data.
[0104] 5. Compatibility testing: Test on different devices and operating systems to ensure that the product can operate normally in various environments.
[0105] 6. User Acceptance Testing: Invite some top influencers to conduct user acceptance testing and collect their feedback to further optimize the product.
[0106] In some embodiments, this application provides an electronic device, the structural schematic of which is shown below. Figure 5 As shown.
[0107] The electronic device may include a processor 610 and a memory 620 storing computer program instructions.
[0108] Specifically, the processor 610 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0109] Memory 620 may include mass storage for data or instructions. For example, and not limitingly, memory 620 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 620 may include removable or non-removable (or fixed) media. Where appropriate, memory 620 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 620 is non-volatile solid-state memory.
[0110] Memory 620 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory 620 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it can perform the operations described in any of the network data processing methods based on the RC4 encryption algorithm and the XB algorithm in the above embodiments.
[0111] The processor 610 reads and executes computer program instructions stored in the memory 620 to implement any of the network data processing methods based on the RC4 encryption algorithm and the XB algorithm in the above embodiments.
[0112] In one example, the electronic device may also include a communication interface 630 and a bus 600. Wherein, such as Figure 5 As shown, the processor 610, memory 620, and communication interface 630 are connected via bus 600 and communicate with each other.
[0113] The communication interface 630 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0114] Bus 600 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 600 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.
[0115] Furthermore, in conjunction with the network data processing methods based on the RC4 encryption algorithm and the XB algorithm in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the network data processing methods based on the RC4 encryption algorithm and the XB algorithm in the above embodiments.
[0116] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0117] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0118] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0119] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0120] In summary, compared with the prior art, this application has the following beneficial effects:
[0121] 1. This application aims to identify popular product information on e-commerce platforms by filtering target arrays from a second database using second instruction information corresponding to the current real-time sales strategy, and pushing the target array data to multiple user homepages. The target array consists of attractive content filtered from massive amounts of video data. By accurately targeting the target array to the target audience, the application improves sales efficiency and conversion rate, and expands the integration of e-commerce platforms, video websites, and live-streaming sales.
[0122] 2. This application uses the RC4 algorithm and the XB algorithm to encrypt the data in the first database to obtain the second database. The RC4 encryption algorithm has high real-time data acquisition performance, as well as high security and applicability. In the application scenario of live-streaming sales on e-commerce platforms, the automated technology can quickly execute tasks, resulting in a fast, efficient, and real-time video network data publishing process.
[0123] 3. This application can filter the first product information in real time based on product popularity indicators and commission rate indicators to obtain the second product information; by deeply integrating the platform's data resources, it can provide users with real-time data query of popular products, including key information such as commission rate and commission amount, in order to lock in high-yield popular products.
[0124] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, 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. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A network data processing method based on RC4 encryption algorithm and XB algorithm, characterized in that, The method comprises the following steps: In the case that the received first instruction information passes verification, based on the WinHttp module preset in the collection script, the target webpage is accessed, and the commodity information and video data information are obtained from the target webpage; The video data information is de-duplicated and sorted to obtain a first database; Based on the preset RC4 algorithm program and XB algorithm program, the data in the first database is encrypted to obtain a second database; the XB algorithm is X Bogus algorithm; The input second instruction information is received, and based on the second instruction information, a target array is determined from the second database; the second instruction information can represent real-time goods carrying strategies; The data in the target array is transmitted to a plurality of user homepages, and decoded to publish videos related to hot commodities in the e-commerce platform on the user homepages; The target webpage includes a first target webpage and a second target webpage, and the commodity information includes first commodity information and second commodity information; in the case that the received first instruction information passes verification, based on the WinHttp module preset in the collection script, the target webpage is accessed, and the commodity information and video data information are obtained from the target webpage, which comprises: Based on the WinHttp module preset in the collection script, the first target webpage is accessed, and the first commodity information is collected from the first target webpage; According to the current commodity heat index and the commission rate index, the first commodity information is filtered to obtain the second commodity information; Based on the second commodity information, the second target webpage is accessed by the WinHttp module, and the video data information is parsed and extracted from the second target webpage using a regular expression; The video data information is related to the second commodity information and includes video title, video link and video author; The data in the first database is encrypted based on the preset RC4 algorithm program and XB algorithm program to obtain a second database, which comprises: Determine the urldata and postdata corresponding to the first database in the data transmission POST request; Based on the preset XB algorithm program, the urldata and the postdata are processed to obtain a target byte set; Determine the user agent byte set corresponding to the XB algorithm program, input the target byte set and the user agent byte set into the preset RC4 algorithm program, and perform Base64 encoding on the target byte set and the user agent byte set to obtain a first key; Based on the first key and a preset specific key, the first database is RC4 encrypted to obtain a target database; The encrypted target database is converted into a Base64 text to obtain a second database for transmission in the network.
2. The network data processing method based on RC4 encryption algorithm and XB algorithm according to claim 1, characterized in that, The first target webpage is an e-commerce platform website, and the second target webpage is a video website cooperating with the platform to which the plurality of user homepages belong.
3. The network data processing method based on RC4 encryption algorithm and XB algorithm according to claim 1, characterized in that, Based on the preset XB algorithm program, the urldata and the postdata are processed to obtain a target byte set, which comprises: Convert the urldata and the postdata into a first byte set, and determine the type corresponding to the urldata and the postdata; In the case of the type being 0, the first byte set is converted into UTF-8 encoding, and MD5 hash processing is performed to obtain a hash array; The hash array is converted into a second byte set, and the two bytes on the right side of the second byte set are determined as the target byte set; In the case of the type not being 0, the urldata and the postdata are directly converted into byte set form to obtain the target byte set.
4. The network data processing method based on RC4 encryption algorithm and XB algorithm according to claim 1, characterized in that, In the case that the received first instruction information passes verification, before obtaining the commodity information and the video data information from the target webpage based on the WinHttp module preset in the collection script, the network data processing method based on the RC4 encryption algorithm and the XB algorithm further includes: Receiving input first instruction information, the first instruction information including a username and a password; Based on the first instruction information, generating an HTTP request and sending the HTTP request to a server to detect and verify the specific text of the authentication information in the HTTP request; Based on the detection and verification result of the specific text, it is judged whether the first instruction information passes verification; In the case that the first instruction information passes verification, the state is checked by analyzing the response returned by the server.
5. The network data processing method based on RC4 encryption algorithm and XB algorithm according to any one of claims 1-4, characterized in that, Further comprising: Concurrent execution of tasks through a preset thread management submodule; Through a preset analysis submodule, network connection problems and file operation errors in the data processing process are processed, and logs are recorded for easy debugging and problem positioning.
6. A network data processing system based on RC4 encryption algorithm and XB algorithm, characterized in that, Including: The acquisition module is used to access the target webpage based on the WinHttp module preset in the collection script to obtain commodity information and video data information from the target webpage in the case that the received first instruction information passes verification; The processing module is used for de-duplication and sorting processing of the video data information to obtain a first database; The encryption module is configured to encrypt data in the first database based on a preset RC4 algorithm program and an XB algorithm program to obtain a second database. The XB algorithm is X Bogus algorithm The screening module is used to receive input second instruction information and screen and determine a target array from the second database based on the second instruction information; the second instruction information can represent real-time goods carrying strategies; The transmission module is used to transmit data in the target array to a plurality of user homepages and decode to publish videos related to hot commodities in the e-commerce platform on the user homepages; The target webpage includes a first target webpage and a second target webpage, and the commodity information includes first commodity information and second commodity information; in the case that the received first instruction information passes verification, the target webpage is accessed based on the WinHttp module preset in the collection script to obtain commodity information and video data information from the target webpage, including: Accessing the first target webpage based on the WinHttp module preset in the collection script to collect first commodity information from the first target webpage; According to the current commodity heat index and the commission rate index, the first commodity information is screened to obtain second commodity information; Accessing the second target webpage by the WinHttp module based on the second commodity information, and using a regular expression to parse and extract video data information from the second target webpage; The video data information is related to the second commodity information and includes a video title, a video link, and a video author; The data in the first database is encrypted based on a preset RC4 algorithm program and an XB algorithm program to obtain a second database, including: Determining urldata and postdata corresponding to the first database in a data transmission POST request; Processing the urldata and the postdata based on a preset XB algorithm program to obtain a target byte set; Determining a user agent byte set corresponding to the XB algorithm program, inputting the target byte set and the user agent byte set into a preset RC4 algorithm program, and performing Base64 encoding on the target byte set and the user agent byte set to obtain a first key; Performing RC4 encryption on the first database based on the first key and a preset specific key to obtain a target database; Converting the encrypted target database into a Base64 text to obtain the second database for facilitating transmission in a network.
7. An electronic device, comprising: including: a processor, a memory, and a program stored on the memory and executable on the processor, and the program is executed by the processor to implement the network data processing method based on the RC4 encryption algorithm and the XB algorithm as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores programs or instructions, and the programs or instructions are executed by the processor to implement the network data processing method based on the RC4 encryption algorithm and the XB algorithm as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Live broadcast control method and device, electronic equipment and storage medium
CN115567725A