2 @unnumbered Password authentication
4 Password authentication is required for packages uploading. Passwords
5 are dynamically changed through the FIFO file. You have to create it and
6 use in @option{-passwd} option:
10 $ gocheese -passwd passwd ...
13 Then you must feed it newline-separated records in following format:
16 username:hashed-password
19 Where @code{hashed-password} is in one of following algorithms:
23 @item @url{https://www.argon2i.com/, Argon2i} (recommended one!)
24 To get Argon2i hashed-password you can use any of following tools:
27 @item @code{go get @url{https://github.com/balakhonova/argon2i,
28 github.com/balakhonova/argon2i}} (Go)
29 @item @url{https://github.com/p-h-c/phc-winner-argon2} (C)
32 Example user @code{foo} with password @code{bar} can have the
33 following password file entry:
36 foo:$argon2i$v=19$m=32768,t=3,p=4$OGU5MTM3YjVlYzQwZjhkZA$rVn53v6Ckpf7WH0676ZQLr9Hbm6VH3YnL6I9ONJcIIU
40 You can use your operating system tools:
43 $ echo -n "password" | `command -v sha256 || echo sha256sum`
46 Example user @code{foo} with password @code{bar} will have the
47 following password file entry:
50 foo:$sha256$fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9
55 To add or update password entry:
58 $ echo foo:$sha256$... > passwd
59 $ cat passwords.txt > passwd
62 To delete login entry use empty password:
68 You can also check you passwords file with:
71 $ gocheese -passwd-check < passwords.txt