Encrypt::hash() 

\nn\t3::Encrypt()->hash($string = ''); 

Simple hashing, e.g. when checking a uid against a hash.

\nn\t3::Encrypt()->hash( $uid );
Copied!

Also exists as a ViewHelper:

{something->nnt3:encrypt.hash()}
Copied!

| @return string

Source Code 

public function hash( $string = '' ) {
	$salt = $this->getSaltingKey();
	return preg_replace('/[^a-zA-Z0-9]/', '', base64_encode( sha1("{$string}-{$salt}", true )));
}
Copied!