DGData - Data Scheme
Formerly known as NKTools
Documentation - Table of Contents
arrayToStr
Converts an array of bytes to text
Parameters
array
An
array array of utf-8 bytes
Returns string A string
strToArray
Converts a string to a utf-8 array
Parameters
str
A
str string
Returns Array Returns an array of numbers
decode
Decodes a string or array of DGData Arrays work best, as strings loose data due to utf-8 / unicode
Parameters
data
This
data is the data to be decoded
Returns string This is the result of the data
encode
Encodes a string of data
Parameters
data
Data
data to be encoded
Returns array An array of bytes
secondHash
Encodes a number - You really shouldn't have to deal with this
Parameters
number
The
number number to be encoded
Returns number The result
hash
Hashes some data - You really shouldn't have to deal with this unless you want to manually verify the program
Parameters
data
Some
data data - it's a string
Returns array An array of bytes