Module: Argon2id
- Defined in:
- lib/argon2id.rb,
lib/argon2id/version.rb,
lib/argon2id/password.rb,
lib/argon2id/extension.rb,
ext/argon2id/argon2id.c
Defined Under Namespace
Constant Summary collapse
- DEFAULT_T_COST =
The default “time cost” of 2 iterations recommended by OWASP.
2
- DEFAULT_M_COST =
The default “memory cost” of 19 mebibytes recommended by OWASP.
19_456
- DEFAULT_PARALLELISM =
The default 1 thread and compute lane recommended by OWASP.
1
- DEFAULT_SALT_LEN =
The default salt length of 16 bytes.
16
- DEFAULT_OUTPUT_LEN =
The default desired hash length of 32 bytes.
32
- VERSION =
"0.7.0"
Class Attribute Summary collapse
-
.m_cost ⇒ Object
The default memory cost in kibibytes used by Argon2id::Password.create.
-
.output_len ⇒ Object
The default desired length of the hash in bytes used by Argon2id::Password.create.
-
.parallelism ⇒ Object
The default number of threads and compute lanes used by Argon2id::Password.create.
-
.salt_len ⇒ Object
The default salt size in bytes used by Argon2id::Password.create.
-
.t_cost ⇒ Object
The default number of iterations used by Argon2id::Password.create.
Class Attribute Details
.m_cost ⇒ Object
The default memory cost in kibibytes used by Argon2id::Password.create
34 35 36 |
# File 'lib/argon2id.rb', line 34 def m_cost @m_cost end |
.output_len ⇒ Object
The default desired length of the hash in bytes used by Argon2id::Password.create
43 44 45 |
# File 'lib/argon2id.rb', line 43 def output_len @output_len end |
.parallelism ⇒ Object
The default number of threads and compute lanes used by Argon2id::Password.create
37 38 39 |
# File 'lib/argon2id.rb', line 37 def parallelism @parallelism end |
.salt_len ⇒ Object
The default salt size in bytes used by Argon2id::Password.create
40 41 42 |
# File 'lib/argon2id.rb', line 40 def salt_len @salt_len end |
.t_cost ⇒ Object
The default number of iterations used by Argon2id::Password.create
31 32 33 |
# File 'lib/argon2id.rb', line 31 def t_cost @t_cost end |