Skip to content

Instantly share code, notes, and snippets.

@jaytaph
Created October 21, 2013 20:43
Show Gist options
  • Save jaytaph/7090654 to your computer and use it in GitHub Desktop.
Save jaytaph/7090654 to your computer and use it in GitHub Desktop.
// 6. Encrypt inner packet
$blob = $inner_packet->encode();
$cipher = new \Crypt_AES(CRYPT_AES_MODE_CTR);
$cipher->setIv($iv);
$cipher->setKey($hash);
$body = $cipher->encrypt($blob);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment