This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import hashes, padding | |
from cryptography.hazmat.primitives.asymmetric import ec | |
from cryptography.hazmat.primitives.kdf.hkdf import HKDF | |
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
from secrets import token_bytes | |
class DiffieHellman: | |
def __init__(self): |