method

encode

encode(str)
public

Encodes string str with base64 and returns that value.