ライブラリ
- ビルトイン (129)
- digest (60)
- openssl (204)
- resolv (72)
-
rubygems
/ digest / digest _ adapter (12) - securerandom (24)
-
webrick
/ httpauth / authenticator (24)
クラス
- Array (21)
-
Digest
:: Base (48) -
Encoding
:: Converter (36) -
Gem
:: DigestAdapter (12) -
OpenSSL
:: Digest :: DSS (12) -
OpenSSL
:: Digest :: DSS1 (12) -
OpenSSL
:: Digest :: MD2 (12) -
OpenSSL
:: Digest :: MD4 (12) -
OpenSSL
:: Digest :: MD5 (12) -
OpenSSL
:: Digest :: MDC2 (12) -
OpenSSL
:: Digest :: RIPEMD160 (12) -
OpenSSL
:: Digest :: SHA (12) -
OpenSSL
:: Digest :: SHA1 (12) -
OpenSSL
:: Digest :: SHA224 (12) -
OpenSSL
:: Digest :: SHA256 (12) -
OpenSSL
:: Digest :: SHA384 (12) -
OpenSSL
:: Digest :: SHA512 (12) -
OpenSSL
:: HMAC (48) -
Resolv
:: IPv6 (72) - String (60)
モジュール
- Digest (12)
- Kernel (12)
- SecureRandom (12)
-
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (12)
キーワード
- AuthException (24)
- Integer (12)
-
NEWS for Ruby 3
. 1 . 0 (4) - Regex (12)
-
Regex
_ 6Hex4Dec (12) -
Regex
_ 8Hex (12) -
Regex
_ CompressedHex (12) -
Regex
_ CompressedHex4Dec (12) - SecureRandom (12)
- create (12)
- hexdigest (216)
- hexdigest! (12)
- hexencode (12)
- inspect (12)
- new (36)
- oct (12)
- pack (21)
- pack テンプレート文字列 (12)
-
ruby 1
. 6 feature (12) -
to
_ f (12) -
to
_ i (12) -
to
_ s (24) - unpack (12)
検索結果
先頭5件
-
Array
# pack(template) -> String (12.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...ck('ccxxcc') # => [82, 117, 98, 121]
//}
: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]
"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}
: バ... -
Array
# pack(template , buffer: String . new) -> String (12.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...ck('ccxxcc') # => [82, 117, 98, 121]
//}
: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]
"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}
: バ... -
Resolv
:: IPv6 . create(address) -> Resolv :: IPv6 (12.0) -
引数 address で指定した文字列から Resolv::IPv6 のインスタンスを生成しま す。
...ddress で指定した文字列から Resolv::IPv6 のインスタンスを生成しま
す。
@param address human readable な IPv6 アドレスの文字列表現を以下のいず
れかの形式で指定します。
* 8Hex
* CompressedHex
* 6Hex4Dec
* CompressedHex4Dec... -
String
# unpack(template) -> Array (12.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...ck('ccxxcc') # => [82, 117, 98, 121]
//}
: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]
"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}
: バ... -
pack テンプレート文字列 (12.0)
-
pack テンプレート文字列
...ck('ccxxcc') # => [82, 117, 98, 121]
//}
: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]
"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}
: バ... -
Encoding
:: Converter . new(convpath) -> Encoding :: Converter (6.0) -
Encoding::Converter オブジェクトを作成します。
...下の定数が利用可能です。
* Encoding::Converter::INVALID_REPLACE
* Encoding::Converter::UNDEF_REPLACE
* Encoding::Converter::UNDEF_HEX_CHARREF
* Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
* Encoding::Converter::CRLF_NEWLINE_DECORATOR
* Encoding::Converter::CR_NEWLINE_DE... -
Encoding
:: Converter . new(source _ encoding , destination _ encoding) -> Encoding :: Converter (6.0) -
Encoding::Converter オブジェクトを作成します。
...下の定数が利用可能です。
* Encoding::Converter::INVALID_REPLACE
* Encoding::Converter::UNDEF_REPLACE
* Encoding::Converter::UNDEF_HEX_CHARREF
* Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
* Encoding::Converter::CRLF_NEWLINE_DECORATOR
* Encoding::Converter::CR_NEWLINE_DE... -
Encoding
:: Converter . new(source _ encoding , destination _ encoding , options) -> Encoding :: Converter (6.0) -
Encoding::Converter オブジェクトを作成します。
...下の定数が利用可能です。
* Encoding::Converter::INVALID_REPLACE
* Encoding::Converter::UNDEF_REPLACE
* Encoding::Converter::UNDEF_HEX_CHARREF
* Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
* Encoding::Converter::CRLF_NEWLINE_DECORATOR
* Encoding::Converter::CR_NEWLINE_DE... -
Kernel
. # Integer(arg , base = 0) -> Integer (6.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...teger("1\n0") # `Integer': invalid value for Integer: "1\n0" (ArgumentError)
p Integer("hoge") # `Integer': invalid value for Integer: "hoge" (ArgumentError)
p Integer("") # `Integer': invalid value for Integer: "" (ArgumentError)
//}
@see String#hex,String#oct,String#to_i,Integer... -
Kernel
. # Integer(arg , base = 0 , exception: true) -> Integer | nil (6.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...teger("1\n0") # `Integer': invalid value for Integer: "1\n0" (ArgumentError)
p Integer("hoge") # `Integer': invalid value for Integer: "hoge" (ArgumentError)
p Integer("") # `Integer': invalid value for Integer: "" (ArgumentError)
//}
@see String#hex,String#oct,String#to_i,Integer...