strToBinary(text,base)¶
Definition¶
Binary strToBinary(String text, Integer base)
Description¶
Given a string in the specified base, returns it as binary data. E.g. if specified 64, must provide a string in base 64.
Parameter Definition¶
Name | Type | Description |
---|---|---|
text | String | The string to encode |
base | Integer | The base of the provided string. Must be either 16, 64 or 256 |