Answers for "Ruby module Base64, A simple encoding and decoding."

0

Ruby module Base64, A simple encoding and decoding.

require "base64"

enc   = Base64.encode64('Send reinforcements')
                    # -> "U2VuZCByZWluZm9yY2VtZW50cw==\n"
plain = Base64.decode64(enc)
                    # -> "Send reinforcements"
Posted by: Guest on October-27-2021

Code answers related to "Ruby module Base64, A simple encoding and decoding."

Browse Popular Code Answers by Language