src/McryptEncrypter.php
protected function padAndMcrypt($value, $iv)
    {
        $value = $this->addPadding(serialize($value));

        return mcrypt_encrypt($this->cipher, $this->key, $value, MCRYPT_MODE_CBC, $iv);
    }
protected function padAndMcrypt($value, $iv)
    {
        $value = $this->addPadding(serialize($value));

        return mcrypt_encrypt($this->cipher, $this->key, $value, MCRYPT_MODE_CBC, $iv);
    }
protected function padAndMcrypt ( $ value , $ iv ) { $ value = $ this -> addPadding ( serialize ( $ value ) ) ; return mcrypt_encrypt ( $ this -> cipher , $ this -> key , $ value , MCRYPT_MODE_CBC , $ iv ) ; }
Pad and use mcrypt on the given value and input vector.

@param  string  $value
@param  string  $iv
@return string
Pad and use mcrypt on the given value and input vector .