Gun-Vue docs v0.21.4 • Docs
Gun-Vue docs v0.21.4 / Crypto / getShortHash
Function: getShortHash()
getShortHash(
text
,salt
):Promise
<string
>
Calculates a hex hash for any string data.
Parameters
• text: string
The text to hash.
• salt: string
The salt to use in the hash.
Returns
Promise
<string
>
- The hex encoded SHA-1 hash.