mirror of
https://github.com/therootcompany/golib.git
synced 2025-10-07 01:28:19 +00:00
doc(envauth): show use of salt generator
This commit is contained in:
parent
23ff6225f5
commit
0893b3cb2d
@ -58,9 +58,13 @@ func main() {
|
|||||||
Salted and hashed password.
|
Salted and hashed password.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go run ./cmd/pbkdf2-sha256/ 'secret' 'i63wDd7K-60'
|
go run ./cmd/salt/ 8
|
||||||
|
# url-base64: i63wDd7K-60
|
||||||
|
```
|
||||||
|
|
||||||
derived-key: 553ce8846c2304e93021dab03bacb5ca
|
```sh
|
||||||
|
go run ./cmd/pbkdf2-sha256/ 'secret' 'i63wDd7K-60'
|
||||||
|
# derived-key: 553ce8846c2304e93021dab03bacb5ca
|
||||||
```
|
```
|
||||||
|
|
||||||
`.env`:
|
`.env`:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user