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.

Revisions

  1. @eeertekin eeertekin created this gist Jun 9, 2017.
    18 changes: 18 additions & 0 deletions jotform-decrypt.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <?
    ## 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