Skip to content

Instantly share code, notes, and snippets.

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