Pārlūkot izejas kodu

Merge pull request #270 from ariddell/feature/hashes

Merge pull request #270
Alex Payne 10 gadus atpakaļ
vecāks
revīzija
04029540e6
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8
    0
      README.textile

+ 8
- 0
README.textile Parādīt failu

@@ -140,6 +140,10 @@ Retype new password: foo
140 140
 
141 141
 Remove @{SHA512-CRYPT}@ and insert the rest as the @password_hash@ value.
142 142
 
143
+Alternatively, if you don't already have @doveadm@ installed, Python 3.3 or higher will generate the appropriate string for you on Unix-based platforms (assuming your password is @password@):
144
+
145
+bc. python3 -c 'import crypt; print(crypt.crypt("password", salt=crypt.METHOD_SHA512))'
146
+
143 147
 Same for the IRC password hash...
144 148
 
145 149
 bc. # znc --makepass
@@ -150,6 +154,10 @@ bc. # znc --makepass
150 154
 
151 155
 Take the string beginning with @sha256#@ and insert it as the value for @irc_password_hash@.
152 156
 
157
+Alternatively, if you don't already have @znc@ installed, Python 3.3 or higher will generate the appropriate string for you on Unix-based platforms (assuming your password is @password@):
158
+
159
+bc. python3 -c 'import crypt; print("sha256#{}#{}".format(*crypt.crypt("password", salt=crypt.METHOD_SHA256).split("$")[2:]))'
160
+
153 161
 For git hosting, copy your public key into place. @cp ~/.ssh/id_rsa.pub roles/git/files/gitolite.pub@ or similar.
154 162
 
155 163
 Finally, replace the TODOs in the file @hosts@. If your SSH daemon listens on a non-standard port, add a colon and the port number after the IP address.

Notiek ielāde…
Atcelt
Saglabāt