Crypto
import { base64Decode, base64Encode, hashString } from '@rtorcato/js-common/crypto'
Exports
| Name | Summary |
|---|---|
base64Decode | Decodes a base64 string. |
base64Encode | Encodes a string to base64. |
hashString | Hashes a string using the specified algorithm. |
hmacHash | Creates an HMAC hash of a string using a secret and algorithm. |
randomHex | Generates a random hex string of the specified length (in bytes). |