encode

Encodes the given data into the specified base.