src/Security/CryptographyEngine.php
public function encrypt($text, $email)
	{
		$key = $this->hasher->key($email);

		return $this->crypter->encrypt($text, $key);
	}
public function encrypt($text, $email)
	{
		$key = $this->hasher->key($email);

		return $this->crypter->encrypt($text, $key);
	}
public function encrypt ( $ text , $ email ) { $ key = $ this -> hasher -> key ( $ email ) ; return $ this -> crypter -> encrypt ( $ text , $ key ) ; }
encrypts a given string with given hash

@param string $text
@param string $email

@return string
encrypts a given string with given hash