Skip to content

Commit

Permalink
local user docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Oct 28, 2024
1 parent 89d62e4 commit 5cbd8d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/ROOT/pages/security/local.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ This will return a output like this, you can then copy and paste this hash into
Your password hash is: $argon2id$v=19$m=65536,t=4,p=6$dlWTV1RL04/Nuvxzl94NAg$KsYXvCFE2Eu/jkXi/dbbZM3I/2b2VByTAwRIenUwdJk
```

==== Option B - Using the `argon2` command line tool
===== Option B - Using the `argon2` command line tool

You can also easily hash the password using the `argon2` package:

```bash
echo -n "myPassword" | argon2 "$(openssl rand -base64 16)" -id -t 4 -m 16 -p 6 -l 32 -e
```

==== OPption C - Using the `hash` docker image
Or using the [hash](https://hub.docker.com/r/leplusorg/hash) docker image:
===== Opption C - Using the `hash` docker image
Or using the link:https://hub.docker.com/r/leplusorg/hash[hash] docker image:

```bash
docker run --rm -i --net=none leplusorg/hash sh -c 'echo -n "myPassword" | argon2 "$(openssl rand -base64 16)" -id -t 4 -m 16 -p 6 -l 32 -e'
Expand Down

0 comments on commit 5cbd8d9

Please sign in to comment.