Ruby Base64 Functions

EditRocket provides the following information on Base64 functions in the Ruby source code builder.

b64encode(bin, len = 60) - Prints the Base64 encoded version of bin (a String) in lines of len (default 60) characters.

decode64(str) - Returns the Base64-decoded version of str.

decode_b(str) - Decodes text formatted using a subset of RFC2047 (the one used for mime-encoding mail headers).

encode64(bin) - Returns the Base64-encoded version of str.