public function hash($options) {
		$mediaSalt = Configure::read('Imagine.salt');
		if (empty($mediaSalt)) {
			throw new \RuntimeException(__d('imagine', 'Please configure {0} using {1}', 'Imagine.salt', 'Configure::write(\'Imagine.salt\', \'YOUR-SALT-VALUE\')'));
		}
		ksort($options);
		return urlencode(Security::hash(serialize($options) . $mediaSalt));
	}
public function hash($options) {
		$mediaSalt = Configure::read('Imagine.salt');
		if (empty($mediaSalt)) {
			throw new \RuntimeException(__d('imagine', 'Please configure {0} using {1}', 'Imagine.salt', 'Configure::write(\'Imagine.salt\', \'YOUR-SALT-VALUE\')'));
		}
		ksort($options);
		return urlencode(Security::hash(serialize($options) . $mediaSalt));
	}
public function hash ( $ options ) { $ mediaSalt = Configure :: read ( 'Imagine.salt' ) ; if ( empty ( $ mediaSalt ) ) { throw new \ RuntimeException ( __d ( 'imagine' , 'Please configure {0} using {1}' , 'Imagine.salt' , 'Configure::write(\'Imagine.salt\', \'YOUR-SALT-VALUE\')' ) ) ; } ksort ( $ options ) ; return urlencode ( Security :: hash ( serialize ( $ options ) . $ mediaSalt ) ) ; }
Signs the url with a salted hash

@throws \RuntimeException
@param array $options
@return string
Signs the url with a salted hash