public function createHash($data, $salt = false)
    {
        if ($salt === false) {
            $salt = sha1(uniqid("sillystring", true) . microtime());
        }

        $raw = crypt($data, '$6$rounds=10000$' . $salt . '$');

        return $raw;
    }