I am creating a personal website using flask and python. I am using flask-mail to set up a smtp server with gmail, which requires the credentials of a gmail account. I wanted to know if there was a way to encrypt or protect the password and account of my gmail when pushing to GitHub?
Never Push your credentials and API keys to Github, always prefer to store these credentials in env file.
Password protection for public github