public function write($data, array $options = []) {
		$class = $options['class'];

		$futureData = $this->read(null, ['key' => null] + $options) ?: [];
		$futureData = [$options['key'] => $data] + $futureData;

		$payload = empty($futureData) ? null : $this->_encrypt($futureData);

		$class::write('__encrypted', $payload, ['strategies' => false] + $options);
		return $payload;
	}
public function write($data, array $options = []) {
		$class = $options['class'];

		$futureData = $this->read(null, ['key' => null] + $options) ?: [];
		$futureData = [$options['key'] => $data] + $futureData;

		$payload = empty($futureData) ? null : $this->_encrypt($futureData);

		$class::write('__encrypted', $payload, ['strategies' => false] + $options);
		return $payload;
	}
public function write ( $ data , array $ options = [ ] ) { $ class = $ options [ 'class' ] ; $ futureData = $ this -> read ( null , [ 'key' => null ] + $ options ) ? : [ ] ; $ futureData = [ $ options [ 'key' ] => $ data ] + $ futureData ; $ payload = empty ( $ futureData ) ? null : $ this -> _encrypt ( $ futureData ) ; $ class :: write ( '__encrypted' , $ payload , [ 'strategies' => false ] + $ options ) ; return $ payload ; }
Write encryption method.

@param mixed $data The data to be encrypted.
@param array $options Options for this method.
@return string Returns the written data in cleartext.
Write encryption method .