?
sha1
Summary​
Creates a UUID based on SHA1 of fixed value
Description​
Create a new UUID using an SHA1 hash of fixed value (chosen based on a namespace - see Appendix C of RFC 4122 and a name value. It can also be given an existing UUID String instead of a namespace. Accepted namespace values are: dns|url|oid|x500|nil OR uuid string.
Fields​
format​
Which format to use for the UUID.
default: "cdfdaf44-ee35-11e3-846b-14109ff1a304"
hex: "cdfdaf44ee3511e3846b14109ff1a304"
urn: "urn:uuid:cdfdaf44-ee35-11e3-846b-14109ff1a304"
namespace​
The type of namespace for the UUID. Valid values are one of [dns, url, oid, x500, nil] or a valid UUID.
name​
The name of the namespace. An example for a dns namespace might be my.domain.com
.
info​
Determines whether the output should be an object with information about the UUID. Otherwise, the UUID will be returned as a string.
{
"uuid": "cdfdaf44-ee35-11e3-846b-14109ff1a304",
"binary": {
"__struct__": "ORM",
"type": "hex",
"value": "CDFDAF44EE3511E3846B14109FF1A304",
"version": 0
},
"type": "default",
"version": 1,
"variant": "rfc4122"
}
Helpful?