public function enableEncryption($cipher = self::DEFAULT_ENCRYPT_CIPHER, $encoding = self::DEFAULT_ENCRYPT_ENCODING)
    {
        /* @var $this->cryptService Doozr_Crypt_Service */
        $this
            ->cryptService(
                Doozr_Loader_Serviceloader::load('crypt', $cipher, $encoding)
            )
            ->security(
                self::getRegistry()->getSecurity()
            );

        $this->encrypt = true;
    }
public function enableEncryption($cipher = self::DEFAULT_ENCRYPT_CIPHER, $encoding = self::DEFAULT_ENCRYPT_ENCODING)
    {
        /* @var $this->cryptService Doozr_Crypt_Service */
        $this
            ->cryptService(
                Doozr_Loader_Serviceloader::load('crypt', $cipher, $encoding)
            )
            ->security(
                self::getRegistry()->getSecurity()
            );

        $this->encrypt = true;
    }
public function enableEncryption ( $ cipher = self :: DEFAULT_ENCRYPT_CIPHER , $ encoding = self :: DEFAULT_ENCRYPT_ENCODING ) { /* @var $this->cryptService Doozr_Crypt_Service */ $ this -> cryptService ( Doozr_Loader_Serviceloader :: load ( 'crypt' , $ cipher , $ encoding ) ) -> security ( self :: getRegistry ( ) -> getSecurity ( ) ) ; $ this -> encrypt = true ; }
Enables encryption.
This method is intend to enable the encryption for this instance including cipher and encoding.

@param string $cipher   The algorithm (container of Service crypt) used for encryption
@param string $encoding The encoding to use for safety handable encrypted value
(can be either "uuencode" or "base64")

@author Benjamin Carl <opensource@clickalicious.de>
Enables encryption . This method is intend to enable the encryption for this instance including cipher and encoding .