Created
October 21, 2013 20:43
-
-
Save jaytaph/7090654 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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