Answer the question
In order to leave comments, you need to log in
Data size to encrypt via openssl?
To encrypt data using php, I took openssl via openssl_public_encrypt\openssl_private_decrypt. Generated keys:
openssl genrsa -des3 -out private_rsa.pem 2048
openssl rsa -in private_rsa.pem -outform PEM -pubout -out public_rsa.pem
error:0406D06E:rsa routines:RSA_padding_add_PKCS1_type_2:data too large for key size large data
Answer the question
In order to leave comments, you need to log in
this is your key greater than 255, not encrypted data - hash the key
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question