Skip to content

Instantly share code, notes, and snippets.

@quantumpacket
Forked from eeertekin/jotform-decrypt.php
Created September 22, 2025 12:42
Show Gist options
  • Save quantumpacket/2dbd68c2acb67dab40955384dd55fc8a to your computer and use it in GitHub Desktop.
Save quantumpacket/2dbd68c2acb67dab40955384dd55fc8a to your computer and use it in GitHub Desktop.
<?
## Example in PHP
class Decryption
{
public $privateKey = '{yourPrivateKey}';
public function decrypt($data)
{
if (openssl_private_decrypt(base64_decode($data), $decryptedData, $this->privateKey))
return $decryptedData;
return "Decryption failed!";
}
}
# For more details, you can check the openssl_private_decrypt function in PHP Manual.
# http://us.php.net/manual/en/function.openssl-private-decrypt.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment