Base64Encode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Set base64Encode deprecated as #3312) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
This function returns the [https://en.wikipedia.org/wiki/Base64 base64] representation of the | This function returns the [https://en.wikipedia.org/wiki/Base64 base64] representation of the encoded block of data | ||
{{deprecated|encodeString}} | |||
==Syntax== | ==Syntax== | ||
Line 9: | Line 11: | ||
===Required arguments=== | ===Required arguments=== | ||
*'''data:''' The block of data you want to | *'''data:''' The block of data you want to encode | ||
===Returns=== | ===Returns=== | ||
Returns the [https://en.wikipedia.org/wiki/Base64 base64] representation of the | Returns the [https://en.wikipedia.org/wiki/Base64 base64] representation of the encoded data if the encoding process was successfully completed, ''false'' otherwise. | ||
==Example== | ==Example== |
Latest revision as of 19:53, 19 February 2024
This function returns the base64 representation of the encoded block of data
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use encodeString instead. |
Syntax
string base64Encode ( string data )
Required arguments
- data: The block of data you want to encode
Returns
Returns the base64 representation of the encoded data if the encoding process was successfully completed, false otherwise.
Example
local k = base64Encode("Hello, world!") outputConsole(k) --Output: SGVsbG8sIHdvcmxkIQ==
See Also
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace