18 lines
No EOL
423 B
Python
18 lines
No EOL
423 B
Python
import hashlib
|
|
from cryptography.hazmat.primitives import hashes
|
|
from cryptography.hazmat.primitives.asymmetric import rsa
|
|
from cryptography.hazmat.primitives.asymmetric import padding
|
|
|
|
from source.Card import Card
|
|
from source.Certificate import Certificate
|
|
from source.Machine import Machine
|
|
|
|
Alice_card = Card("Alice", 6060)
|
|
|
|
Machine = Machine()
|
|
|
|
|
|
Machine.authenticate(Alice_card, 6060, azerty)
|
|
|
|
|
|
Machine.vote(Alice_card) |