]> Cypherpunks.ru repositories - govpn.git/blob - doc/verifier.texi
[DOC] Add various concept indexes
[govpn.git] / doc / verifier.texi
1 @node Verifier
2 @cindex Verifier
3 @cindex storekey.sh
4 @cindex govpn-verifier
5 @subsection Verifier
6
7 Verifier is created using @code{govpn-verifier} utility. But currently
8 Go does not provide native instruments to read passwords without echoing
9 them to stdout. You can use @code{utils/storekey.sh} script to read them
10 silently.
11
12 @example
13 % utils/storekey.sh mypass.txt
14 Enter passphrase:[hello world]
15 % govpn-verifier -key mypass.txt
16 $argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg$KCNIqfS4DGsBTtVytamAzcISgrlEWvNxan1UfBrFu10
17 $argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg
18 @end example
19
20 First line is the verifier for the server side. Second line is for the
21 client -- it lacks generated public key. However you can use server's
22 one on the client side too.
23
24 You can check passphrase against verifier by specifying @code{-verifier}
25 option with the path to verifier file:
26
27 @example
28 % govpn-verifier -key mypass.txt -verifier '$argon2d...'
29 true
30 @end example
31
32 Plaintext passphrases @strong{must} be stored on volatile memory, for
33 example either in memory disk, or on encrypted filesystem with
34 restrictive permissions to the file.