Creates a new glib.Checksum, using the checksum algorithm checksum_type.
If the checksum_type is not known, NULL is returned.
A glib.Checksum can be used to compute the checksum, or digest, of an
arbitrary binary blob, using different hashing algorithms.
Creates a new glib.Checksum, using the checksum algorithm checksum_type. If the checksum_type is not known, NULL is returned. A glib.Checksum can be used to compute the checksum, or digest, of an arbitrary binary blob, using different hashing algorithms.
A glib.Checksum works by feeding a binary blob through Checksum.update until there is data to be checked; the digest can then be extracted using Checksum.getString, which will return the checksum as a hexadecimal string; or Checksum.getDigest, which will return a vector of raw bytes. Once either Checksum.getString or Checksum.getDigest have been called on a glib.Checksum, the checksum will be closed and it won't be possible to call Checksum.update on it anymore.