ValueError: Invalid padding bytes
import constants import base64 from secrets import token_hex from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives import padding as sym_padding from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import padding as rsa_padding from cryptography.hazmat.primitives.serialization import load_pem_public_key, load_pem_private_key from src.func.jwt_token import generate_jwt This Fuction Encrypting the header def encrypt_header_with_header_public_key(data: str, […]