Email generator with password
Here is a simple email generator with a password:
Email Generator
Username: [Insert username here]
Email Address: [Insert email domain here]@[Insert username here].com
Password: [Insert password here]
Example:
- Username: john
- Email Domain: example
- Email Address: [email protected]
- Password: Jh4n123!
How it works:
- The email generator takes in a username and an email domain as input.
- It generates an email address by concatenating the username with the email domain.
- It generates a password using a combination of letters, numbers, and special characters.
- The email address and password are then displayed as output.
Note:
- This is a very basic email generator and does not include any advanced features such as password strength checking or email validation.
- The password generated is not secure and should not be used for production purposes.
- You should always use a secure password generator and follow best practices for password security.
Code:
import random
import string
def generate_email(username, email_domain):
email_address = f"{username}@{email_domain}.com"
password = ''.join(random.choice(string.ascii_letters + string.digits + string.punctuation) for _ in range(12))
return email_address, password
username = input("Enter username: ")
email_domain = input("Enter email domain: ")
email_address, password = generate_email(username, email_domain)
print(f"Email Address: {email_address}")
print(f"Password: {password}")
How to use:
- Run the code in a Python interpreter or save it to a file and run it as a script.
- Enter the username and email domain when prompted.
- The email address and password will be generated and displayed as output.
Example output:
Enter username: john
Enter email domain: example
Email Address: [email protected]
Password: Jh4n123!
Note: This is a very basic example and should not be used for production purposes.