24件ヒット
[1-24件を表示]
(0.027秒)
別のキーワード
検索結果
-
Base64
. # decode64(str) -> String (18113.0) -
与えられた文字列を Base64 デコードしたデータを返します。
...aram str Base64 デコードする文字列を指定します。
require 'base64'
str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' +
'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
puts Base64.decode64(str)
# This is line one
# This is line two
# This is... -
base64 (12.0)
-
Base64 エンコード / デコードを行うメソッドを定義したモジュールを提供するライブラリです。
...サンプルスクリプトではありません。
=== 使用方法
require "base64"
enc = Base64.encode64('Send reinforcements')
# => "U2VuZCByZWluZm9yY2VtZW50cw==\n"
plain = Base64.decode64(enc)
# => "Send reinforcements"
データを...