Method

IpuzGuessesget_checksum

Declaration [src]

gchar*
ipuz_guesses_get_checksum (
  IpuzGuesses* guesses,
  const gchar* salt
)

Description [src]

Returns a SHA1 HASH representing the current state of the puzzle. It can be compared against a stored hash in the puzzle to check for a victory condition, without actually storing the answer in the puzzle. salt is optional. If used, it should be included along with the hash when saving.

Returns (transfer full): a newly allocated checksum of the solution.

Parameters

salt

Type: const gchar*

Used to seed the checksum, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gchar*

No description available.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.