Skip to content
Reference > Methods



Binary strToBinary(String text, Integer base)


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