EncodingUDF Library

Functions7 public, 0 private

publicstringencodeBase64url
requiredstringbase64
Encodes the provided string as base64 using the safe alphabet according to RFC 4648.
publicstringtoBase64url
requiredstringtarget
stringencodingUTF-8
booleanremovePaddingtrue
Replaces various characters in the provided string for safe usage as filename.
publicstringencodeForFilename
requiredstringvalue
Wrapper for the native [encodeForJavascript] function.
publicstringencodeForJavascript
requiredstringvalue
anyOPTIONSfalse
optionbooleancanonicalizefalse
\n
optionbooleankeepNewLinestrue
Hashes the provided string using 32 Bit prime and offset values for the FNV1a algorithm (Fowler-Noll-Vo).
publicnumerichashFNV1a32
requiredstringvalue
Hashes the provided string using 64 Bit prime and offset values for the FNV1a algorithm (Fowler-Noll-Vo).
publicnumerichashFNV1a64
requiredstringvalue
Preserves all whitespaces while encoding the the provided string.
publicstringpreserveWhitespaces
requiredstringtext