getFile(); $iterations = $file->getStorageProperty('iterations', 1); $value = $file->loadDataFromIterator($raw_iterator); for ($ii = 0; $ii < $iterations; $ii++) { $value = str_rot13($value); } return array($value); } public function newWriteIterator($raw_iterator) { return $this->newReadIterator($raw_iterator); } public function newStorageProperties() { // For extreme security, repeatedly encode the data using a random (odd) // number of iterations. return array( 'iterations' => (mt_rand(1, 3) * 2) - 1, ); } }