(self, salt, password)
return base64.urlsafe_b64encode(
            kdf.derive(password))
Returns an encryption key.

        Args:
            salt (bytes): a salt used during the encryption.
            password (bytes): the password used to decrypt/encrypt
                the message.

        Returns:
            Bytes with the encryption key.
Returns an encryption key.
Returns an encryption key .
def _get_key(self, salt, password):
        """Returns an encryption key.

        Args:
            salt (bytes): a salt used during the encryption.
            password (bytes): the password used to decrypt/encrypt
                the message.

        Returns:
            Bytes with the encryption key.
        """
        kdf = PBKDF2HMAC(
            algorithm=hashes.SHA256(),
            length=32,
            salt=salt,
            iterations=100000,
            backend=backends.default_backend()
        )
        return base64.urlsafe_b64encode(
            kdf.derive(password))
def _get_key ( self , salt , password ) : kdf = PBKDF2HMAC ( algorithm = hashes . SHA256 ( ) , length = 32 , salt = salt , iterations = 100000 , backend = backends . default_backend ( ) ) return base64 . urlsafe_b64encode ( kdf . derive ( password ) )