public static function hash($data, $file = false) {
      $hasher = new \Nuki\Handlers\Security\Hasher(self::getAppAlgorithm(), self::getAppKey());

      return $hasher->hash($data, $file);
    }
public static function hash($data, $file = false) {
      $hasher = new \Nuki\Handlers\Security\Hasher(self::getAppAlgorithm(), self::getAppKey());

      return $hasher->hash($data, $file);
    }
public static function hash ( $ data , $ file = false ) { $ hasher = new \ Nuki \ Handlers \ Security \ Hasher ( self :: getAppAlgorithm ( ) , self :: getAppKey ( ) ) ; return $ hasher -> hash ( $ data , $ file ) ; }
Hash by data or filename

@param $data
@param bool $file

@return bool|string

@throws \Nuki\Exceptions\Base
Hash by data or filename