るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

ライブラリ

キーワード

検索結果

Digest.#bubblebabble(string) -> String (3201.0)

与えられた文字列を BubbleBabble エンコードした文字列を返します。

...与えられた文字列を BubbleBabble エンコードした文字列を返します。

@param string 文字列を指定します。...

Digest.#hexencode(string) -> String (3201.0)

引数である文字列 string を、16進数に変換した文字列を生成して返します。

...文字列 string を、16進数に変換した文字列を生成して返します。

@param string 文字列を指定します。

//emlist[][ruby]{
require 'digest'

p Digest.hexencode("") # => ""
p Digest.hexencode("d") # => "64"
p Digest.hexencode("\1\2") # => "0102"
p Digest.hexencode("...
..."b0"

p digest = Digest::MD5.digest("ruby") # => "X\xE5=\x13$\xEE\xF6&_\xDB\x97\xB0\x8E\xD9\xAA\xDF"
p Digest.hexencode(digest) # => "58e53d1324eef6265fdb97b08ed9aadf"
p Digest::MD5.hexdigest("ruby") # => "58e53d1324eef6265fdb97b08ed9aadf"

p digest = Digest::SHA1.digest("ruby...
...\x81"
p Digest.hexencode(digest) # => "18e40e1401eef67e1ae69efab09afb71f87ffb81"
p Digest::SHA1.hexdigest("ruby") # => "18e40e1401eef67e1ae69efab09afb71f87ffb81"
//}

文字列から16進数に変換したハッシュ値を直接得たい場合は、Digest::Base.hexdigest...