Created
May 2, 2015 15:49
-
-
Save freretuc/82bb14dccf3643a962c3 to your computer and use it in GitHub Desktop.
Decrypting string with php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $private = file_get_contents("private.pem"); | |
| $data = base64_decode("base64-crypted-string"); | |
| openssl_private_decrypt($data, $content, $private, OPENSSL_PKCS1_OAEP_PADDING); | |
| echo $content; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment