I'm encrypting a string using this function;
$encrypted_body = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, utf8_encode($body), MCRYPT_MODE_CBC, $iv);
//Encrypting using MCRYPT_RIJNDAEL_256 algorithm
I then get my encrypted string.
What i need to do next is convert this string into a Byte Array. How do I do this? I've played with the pack/unpack features but am not having any luck!
Any help would be great.
Thanks in Advance!