private function _encrypt($input, $password, $iv = null)
    {
        return (self::$allowedCiphers[$this->cipher]['iv'])
            ? openssl_encrypt($input, $this->cipher, $password, true, $iv)
            : openssl_encrypt($input, $this->cipher, $password, true);
    }
private function _encrypt($input, $password, $iv = null)
    {
        return (self::$allowedCiphers[$this->cipher]['iv'])
            ? openssl_encrypt($input, $this->cipher, $password, true, $iv)
            : openssl_encrypt($input, $this->cipher, $password, true);
    }
private function _encrypt ( $ input , $ password , $ iv = null ) { return ( self :: $ allowedCiphers [ $ this -> cipher ] [ 'iv' ] ) ? openssl_encrypt ( $ input , $ this -> cipher , $ password , true , $ iv ) : openssl_encrypt ( $ input , $ this -> cipher , $ password , true ) ; }
Encrypt helper.

@param string      $input
@param string      $password
@param string|null $iv

@return string Steam of encrypted bytes.
Encrypt helper .