Ashasekayi (Talk | contribs) |
Ashasekayi (Talk | contribs) |
||
Line 5: | Line 5: | ||
{{ScriptFunction|string|Base64Encode|(string input);|Converts input to Base64 and returns the result|5 = local inputString = "input to encode"<br>local baseEncodeStr = Space.String.Base64Encode(inputString)<br>Space.Log(baseEncodeStr)<br>-- prints "aW5wdXQgdG8gZW5jb2Rl"}} | {{ScriptFunction|string|Base64Encode|(string input);|Converts input to Base64 and returns the result|5 = local inputString = "input to encode"<br>local baseEncodeStr = Space.String.Base64Encode(inputString)<br>Space.Log(baseEncodeStr)<br>-- prints "aW5wdXQgdG8gZW5jb2Rl"}} | ||
{{ScriptFunction|string|Base64Encode|(byte[] input);|Converts input to Base64 and returns the result|5 = local inputByteArray = {105, 110, 112, 117, 116, 32, 116, 111, 32, 101, 110, 99, 111, 100, 101}<br>local baseEncodeByte = Space.String.Base64Encode(inputByteArray)<br>Space.Log(baseEncodeByte)<br>-- prints "aW5wdXQgdG8gZW5jb2Rl"}} | {{ScriptFunction|string|Base64Encode|(byte[] input);|Converts input to Base64 and returns the result|5 = local inputByteArray = {105, 110, 112, 117, 116, 32, 116, 111, 32, 101, 110, 99, 111, 100, 101}<br>local baseEncodeByte = Space.String.Base64Encode(inputByteArray)<br>Space.Log(baseEncodeByte)<br>-- prints "aW5wdXQgdG8gZW5jb2Rl"}} | ||
− | {{ScriptFunction|string|Base64Decode|(string input);|Converts input from Base64 and returns the result}} | + | {{ScriptFunction|string|Base64Decode|(string input);|Converts input from Base64 and returns the result|5 = local inputBase64String = "aW5wdXQgdG8gZW5jb2Rl"<br>local baseDecodedStr = Space.String.Base64Decode(inputBase64String)<br>Space.Log(baseDecodedStr)<br>-- prints "input to encode"}} |
{{ScriptFunction|byte|GetBytes[]|(string input);|Converts input to bytes using UTF8 encoding}} | {{ScriptFunction|byte|GetBytes[]|(string input);|Converts input to bytes using UTF8 encoding}} | ||
{{ScriptFunction|string|GetString|(byte[] input);|Converts input to a UTF8 string}} | {{ScriptFunction|string|GetString|(byte[] input);|Converts input to a UTF8 string}} | ||
{{Scripting Navbox}} | {{Scripting Navbox}} |
The SHost class represents the scripting runtime.
Calculates the MD5Sum of input and returns the result as a hexadecimal string
Converts input to Base64 and returns the result
Converts input to Base64 and returns the result
Converts input from Base64 and returns the result
Converts input to bytes using UTF8 encoding
Converts input to a UTF8 string
|