Class: Base64

Inherits:
Object show all
Defined in:
flow/base64/base64.rb

Class Method Summary (collapse)

Class Method Details

+ (String) decode(string)

Decodes a base64 string

Examples:

Base64.decode('eHg=')
#=> xx

Parameters:

  • string (String)

    The base64 encoded string

Returns:

  • (String)

    The decoded string



# File 'flow/base64/base64.rb', line 27

+ (String) encode(string)

Converts a string into its base64 equivalent string

Examples:

Base64.encode('xx')
#=> eHg=

Parameters:

  • string (String)

    The original string to be converted

Returns:

  • (String)

    The base64 encoded string



# File 'flow/base64/base64.rb', line 2