[Swan] Hashing password passwd

Paul Wouters paul at nohats.ca
Tue Sep 19 16:15:47 UTC 2017


On Tue, 19 Sep 2017, Glenn Pierce wrote:

> I have done that to the format described at
> https://github.com/libreswan/libreswan/blob/master/docs/README.XAUTH
>
> I have tried hashing my passwords with
> sha1sum
> and
> sha256sum
>
> ie
>
> echo -n test | sha1sum

Use the htpasswd tool to get proper strings, eg:

paul at bofh7:~/$ htpasswd -c /tmp/test paul
New password: 
Re-type new password: 
Adding password for user paul
paul at bofh7:~/$ cat /tmp/test
paul:$apr1$aBBF9MSm$0t70grZBUa/wT6BaCUWRI0

then append your :myconn

Paul


More information about the Swan mailing list