Skip to content

Instantly share code, notes, and snippets.

@lkdocs
Last active December 22, 2015 20:29
Show Gist options
  • Save lkdocs/6526511 to your computer and use it in GitHub Desktop.
Save lkdocs/6526511 to your computer and use it in GitHub Desktop.
<?
public function rsa_decrypt($key, $package) {
$rsa = new Crypt_RSA();
$rsa->loadKey($key);
$decrypted = $rsa->decrypt(base64_decode($package));
return $decrypted;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment