protected function encrypt($value)
    {
        return $this->getCryptService()->encrypt(serialize($value), $this->getSecurity()->getPrivateKey());
    }
protected function encrypt($value)
    {
        return $this->getCryptService()->encrypt(serialize($value), $this->getSecurity()->getPrivateKey());
    }
protected function encrypt ( $ value ) { return $ this -> getCryptService ( ) -> encrypt ( serialize ( $ value ) , $ this -> getSecurity ( ) -> getPrivateKey ( ) ) ; }
returns an encrypted string for given input if encryption is enabled.

@param string $value The string to encrypt/encrypt

@author Benjamin Carl <opensource@clickalicious.de>

@return string The input encrypted or plain if encryption is enabled
returns an encrypted string for given input if encryption is enabled .