wiki.sine.space | sinespace

Difference between revisions of "Scripting/SString"

From wiki.sine.space
Jump to: navigation, search
Line 2: Line 2:
  
 
==Members==
 
==Members==
{{ScriptFunction|string|MD5|(string input);|Calculates the MD5Sum of input and returns the result as a hexadecimal string}}
+
{{ScriptFunction|string|MD5|(string input);|Calculates the MD5Sum of input and returns the result as a hexadecimal string|Space.String.MD5("A string with data to hash.")}}
 
{{ScriptFunction|string|Base64Encode|(string input);|Converts input to Base64 and returns the result}}
 
{{ScriptFunction|string|Base64Encode|(string input);|Converts input to Base64 and returns the result}}
 
{{ScriptFunction|string|Base64Encode|(byte[] input);|Converts input to Base64 and returns the result}}
 
{{ScriptFunction|string|Base64Encode|(byte[] input);|Converts input to Base64 and returns the result}}

Revision as of 21:41, 16 February 2017

The SHost class represents the scripting runtime.

Members

MD5

string MD5 (string input);

Calculates the MD5Sum of input and returns the result as a hexadecimal string

Space.String.MD5("A string with data to hash.")


Base64Encode

string Base64Encode (string input);

Converts input to Base64 and returns the result

No example provided yet


Base64Encode

string Base64Encode (byte[] input);

Converts input to Base64 and returns the result

No example provided yet


Base64Decode

string Base64Decode (string input);

Converts input from Base64 and returns the result

No example provided yet


GetBytes[]

byte GetBytes[] (string input);

Converts input to bytes using UTF8 encoding

No example provided yet


GetString

string GetString (byte[] input);

Converts input to a UTF8 string

No example provided yet