Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions All_Process/Main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from Verifiers import Password_Verificator

Password_Verificator.start()
77 changes: 77 additions & 0 deletions All_Process/Verifiers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
class All_Verifiers:

@staticmethod
def eight_char(senha: str):
if len(senha) >= 8:
return True
return False

@staticmethod
def number_verificator(senha: str):
for char in senha:
if char.isdigit() == True:
return True
return False

@staticmethod
def upper_verificator(senha: str):
for char in senha:
if char.isupper() == True:
return True
return False

@staticmethod
def lower_verificator(senha: str):
for char in senha:
if char.islower() == True:
return True
return False

@staticmethod
def special_char_verificator(senha: str):
for char in senha:
if char.isdigit() == False and char.isalpha() == False:
return True
return False

@staticmethod
def space_verificator(senha: str):
for char in senha:
if char == " ":
return False
return True

class Password_Verificator():

@staticmethod
def __feedback(senha):
if All_Verifiers.eight_char(senha) == True: print("\n8 Caractéres ou mais☑️")
else: print("\n8 Caractéres ou mais❌")

if All_Verifiers.number_verificator(senha) == True: print("Apresenta no mínimo 1 digito☑️")
else: print("Apresenta no mínimo 1 digito❌")

if All_Verifiers.upper_verificator(senha) == True: print("Apresenta no mínimo 1 letra maíuscula☑️")
else: print("Apresenta no mínimo 1 letra maíuscula❌")

if All_Verifiers.lower_verificator(senha) == True: print("Apresenta no mínimo 1 letra minuscula☑️")
else: print("Apresenta no mínimo 1 letra minuscula❌")

if All_Verifiers.special_char_verificator(senha) == True: print("Apresenta no mínimo 1 carácter especial☑️")
else: print("Apresenta no mínimo 1 carácter especial❌")

if All_Verifiers.space_verificator(senha) == True: print("Não apresenta espaços em branco☑️")
else: print("Não apresenta espaços em branco❌")

def start():
senha = input("Olá! Informe sua senha: ")

Password_Verificator.__feedback(senha)

if All_Verifiers.eight_char(senha) == True and All_Verifiers.lower_verificator(senha) == True and All_Verifiers.number_verificator(senha) == True and All_Verifiers.upper_verificator(senha) == True and All_Verifiers.special_char_verificator(senha) == True and All_Verifiers.space_verificator(senha) == True:
print("\nSenha válida e salva com sucesso!")

else:
print("\nSenha inválida. Tente novamente.")


File renamed without changes.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
# package_name
# Simple_Password_Verificator

Description.
The package package_name is used to:
-
-
The package All_Process is used to:
- Verifiers
-All_Verifiers
-Password_Verificator
-Main

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install package_name
pip install Simple_Password_Verificator
```

## Usage

```python
from package_name import file1_name
file1_name.my_function()
from Verifiers import Password_Verificator
Password_Verificator.start()
```

## Author
My_name
Daniel Dantas Lopes

## License
[MIT](https://choosealicense.com/licenses/mit/)
...
Empty file removed package_name/file1_name.py
Empty file.
Empty file removed package_name/file2_name.py
Empty file.
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
requirements = f.read().splitlines()

setup(
name="package_name",
version="0.0.1",
author="my_name",
author_email="my_email",
description="My short description",
name="Simple_Password_Verificator",
version="0.0.2",
author="Daniel Dantas Lopes",
author_email="dandantas29@gmail.com",
description="Pequeno sistema que valida a senha do usuário.",
long_description=page_description,
long_description_content_type="text/markdown",
url="my_github_repository_project_link"
url="https://github.com/Danieldantas7227",
packages=find_packages(),
install_requires=requirements,
python_requires='>=3.8',
)
python_requires='>=3.0',
)