public function write($key, $message)
    {
        $message = strval($message);
        return (strlen($key) && strlen($message))
            ? $this->_getCipherOb($key)->encrypt($message)
            : '';
    }
public function write($key, $message)
    {
        $message = strval($message);
        return (strlen($key) && strlen($message))
            ? $this->_getCipherOb($key)->encrypt($message)
            : '';
    }
public function write ( $ key , $ message ) { $ message = strval ( $ message ) ; return ( strlen ( $ key ) && strlen ( $ message ) ) ? $ this -> _getCipherOb ( $ key ) -> encrypt ( $ message ) : '' ; }
Take a small piece of data and encrypt it with a key.

@param string $key      The key to use for encryption.
@param string $message  The plaintext message.

@return string  The ciphertext message.
@throws Horde_Secret_Exception
Take a small piece of data and encrypt it with a key .