Function
Fwupdguid_hash_string
since: 1.2.5
Declaration [src]
gchar*
fwupd_guid_hash_string (
const gchar* str
)
Description [src]
Returns a GUID for a given string. This uses a hash and so even small
differences in the str
will produce radically different return values.
The default implementation is taken from RFC4122, Section 4.1.3; specifically using a type-5 SHA-1 hash with a DNS namespace. The same result can be obtained with this simple python program:
#!/usr/bin/python import uuid print uuid.uuid5(uuid.NAMESPACE_DNS, ‘python.org’).
Available since: 1.2.5