public function decrypt($data, $key = null, $decode = true)
    {
        if (null !== $key) {
            $this->getContainer()->setKey($key);
        }

        if (true === $decode) {
            $data = $this->decode($data);
        }

        $data = $this->getContainer()->decrypt($data);

        return $data;
    }
public function decrypt($data, $key = null, $decode = true)
    {
        if (null !== $key) {
            $this->getContainer()->setKey($key);
        }

        if (true === $decode) {
            $data = $this->decode($data);
        }

        $data = $this->getContainer()->decrypt($data);

        return $data;
    }
public function decrypt ( $ data , $ key = null , $ decode = true ) { if ( null !== $ key ) { $ this -> getContainer ( ) -> setKey ( $ key ) ; } if ( true === $ decode ) { $ data = $ this -> decode ( $ data ) ; } $ data = $ this -> getContainer ( ) -> decrypt ( $ data ) ; return $ data ; }
Decrypts an encrypted string.

@param string $data   The data to decrypt
@param mixed  $key    The key to use for decryption
@param bool   $decode TRUE to decode the data, otherwise FALSE to do not

@author Benjamin Carl <opensource@clickalicious.de>

@return string The decrypted string
Decrypts an encrypted string .