22件ヒット
[1-22件を表示]
(0.427秒)
ライブラリ
- digest (11)
-
digest
/ bubblebabble (11)
キーワード
- bubblebabble (11)
- hexencode (11)
検索結果
-
Digest
. # hexencode(string) -> String (425.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 を... -
Digest
. # bubblebabble(string) -> String (409.0) -
与えられた文字列を BubbleBabble エンコードした文字列を返します。
...与えられた文字列を BubbleBabble エンコードした文字列を返します。
@param string 文字列を指定します。...