Skip to content

useHash

Generate a hash value for a given string.

Parameters

NameDescription
strThe input string to hash.

Returns

A hashed representation of the input string.

(str: string) => string
(str: string) => string

Examples

ts
useHash('somerandomstring') // 19viky0
useHash('somerandomstring') // 19viky0

Released under the GNU GPLv3 License.