The Base64 module isn’t available in earlier versions of Ruby 1.9.
Methods
- D
- E
- S
Class Public methods
Decodes a base 64 encoded string to its original representation.
ActiveSupport::Base64.decode64("T3JpZ2luYWwgdW5lbmNvZGVkIHN0cmluZw==") # => "Original unencoded string"
Encodes a string to its base 64 representation. Each 60 characters of output is separated by a newline character.
ActiveSupport::Base64.encode64("Original unencoded string") # => "T3JpZ2luYWwgdW5lbmNvZGVkIHN0cmluZw==\n"