uuid / com.benasher44.uuid / uuid5Of

uuid5Of

fun uuid5Of(namespace: Uuid, name: String): Uuid

Platform and version requirements: JVM

Constructs a "Name-Based" version 5 UUID.

Version 5 UUIDs are created by combining a name and a namespace using the SHA-1 hash function.

Parameters

namespace - for the "Name-Based" UUID

name - withing the namespace for the "Name-Based" UUID

Return
New version 5 UUID.