Temporary mailbox generation method and device, equipment, storage medium and product
By generating and verifying unique temporary email addresses, the problem of privacy protection and inefficiency in program testing is solved, enabling fast and secure temporary email address generation suitable for various short-term needs.
Patent Information
- Application Number
- CN202511165169.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-19
- Publication Date
- 2025-11-11
AI Technical Summary
In existing technologies, users need to prepare many mobile phone numbers to apply for and register email addresses when testing programs, which leads to low user privacy protection and low work efficiency.
A method for generating temporary email addresses is provided. The method receives a temporary email address generation request, determines the email address generation method and suffix, generates and verifies the uniqueness of the temporary email address, and sends feedback to the user after the uniqueness verification is successful.
Quickly generate unique temporary email addresses to protect user privacy, streamline the registration process, improve work efficiency, and prevent spam interference.
Smart Images

Figure CN120935138A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of email technology, and in particular to methods, apparatus, devices, storage media, and products for generating temporary email addresses. Background Technology
[0002] As intelligent networks become deeply integrated into people's lives and work, the issues of work convenience and personal privacy protection have become increasingly apparent. For personal use, the core pain points for users are privacy protection and anti-spam. In software development, program testing often involves receiving email verification codes, such as simulating a large number of real user behaviors, ensuring proper integration between the system and email services, and verifying the reliability of verification code generation, storage, validation, and expiration mechanisms. This requires preparing many mobile phone numbers to register email addresses, which is relatively cumbersome. Therefore, improving user privacy protection and work efficiency in email usage has become an urgent technical problem to be solved. Summary of the Invention
[0003] The main purpose of this application is to provide a method, apparatus, device, storage medium and product for generating temporary email addresses, aiming to solve the technical problem of user privacy leakage during the use of existing email services.
[0004] To achieve the above objectives, this application proposes a method for generating a temporary email address, the method comprising:
[0005] The email generation method and email suffix are determined based on the received temporary email generation request;
[0006] A temporary email address is generated based on the email address generation method and the email address suffix, and the uniqueness of the temporary email address is verified.
[0007] If the uniqueness verification is successful, the temporary email address will be sent to the user.
[0008] Optionally, the step of generating a temporary email address based on the email address generation method and the email address suffix, and verifying the uniqueness of the temporary email address, includes:
[0009] If the email address is generated using a custom method, obtain the username entered by the user.
[0010] A temporary email address is generated based on the username and the email suffix.
[0011] The uniqueness of the temporary email address is verified using a preset address conflict detection strategy.
[0012] Optionally, the step of generating a temporary email address based on the email address generation method and the email address suffix, and verifying the uniqueness of the temporary email address, includes:
[0013] If the email address is generated randomly, call the random character generation function to generate the email username;
[0014] A temporary email address is generated based on the email username and the email suffix, and the uniqueness of the temporary email address is verified.
[0015] Optionally, after the step of sending the temporary email address to the user upon successful uniqueness verification, the method further includes:
[0016] Receive the temporary email creation time sent by the user's browser;
[0017] The validity period of the email address is determined based on the creation time of the temporary email address and the preset email address validity period.
[0018] The email expiration date will be sent to the user and displayed on the user's browser.
[0019] Optionally, after the step of sending the email expiration date back to the user and displaying it on the user's browser, the method further includes:
[0020] Receive user's email address expiration extension request;
[0021] The delay time is determined based on the email validity extension request;
[0022] Obtain the expiration time of the temporary email address, and determine the remaining valid time based on the expiration time and the delay time;
[0023] The remaining valid time will be fed back to the user.
[0024] Optionally, before the step of determining the email generation method and email suffix based on the received temporary email generation request, the method further includes:
[0025] Receive device fingerprints sent by users via their browsers;
[0026] An encrypted session is created based on the device fingerprint;
[0027] The encrypted session receives a temporary email address generation request sent by the user.
[0028] Furthermore, to achieve the above objectives, this application also proposes a temporary mailbox generation device, which includes:
[0029] The receiving module is used to determine the email generation method and email suffix based on the received temporary email generation request;
[0030] The verification module is used to generate a temporary email address based on the email address generation method and the email address suffix, and to verify the uniqueness of the temporary email address.
[0031] The feedback module is used to send the temporary email address to the user if the uniqueness verification is successful.
[0032] In addition, to achieve the above objectives, this application also proposes a temporary mailbox generation device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the temporary mailbox generation method as described above.
[0033] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and which, when executed by a processor, implements the steps of the temporary mailbox generation method described above.
[0034] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the temporary mailbox generation method described above.
[0035] This application determines the email generation method and email suffix based on the received temporary email generation request; generates a temporary email address according to the specified method and suffix, and verifies the uniqueness of the temporary email address; if the uniqueness verification is successful, the temporary email address is sent to the user. Because this application generates a temporary email address based on the temporary email generation request and sends it to the user upon successful uniqueness verification, the above method can quickly generate unique temporary email addresses for users, effectively protecting user privacy. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a flowchart illustrating the method for generating a temporary email address in this application, as provided in Embodiment 1.
[0039] Figure 2 This is a flowchart illustrating Embodiment 2 of the method for generating a temporary email address in this application.
[0040] Figure 3This is a flowchart illustrating Embodiment 3 of the method for generating a temporary email address in this application.
[0041] Figure 4 This is a schematic diagram of the modules provided in Embodiment 3 of the method for generating a temporary email address in this application;
[0042] Figure 5 This is a schematic diagram of the module structure of the temporary mailbox generation device according to an embodiment of this application;
[0043] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the temporary mailbox generation method in this application embodiment.
[0044] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0045] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0046] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0047] The main solution of this application embodiment is as follows: Based on the received temporary email address generation request, determine the email address generation method and email suffix; generate a temporary email address according to the email address generation method and email suffix, and verify the uniqueness of the temporary email address; if the uniqueness verification is successful, provide the temporary email address to the user. Since this application generates a temporary email address based on the temporary email address generation request and provides the temporary email address to the user if the uniqueness verification is successful, the above method of this application can quickly generate temporary email addresses with unique email addresses for users, effectively protecting user privacy.
[0048] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or temporary email address generation device capable of performing the above functions. The following description uses a temporary email address generation device as an example to illustrate this embodiment and the subsequent embodiments.
[0049] Based on this, this application provides a method for generating a temporary email address, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the method for generating a temporary email address in this application, as provided in Embodiment 1.
[0050] In this embodiment, the temporary mailbox generation method includes the following steps:
[0051] Step S10: Determine the email generation method and email suffix based on the received temporary email generation request;
[0052] It should be noted that the temporary email generation request can be a command initiated by the user through a temporary email generation page in their browser to generate a temporary email address. This can include the email generation method and email suffix selected by the user. The email generation method includes a custom method and a random method. The random method allows the temporary email generation device to randomly generate an email username according to the required email username format. The custom method allows the user to manually input their own email username. The email suffix can be a suffix selected by the user from several available suffixes. Specifically, the temporary email generation page includes a dropdown menu for suffix selection, containing several pre-set email suffixes, which the user can choose from.
[0053] Furthermore, in order to reduce the process of user account registration and login and protect user privacy, this embodiment adopts an anonymous usage mechanism. Users can access the website without registering or logging in by opening the browser. The system does not collect any personal identity information. Users can generate a temporary email address by directly accessing the temporary email address generation page through the browser. Specifically, before step S10, the process includes: receiving the device fingerprint sent by the user based on the browser.
[0054] An encrypted session is created based on the device fingerprint;
[0055] The encrypted session receives a temporary email address generation request sent by the user.
[0056] It should be noted that the device fingerprint can be the identification information sent by the user when establishing a connection with the temporary email generation device through the browser. It can include Canvas fingerprint and UserAgent hash. Canvas fingerprint is a technology that obtains the user device's graphics rendering characteristics through the HTML5 Canvas API, used to generate a unique identifier for the user device. UserAgent hash is a unique identifier generated by hashing the browser's User-Agent string, used to identify and distinguish different combinations of devices and browsers. The temporary email generation device creates an encrypted session with the user device based on the device fingerprint. All data transmission in this encrypted session is encrypted using an authentication encryption algorithm, which can be AES-256-GCM. After establishing the session, the user can select the email suffix and email generation method on the temporary email generation page and initiate the command to create a temporary email address.
[0057] Step S20: Generate a temporary email address according to the email address generation method and the email address suffix, and verify the uniqueness of the temporary email address;
[0058] It should be noted that generating a temporary email address based on the email generation method and the email suffix can be achieved by concatenating the email suffix with the username generated according to the email generation method. Verifying the uniqueness of the temporary email address can be done by checking if the temporary email address exists in the database. If it does not exist, the uniqueness verification passes; otherwise, the uniqueness verification fails, prompting the user to re-enter their username or to generate a new, randomly generated username.
[0059] Step S30: If the uniqueness verification is successful, the temporary email address will be sent to the user.
[0060] It should be noted that, when the uniqueness verification is successful, the temporary email address is sent to the user's browser and then displayed through the browser.
[0061] In practice, users can view and manipulate emails by accessing the temporary email page. Specifically, when a user accesses the temporary email page, the browser requests the email list associated with the current session ID from the backend server (i.e., the temporary email generation device). (If the current session ID is associated with multiple temporary emails, the list of temporary emails associated with the current session ID can be retrieved and displayed first; if the user clicks on a temporary email, the email list for that temporary email is retrieved.) The backend queries the email data from the database (which can be a database such as MySQL) and returns it to the frontend (i.e., the browser), where the frontend displays the email list and its detailed content. For emails containing registration verification links, download links, or verification codes, users can directly click the link or copy the verification code on the page to complete the corresponding operation. The server records user actions, such as link click time and verification code usage. The frontend restricts the user's compose function, so users can only receive emails and cannot edit or send them.
[0062] When receiving emails, the temporary mailbox generation device parses the email header information to obtain the recipient's temporary email address. Based on the temporary email address, it queries the corresponding session ID and forwards the received email to the recipient using that session ID, ensuring users can accurately receive emails. Regarding data clearing, users can actively click the delete button on the temporary mailbox page. In addition to automatically destroying the mailbox after a set time, the server will also clear all temporary email addresses, email data, and session ID information related to that temporary mailbox or session based on the user's actions, further protecting user privacy and security.
[0063] This embodiment determines the email generation method and email suffix based on the received temporary email generation request; generates a temporary email address according to the specified method and suffix, and verifies the uniqueness of the temporary email address; if the uniqueness verification is successful, the temporary email address is sent to the user. Because this embodiment generates a temporary email address based on the request and sends it to the user upon successful uniqueness verification, this method can quickly generate unique temporary email addresses for users, effectively protecting user privacy.
[0064] The temporary email service provided in this embodiment allows users to easily obtain multiple temporary email addresses, protecting their privacy and personal information. No registration is required; a disposable temporary email address is quickly generated, suitable for various short-term needs such as online registration, obtaining download links, and verifying emails. Temporary email addresses effectively prevent spam, advertising emails, and potential phishing emails, keeping users' real email accounts free from interference. Emails are automatically destroyed after a set time, eliminating the hassle of manual deletion and ensuring that users' email information is not stored or leaked in the long term. The service can be used anytime, anywhere, on mobile phones, tablets, or computers, providing fast, secure, and undetectable email reception. It offers a safer and more convenient email solution for users' online activities.
[0065] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 , Figure 2 This is a flowchart illustrating the second embodiment of the temporary email address generation method for this application. Step S20 further includes the following steps:
[0066] Step S201: If the email address is generated using a custom method, obtain the username entered by the user;
[0067] It should be noted that the username can be the username of the email address that the user enters in the corresponding location on the temporary email generation page.
[0068] Furthermore, the email username entered by the user may not conform to the specifications, such as containing spaces, special characters, or exceeding the 64-character limit. Therefore, this embodiment also includes format validation of the entered username. Format validation can be performed on the front end or entirely within the temporary email generation device. Only after the format validation passes is the username's uniqueness verified and its concatenation with the email suffix performed. Otherwise, the user is prompted to re-enter the username.
[0069] Step S202: Generate a temporary email address based on the username and the email suffix;
[0070] It should be noted that generating a temporary email address based on the username and the email suffix can be achieved by concatenating the username and the email suffix.
[0071] Step S203: Verify the uniqueness of the temporary email address using a preset address conflict detection strategy.
[0072] It should be noted that the preset address conflict detection strategy can be an atomic operation of a remote dictionary server (Redis). Verifying the uniqueness of the temporary email address through the preset address conflict detection strategy can be achieved by ensuring the uniqueness of the temporary email address through an atomic operation in Redis. If the temporary email address is unique, then email is set to "1" and nx = True. Otherwise, the operation fails. The user should be prompted that the entered username is not unique and needs to re-enter it or change the suffix.
[0073] Furthermore, step S20 also includes: when the email address is generated randomly, calling a random character generation function to generate the email username;
[0074] A temporary email address is generated based on the email username and the email suffix, and the uniqueness of the temporary email address is verified.
[0075] It should be noted that the random generation method can be that the temporary email address generation device generates the email username using a random character generation function. This function randomly selects 8-12 characters from a character set containing uppercase and lowercase letters and numbers, combining them to form the email username, for example, "abcdef12". Then, it concatenates these characters with an email suffix selected by the user from multiple provided domain suffix options (such as tempmail.com, maildrop.cc, 10minutemail.com) to form a complete temporary email address, for example, "abcdef12@tempmail.com". Each time a temporary email address is generated, the temporary email address generation device randomly selects characters from a character pool for combination. Verifying the uniqueness of the temporary email address can be done by checking if the temporary email address exists in the temporary email address generation device. If it does not exist, the temporary email address is determined to be unique and can be provided to the user. Otherwise, the random character generation function is called again to generate the email username, or the uniqueness of the temporary email address can be verified using the preset address conflict detection strategy.
[0076] Furthermore, to improve the efficiency of generating unique email usernames, the random generation method can also generate unique usernames through Redis's unique ID mechanism, concatenate the username with the domain name suffix to obtain a temporary email address, and bind the temporary email address with the user's session and creation time.
[0077] In this embodiment, when the email address generation method is custom generation, the user-input username is obtained; a temporary email address is generated based on the username and the email address suffix; and the uniqueness of the temporary email address is verified using a preset address conflict detection strategy. This embodiment avoids duplicate temporary email addresses by performing preset address conflict detection on the temporary email address and verifies the email address format information to prevent generated email addresses from not conforming to specifications.
[0078] Based on the above embodiments of this application, in the third embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 , Figure 3 This is a flowchart illustrating the method for generating a temporary email address in Embodiment 3 of this application. After step S30, the method further includes the following steps:
[0079] Step S301: Obtain the creation time of the temporary email address;
[0080] It should be noted that the temporary email creation time can be the time when the temporary email is stored in the temporary email generation device after the temporary email's uniqueness verification is passed, i.e., the time when the temporary email is successfully created, or it can be the time when the user sees the temporary email's creation completed on the browser. For example, after the temporary email is successfully generated, the current time displayed on the browser front end when the user enters the temporary email page.
[0081] Step S302: Determine the email validity period based on the temporary email creation time and the preset email validity period;
[0082] It should be noted that the preset email validity period can be a pre-set email period, such as a shorter period like 24 hours.
[0083] Step S303: The validity period of the email address is sent to the user and displayed on the user's browser.
[0084] It should be noted that after the validity period of the temporary email address is determined, the user's browser will display the validity period and other relevant information, such as: the generated temporary email address (e.g., "abcdef12@tempmail.com"), the expiration date, the email list (email subject, sender, sending time, action (delete, details)), and button options (history, new emails, delete, refresh email). To ensure the accuracy of the time, the front-end uses a JavaScript timer to update the countdown display of the remaining time for the temporary email address every second.
[0085] Furthermore, in order to meet users' needs for using temporary email addresses for extended periods, after step S303, this embodiment also includes: receiving users' email address expiration extension requests;
[0086] The delay time is determined based on the email validity extension request;
[0087] Obtain the expiration time of the temporary email address, and determine the remaining valid time based on the expiration time and the delay time;
[0088] The remaining valid time will be fed back to the user.
[0089] It should be noted that users can submit a request to extend the validity period of an email address through the temporary email address generation page in their browser. This request can include the temporary email address for which the extension is requested, as well as the extension time. The temporary email address generation device determines the remaining validity period based on the expiration time of the temporary email address and the extension time. After performing relevant operations in the system, the remaining validity period is fed back to the user. These relevant operations can include adding the validity period of the temporary email address to the database. If the user does not set an extension time, the extension time can be set to a fixed preset time, such as 24 hours.
[0090] In this implementation, the front-end can be built using HTML5, CSS3, and JavaScript. The back-end temporary mailbox generation device can use Node.js as the server-side development language, paired with a MySQL database to store emails and user-related data, and Redis to cache frequently accessed data such as temporary mailbox addresses. Users access the webpage through a browser, and the front-end and back-end interact with each other via protocols such as HTTP / HTTPS / SMTP / SSL / TLS. To ensure isolation between different temporary mailboxes, each has its own email storage space, countdown timer, and delay management. This embodiment establishes a three-level mapping relationship, including: a mapping between session ID and mailbox address, a mapping between device fingerprint and session ID, and a mapping between mailbox address and creation timestamp. Resource isolation is achieved through control groups (cgroups) to ensure that different temporary mailboxes are isolated from each other.
[0091] In specific implementation, it can be done according to Figure 4 , Figure 4 This is a schematic diagram of the modules provided in Embodiment 3 of the temporary mailbox generation method of this application; the temporary mailbox generation device in this embodiment can be... Figure 4The Node.js server includes a temporary email generation module, which generates temporary email addresses and caches them using Redis; an email receiving and processing module, which receives emails and forwards them to the corresponding recipients, storing email data in a MySQL database; a countdown and delay module, which manages email expiration dates, promptly clears information related to temporary emails after they expire, handles user delay requests, and changes the expiration date of temporary emails in the database, which can use Redis to record the expiration time; and a privacy protection module, which encrypts data transmission and controls access.
[0092] This embodiment obtains the creation time of the temporary email address; determines the email address's validity period based on the creation time and a preset validity period; and sends the validity period back to the user and displays it on the user's browser. In this embodiment, the temporary email address is not valid indefinitely. After the validity period expires, expired email information is promptly cleared, avoiding the storage of invalid data in the temporary email address generation device, freeing up storage space, and improving the utilization efficiency of the temporary email address generation device.
[0093] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the temporary email generation method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0094] This application also provides a temporary email address generation device; please refer to... Figure 5 The temporary mailbox generation device includes:
[0095] The receiving module 10 is used to determine the email generation method and email suffix based on the received temporary email generation request;
[0096] Verification module 20 is used to generate a temporary email address based on the email address generation method and the email address suffix, and to verify the uniqueness of the temporary email address;
[0097] The feedback module 30 is used to send the temporary email address to the user if the uniqueness verification is successful.
[0098] This embodiment determines the email generation method and email suffix based on the received temporary email generation request; generates a temporary email address according to the specified method and suffix, and verifies the uniqueness of the temporary email address; if the uniqueness verification is successful, the temporary email address is sent to the user. Because this embodiment generates a temporary email address based on the request and sends it to the user upon successful uniqueness verification, this method can quickly generate unique temporary email addresses for users, effectively protecting user privacy.
[0099] The temporary email address generation device provided in this application, employing the temporary email address generation method in the above embodiments, can solve the technical problem of user privacy leakage during the use of email in the prior art. Compared with the prior art, the beneficial effects of the temporary email address generation device provided in this application are the same as those of the temporary email address generation method provided in the above embodiments, and other technical features in the temporary email address generation device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0100] This application provides a temporary mailbox generation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the temporary mailbox generation method in Embodiment 1 above.
[0101] The following is for reference. Figure 6 The diagram illustrates a structural schematic of a temporary mailbox generation device suitable for implementing embodiments of this application. The temporary mailbox generation device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The temporary email generation device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0102] like Figure 6As shown, the temporary mailbox generation device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the temporary mailbox generation device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the temporary mailbox generating device to communicate wirelessly or wiredly with other devices to exchange data. Although a temporary mailbox generating device with various systems is shown in the figure, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0103] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0104] The temporary email generation device provided in this application, employing the temporary email generation method described in the above embodiments, can solve the technical problem of user privacy leakage during the use of email in the prior art. Compared with the prior art, the beneficial effects of the temporary email generation device provided in this application are the same as those of the temporary email generation method provided in the above embodiments, and other technical features in this temporary email generation device are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.
[0105] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0106] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0107] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the temporary mailbox generation method in the above embodiments.
[0108] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0109] The aforementioned computer-readable storage medium may be included in the temporary mailbox generation device; or it may exist independently and not assembled into the temporary mailbox generation device.
[0110] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] 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. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing 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 the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, 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.
[0112] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0113] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described temporary mailbox generation method, which can solve the technical problem of user privacy leakage during the use of email in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the temporary mailbox generation method provided in the above embodiments, and will not be repeated here.
[0114] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the temporary mailbox generation method described above.
[0115] The computer program product provided in this application can solve the technical problem of user privacy leakage during the use of existing email services. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the temporary email generation method provided in the above embodiments, and will not be repeated here.
[0116] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. All equivalent structural transformations made under the technical concept of this application and using the content of this application specification and drawings, or direct / indirect applications in other related technical fields, are included in the scope of protection of this application.
Claims
1. A method for generating a temporary email address, characterized in that, The method for generating a temporary email address includes the following steps: The email generation method and email suffix are determined based on the received temporary email generation request; A temporary email address is generated based on the email address generation method and the email address suffix, and the uniqueness of the temporary email address is verified. If the uniqueness verification is successful, the temporary email address will be sent to the user.
2. The temporary mailbox generation method as described in claim 1, characterized in that, The step of generating a temporary email address based on the email address generation method and the email address suffix, and verifying the uniqueness of the temporary email address, includes: If the email address is generated using a custom method, obtain the username entered by the user. A temporary email address is generated based on the username and the email suffix. The uniqueness of the temporary email address is verified using a preset address conflict detection strategy.
3. The temporary mailbox generation method as described in claim 1, characterized in that, The step of generating a temporary email address based on the email address generation method and the email address suffix, and verifying the uniqueness of the temporary email address, includes: If the email address is generated randomly, call the random character generation function to generate the email username; A temporary email address is generated based on the email username and the email suffix, and the uniqueness of the temporary email address is verified.
4. The temporary mailbox generation method as described in claim 1, characterized in that, After the step of sending the temporary email address to the user upon successful uniqueness verification, the method further includes: Receive the temporary email creation time sent by the user's browser; The validity period of the email address is determined based on the creation time of the temporary email address and the preset email address validity period. The email expiration date will be sent to the user and displayed on the user's browser.
5. The temporary mailbox generation method as described in claim 4, characterized in that, After the step of sending the email expiration date back to the user and displaying it on the user's browser, the method further includes: Receive user's email address expiration extension request; The delay time is determined based on the email validity extension request; Obtain the expiration time of the temporary email address, and determine the remaining valid time based on the expiration time and the delay time; The remaining valid time will be fed back to the user.
6. The temporary mailbox generation method according to any one of claims 1-5, characterized in that, Before the step of determining the email generation method and email suffix based on the received temporary email generation request, the method further includes: Receive device fingerprints sent by users via their browsers; An encrypted session is created based on the device fingerprint; The encrypted session receives a temporary email address generation request sent by the user.
7. A temporary mailbox generation device, characterized in that, The temporary mailbox generation device includes: The receiving module is used to determine the email generation method and email suffix based on the received temporary email generation request; The verification module is used to generate a temporary email address based on the email address generation method and the email address suffix, and to verify the uniqueness of the temporary email address. The feedback module is used to send the temporary email address to the user if the uniqueness verification is successful.
8. A temporary email address generation device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the temporary mailbox generation method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the temporary mailbox generation method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the temporary mailbox generation method as described in any one of claims 1 to 6.