public static function getResizedImageURL($imageServiceScheme, $imageServiceHost, $imageServicePort, $imageServicePath, $identifier, $keyName, $keyData, $width, $height, $separator = '|')
 {
     // Create the plaintext containing the current time and the Unumber requested
     $plaintext = time() . $separator . $identifier;
     //Encrypt the token
     $encryptedToken = UsfEncryption::encrypt($plaintext, $keyData);
     return $imageServiceScheme . '://' . $imageServiceHost . ':' . $imageServicePort . $imageServicePath . '/view/' . $keyName . '/' . $width . '/' . $height . '/' . urlencode($encryptedToken) . '.jpg';
 }
 /**
  * @expectedException        Exception
  * @expectedExceptionMessage Unknown encryption blocktype: BAD
  */
 public function testEncrypt_BadBlockType()
 {
     $key = '1234567890123456';
     $text = 'This is a test';
     $encrypt = UsfEncryption::encrypt($key, $text, 'BAD');
 }