248件ヒット
[1-100件を表示]
(0.043秒)
別のキーワード
ライブラリ
-
cgi
/ session (12) -
digest
/ sha1 (12) -
digest
/ sha2 (36) - securerandom (92)
- tmpdir (12)
クラス
-
CGI
:: Cookie (36) -
CGI
:: Session (12) - Dir (12)
モジュール
- SecureRandom (80)
キーワード
- Cookie (12)
- SHA1 (12)
- SHA256 (12)
- SHA384 (12)
- SHA512 (12)
- SecureRandom (12)
- alphanumeric (8)
- base64 (12)
-
digest
/ sha1 (12) -
digest
/ sha2 (12) - hex (12)
- mktmpdir (12)
- new (24)
-
random
_ bytes (12) -
random
_ number (12) -
ruby 1
. 6 feature (12) - secure= (12)
-
urlsafe
_ base64 (12) - uuid (12)
検索結果
-
CGI
:: Cookie # secure -> bool (21101.0) -
自身がセキュアクッキーである場合は、真を返します。 そうでない場合は、偽を返します。
自身がセキュアクッキーである場合は、真を返します。
そうでない場合は、偽を返します。 -
CGI
:: Cookie # secure=(val) (9101.0) -
セキュアクッキーであるかどうかを変更します。
セキュアクッキーであるかどうかを変更します。
@param val 真を指定すると自身はセキュアクッキーになります。 -
digest
/ sha2 (6018.0) -
FIPS PUB 180-2に記述されているNIST (the US' National Institute of Standards and Technology) の以下のアルゴリズムを実装するクラスを提供す るライブラリです。
...FIPS PUB 180-2に記述されているNIST (the US' National Institute of
Standards and Technology) の以下のアルゴリズムを実装するクラスを提供す
るライブラリです。
* SHA-256 Secure Hash Algorithm
* SHA-384 Secure Hash Algorithm
* SHA-512 Secure Hash Algorithm... -
digest
/ sha1 (6016.0) -
NIST (the US' National Institute of Standards and Technology) のSHA-1 Secure Hash Algorithmを実装するクラスを提供するライブラリです。
...NIST (the US' National Institute of Standards and Technology) のSHA-1
Secure Hash Algorithmを実装するクラスを提供するライブラリです。... -
SecureRandom (6006.0)
-
安全な乱数発生器のためのインターフェースを提供するモジュールです。 HTTP のセッションキーなどに適しています。
...random hexadecimal string.
require 'securerandom'
p SecureRandom.hex(10) #=> "52750b30ffbc7de3b362"
p SecureRandom.hex(10) #=> "92b15d6c8dc4beb5f559"
p SecureRandom.hex(11) #=> "6aca1b5c58e4863e6b81b8"
p SecureRandom.hex(12) #=> "94b2fff3e7fd9b9c391a2306"
p SecureRandom.hex(13) #=> "39b2......tring.
require 'securerandom'
p SecureRandom.base64(10) #=> "EcmTPZwWRAozdA=="
p SecureRandom.base64(10) #=> "9b0nsevdwNuM/w=="
p SecureRandom.base64(10) #=> "KO1nIU+p9DKxGg=="
p SecureRandom.base64(11) #=> "l7XEiFja+8EKEtY="
p SecureRandom.base64(12) #=> "7kJSM/MzBJI+75j8"
p SecureRan......dom.base64(13) #=> "vKLJ0tXBHqQOuIcSIg=="
# random binary string.
require 'securerandom'
p SecureRandom.random_bytes(10) #=> "\016\t{\370g\310pbr\301"
p SecureRandom.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337"... -
SecureRandom
. urlsafe _ base64(n = nil , padding = false) -> String (3200.0) -
ランダムで URL-safe な base64 文字列を生成して返します。
...am padding 真を指定すると '=' でパディングを行います。
偽を指定するとパディングを行いません。デフォルトは偽です。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'......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... -
CGI
:: Cookie . new(name = "" , *value) -> CGI :: Cookie (3130.0) -
クッキーオブジェクトを作成します。
...。デフォルトはこの CGI スクリプトのベースディレクトリです。
: domain
このクッキーを適用するドメインを指定します。
: expires
このクッキーの有効期限を Time のインスタンスで指定します。
: secure
真を指定すると、こ......リストを一つ以上指定します。
例:
cookie1 = CGI::Cookie.new("name", "value1", "value2", ...)
cookie1 = CGI::Cookie.new({"name" => "name", "value" => "value"})
cookie1 = CGI::Cookie.new({'name' => 'name',
'value'......, # optional
'secure' => true # optional
'httponly' => true # optional
})
cgi.out({"cookie" => [cookie1, cookie2]}){ "string" }
name = cookie1.name
val... -
CGI
:: Session . new(request , option = {}) -> CGI :: Session (3106.0) -
セッションオブジェクトを新しく作成し返します。
...セッションオブジェクトを新しく作成し返します。
@param request CGI のインスタンスを指定します。
@param option ハッシュを指定することができます。
以下の文字列が option のキーとして認識されます。
: session_key
クッキー......に
例外 ArgumentError が発生します。
値がないときは、リクエストにセッション ID が
含まれている場合はそれを使用し、含まれていない場合は新しいセッションを始めます。
(default: 偽)
: database_manager
データベ......sion_domain
セッションが有効となるドメインを指定します。
デフォルトでは、CGI を実行しているサーバのホスト名になります。
: session_secure
真を指定すると HTTPS の場合のみ有効になります。
: session_path
クッキーの pat... -
SecureRandom
. alphanumeric(n = nil) -> String (3100.0) -
ランダムな英数字を生成して返します。
...n A-Z, a-z, 0-9 からなる文字列が返されます。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
//emlist[][ruby]{
require 'securerandom'
p SecureRandom.alphanumeric #=> "2BuBuLf3WfSKyQbR"
p SecureRandom.alphanumeric(10) #=> "i6K93NdqiH"
//}...