Skip to content

Gun-Vue docs v0.21.4Docs


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.

Defined in

src/crypto/useCrypto.js:89

MIT