Skip to content
Advertisement

Tag: subtlecrypto

Sending RSA encoded message from JavaScript React to Python. Ciphertext length must be equal to key size. issue

I receive the error “Ciphertext length must be equal to key size.” when trying to send an encoded message from javascript to python. I have encoded the bytesarray to base64 in javascript and decoded the base64 back to a bytes array in Python. Yet, the issue seems to persist. Key Generation (Python): Import Key (Javascript): Encrypt Data (Javascript): Transmit Data

Advertisement