るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.023秒)
トップページ > クエリ:base64[x] > クエリ:urlsafe_base64[x]

別のキーワード

  1. openssl iso64string
  2. asn1 iso64string
  3. base64 urlsafe_decode64
  4. base64 urlsafe_encode64
  5. base64 decode64

ライブラリ

モジュール

検索結果

SecureRandom.urlsafe_base64(n = nil, padding = false) -> String (24272.0)

ランダムで URL-safe な base64 文字列を生成して返します。

...ランダムで URL-safe な base64 文字列を生成して返します。

@param n 文字列の生成に使われるランダムネスのサイズを整数で指定します。
生成される文字列のサイズはn の約 4/3 倍になります。
nil を指定した場合 n...
...ureRandom.urlsafe_base64 #=> "b4GOKm4pOYU_-BOXcrUGDg"
p SecureRandom.urlsafe_base64 #=> "UZLdOkzop70Ddx-IJR0ABg"
p SecureRandom.urlsafe_base64(nil, true) #=> "i0XQ-7gglIsHGV2_BNPrdQ=="
p SecureRandom.urlsafe_base64(nil, true) #=> "-M8rLhr7JEpJlqFGUMmOxg=="

@see SecureRandom.base64, 3548...