Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rohansinghrawat's avatar

RSA-OAEP-256 encryption in php laravel ?

Sorry i am posting this as I am not able to find any relevant information on google or maybe I am not looking for exact problem .

Actually I am building one bank connection apis in my laravel project and they have given me this information

Encryption Mechanism : JWE
Key Encryption Algorithm : RSA-OAEP-256
Content Encryption Method : A256GCM
Signing Algorithm : RS256

Now the problem is I have no idea in this encryption I tried some googling but found no useful informatin or may be due to lack of knowledge in this part I am not able to find it correctly .

So if any body can just suggest me or guide me where to look for this encryption it would be very helpful . Thankyou

0 likes
4 replies
rohansinghrawat's avatar

@Sinnbeck bank sent me the proces by which encryption must be done i.e

first encrypt the plain text using their certificate which they have shared and then sign that payload using our private key which we have created

now here question arises that this algo it using certificate and earlier i used to encrypt using openssl method but i dont think it would work here

Please or to participate in this conversation.