/**
  * @depends testSafeBase64Encode
  * @dataProvider providerSafeBase64Random
  */
 public function testSafeBase64Random($string)
 {
     $encode = safe_base64_encode($string);
     $decode = safe_base64_decode($encode);
     $this->assertSame($decode, $string);
 }
function encrypt($string, $key)
{
    $key = pad_key($key);
    return safe_base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $string, MCRYPT_MODE_ECB));
}
 /**
  * 处理视频公共方法
  *
  * @return array 触发处理“持久化处理的进程ID”数组几个
  * @author yangyifan <*****@*****.**>
  */
 private function handleVideo()
 {
     //加载函数库
     load_func('common');
     $ops[] = 'avthumb/mp4/vb/1m/s/640x480/autoscale/1/wmImage/' . safe_base64_encode(config('config.site_logo')) . '/Gravity/NorthEast';
     //转码成标清MP4
     $ops[] = 'avthumb/mp4/vb/1.2m/s/960x720/autoscale/1/wmImage/' . safe_base64_encode(config('config.site_logo')) . '/Gravity/NorthEast';
     //转码成高清MP4
     $ops[] = 'avthumb/mp4/vb/1.5m/s/1440x1080/autoscale/1/wmImage/' . safe_base64_encode(config('config.site_logo')) . '/Gravity/NorthEast';
     //转码成全高清MP4
     $ops[] = 'vframe/jpg/offset/10/w/1022/h/501';
     //视频截图
     return $this->persistentFop($ops);
 }