I am looking for exact algorithm that is used in PHP's openssl_public_encrypt
function, as I need to encrypt some data in android app with that, and I couldnt find android equivalent of PHP's openssl_public_encrypt
.
(I am not sure, but I think its RSA, but when I tried to encrypt data using RSA in android and decrypt it using PHP's openssl_private_decrypt
, its not working) Or if anyone can help with, which function/method should I use in android for this.
RSA_public_encrypt
which is from OpenSSL: wiki.openssl.org/index.php/Manual:RSA_public_encrypt(3)