feat: remove test_unsafe
This commit is contained in:
parent
abb3eab559
commit
d2839286ce
7 changed files with 8 additions and 29 deletions
|
@ -1,15 +1,13 @@
|
|||
defmodule Argon2 do
|
||||
@moduledoc """
|
||||
Argon2 password hashing for Elixir using Rust NIFs.
|
||||
Argon2 password hashing using Rust.
|
||||
|
||||
This module provides a secure way to hash passwords using the Argon2i algorithm
|
||||
with configuration presets following security best practices.
|
||||
This module provides a secure way to hash passwords using the Argon2i algorithm.
|
||||
|
||||
## Security Presets
|
||||
|
||||
* `:owasp` (default) - OWASP recommended settings (m=19456, t=2, p=1)
|
||||
* `:strong` - Higher security settings (m=65540, t=3, p=4)
|
||||
* `:test_unsafe` - Fast settings for testing only (m=1024, t=1, p=1)
|
||||
|
||||
## Examples
|
||||
|
||||
|
@ -34,7 +32,6 @@ defmodule Argon2 do
|
|||
|
||||
* Passwords must be at least 8 characters long
|
||||
* Each hash uses a unique random salt
|
||||
* The `:test_unsafe` preset should never be used in production
|
||||
"""
|
||||
|
||||
@type password :: String.t()
|
||||
|
@ -46,7 +43,7 @@ defmodule Argon2 do
|
|||
|
||||
## Options
|
||||
|
||||
* `config` - One of `"owasp"` (default), `"strong"`, or `"test_unsafe"`
|
||||
* `config` - One of `"owasp"` (default) or `"strong"`
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ defmodule Argon2.Benchmark do
|
|||
"""
|
||||
|
||||
def run(rounds \\ 5) do
|
||||
configs = [nil, "strong", "test_unsafe"]
|
||||
configs = [nil, "strong"]
|
||||
password = "benchmark_password123"
|
||||
|
||||
IO.puts("Configuration Benchmarks (averaged over #{rounds} runs):\n")
|
||||
|
@ -37,7 +37,6 @@ defmodule Argon2.Benchmark do
|
|||
case config do
|
||||
"owasp" -> 19
|
||||
"strong" -> 65
|
||||
"test_unsafe" -> 1
|
||||
end
|
||||
|
||||
IO.puts("""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue