nameBasedUuidOf

fun nameBasedUuidOf(namespace: Uuid, name: String, hasher: UuidHasher): Uuid

Constructs a "Name-Based" version 3 or 5 UUID.

Version 3 and 5 UUIDs are created by combining a name and a namespace using a hash function. This library may provide such hash functions in the future, but it adds a significant maintenance burden to support for native, JS, and JVM. Until then:

Return

New version 3 or 5 UUID.

Parameters

namespace

for the "Name-Based" UUID

name

withing the namespace for the "Name-Based" UUID

hasher

interface that implements a hashing algorithm

See also

Samples

com.benasher44.uuid.uuid5Of