-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (17 loc) · 746 Bytes
/
main.py
File metadata and controls
25 lines (17 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# coding: utf-8
__author__ = "@aguiar0x01" # GitHub
from options_menu import options_menu
from verify_password import verify_password
class ET256():
"""Encripta e decripta arquivos a 256 Bits."""
def __init__(self, key):
options_menu(key)
if __name__ == "__main__":
# Dado aleatório de tamanho 256 Bits para exemplo
# | Para criar o seu próprio dado aleatório, faça:
# | from Crypto.Random import get_random_bytes as random
# | random(32) # 32 => 256 bits
salt = b'*\xbf\xc2\xb6i`\x86\x96\xd8\x9d?\xb1/\xb9\xf7\xe38\x90\xc2m\xae\x99t\x92\xf6P\xc8\xaa\xf5\x8e\xd16'
# Caso seja o primeiro acesso, irá para a criação de senha
# Caso a senha já exista, será feita a tentativa de login
ET256(key=verify_password(salt))