Skip to content

In this project, an attempt has been made to receive and store users' emails and passwords in the database

Notifications You must be signed in to change notification settings

AMRHiwa/email-and-password-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

email-and-password-store

In this project, an attempt has been made to receive and store users' emails and passwords in the mysql database with python

program screen

Database screen

This program is produced in a file that you can see in the repository:

In the menu below, we have put a list of contents for you.

Menu

Program Guide

for using this program, you must have mysql DataBase on your system and download mysql-connctor-python module.

for guide to install and download mysql DataBase on your system you can Click Here!.

so Enter below command in your Terminal or Command Promt (cmd):

pip install mysql-connector-python

Another Point:

  • for using this program you must change your "DataBase_name" , "User_name, "Password" with your information in line 45.

after all of this points, you can run the program and can see the "Enter your Email: " then see "Enter your password: " in terminal. (like picture one)

after you entered the email and password, the information saved in database and you can access them by mysql database.(like picture two)

Program structure

It use two module:

and including three function:

Modules

re module:

this is a module for using regex in python programs.

mysql-connector module:

This module is used for the use of MySQL capabilities in Python.

Fucntions

valid_email:

This function is used to check the validity of an email based on the formatting we provide with our Regex.

getting_email_password:

In this function, we will notify the user several messages to enter their email and password, in which case the email is sent to the Valid_email function to review the validity.

main:

In this function we receive the call for the previous email functions and passwords, then save it to the database using the MySQL-Connector module.

About

In this project, an attempt has been made to receive and store users' emails and passwords in the database

Topics

Resources

Stars

Watchers

Forks

Languages