@ 2013-08-03T01:58:25Z <?php
$start_key = <<< TEXT
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAp11fZi2kaPCCdOYQPHkHItqGcXaF0Uu9qfBBrcaDXo/Vaqy/niZt
34mO+l+7t/LQjsZl4P/Vjr4wQHZ2rd7PS1rL4XC08vn40szoCpfwyQcnirLkSzx0
wEu8a+bTCNP0i/XLoAaPsWKyZuF9oT6pmPtvvlHxqunaTrqNtFIQNWXrPksZEXh+
zx/2Z5dQ88QIWH6uRMbT+oq9IBE9VGBawzFPwpER2b4sX1ig+vgZhMhSGmHY0/qO
VmW7m09T5UnnqSdG1nyICIJ17HBXaDToeqRrwiq7SamkBYpu4KP7ZGFo41/MHsnD
NQ7kr7xwDQr+H8FmnSO1f9nB33WvboHJcwIDAQAB
-----END RSA PUBLIC KEY-----
TEXT;
$start_key = str_replace('-----BEGIN RSA PUBLIC KEY-----', '', $start_key);
$start_key = trim(str_replace('-----END RSA PUBLIC KEY-----', '', $start_key));
$key = 'MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A' . str_replace("\n", '', $start_key);
$key = "-----BEGIN PUBLIC KEY-----\n" . wordwrap($key, 64, "\n", true) . "\n-----END PUBLIC KEY-----";
echo openssl_pkey_get_public($key);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.1.20 , 7.2.5 - 7.2.33 , 7.3.12 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.31 , 8.2.0 - 8.2.27 , 8.3.0 - 8.3.15 , 8.4.1 - 8.4.2 Fatal error: Uncaught Error: Call to undefined function openssl_pkey_get_public() in /in/dcTSJ:16
Stack trace:
#0 {main}
thrown in /in/dcTSJ on line 16
Process exited with code 255 . Output for 5.4.15 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.30 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.7 Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.1 , 5.1.3 - 5.1.6 , 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 , 5.4.0 - 5.4.14 Fatal error: Call to undefined function openssl_pkey_get_public() in /in/dcTSJ on line 16
Process exited with code 255 . Output for 5.1.2 Fatal error: Call to undefined function openssl_pkey_get_public() in /in/dcTSJ on line 17
Process exited with code 255 . Output for 4.4.5 - 4.4.9 Fatal error: Call to undefined function: openssl_pkey_get_public() in /in/dcTSJ on line 16
Process exited with code 255 . Output for 4.3.2 - 4.3.11 , 4.4.0 - 4.4.1 , 4.4.3 - 4.4.4 Fatal error: Call to undefined function: openssl_pkey_get_public() in /in/dcTSJ on line 16
Process exited with code 255 . Output for 4.4.2 Fatal error: Call to undefined function: openssl_pkey_get_public() in /in/dcTSJ on line 17
Process exited with code 255 . Output for 4.3.0 - 4.3.1 Fatal error: Call to undefined function: openssl_pkey_get_public() in /in/dcTSJ on line 16
preferences:dark mode live preview
136.31 ms | 413 KiB | 5 Q