📜  Ruby 模块 Base64,一个简单的编码和解码. - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:14.283000             🧑  作者: Mango

代码示例1
require "base64"

enc   = Base64.encode64('Send reinforcements')
                    # -> "U2VuZCByZWluZm9yY2VtZW50cw==\n"
plain = Base64.decode64(enc)
                    # -> "Send reinforcements"