i try decrypt using opensll on php. Required algorithm is rsa-oaep with sha256. what do i need to write for $cipher_algo?
$key = 'examplekey';
$secret = 'examplesecret';
$cipher_algo = '';
$out = openssl_decrypt(base64_decode($secret), $cipher_algo, $key, OPENSSL_RAW_DATA);
or some lib encrypt and decrypt that can use on php
You need the library https://phpseclib.com/ to get the following code to run (I'm using version 3).
Kindly note that there is no exception handling on the code.
This is an output:
code: