Commit | Line | Data |
---|---|---|
de63b20e SS |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Steve Sprang <scs@stevesprang.com> | |
8bae6c74 | 3 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
7e9b07bd | 4 | ;;; Copyright © 2015 Aljosha Papsch <misc@rpapsch.de> |
3d4f9d5c | 5 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
c285a400 JT |
6 | ;;; Copyright © 2016 Jessica Tallon <tsyesika@tsyesika.se> |
7 | ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr> | |
6d32dd8c | 8 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
55541556 | 9 | ;;; Copyright © 2016, 2019 Alex Griffin <a@ajgrf.com> |
f339f277 | 10 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
60628f54 | 11 | ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org> |
9081333b | 12 | ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
a1714ff5 | 13 | ;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org> |
e57c7dd7 | 14 | ;;; Copyright © 2017, 2019 Eric Bavier <bavier@member.fsf.org> |
7f7fadb5 | 15 | ;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
763269f9 | 16 | ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com> |
dcf12172 | 17 | ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com> |
c06bf6a3 | 18 | ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com> |
649eb8b5 | 19 | ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net> |
d4e0ebd0 | 20 | ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net> |
20b51b17 | 21 | ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> |
4715f92e | 22 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
037d1851 | 23 | ;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net> |
747aa6c4 | 24 | ;;; Copyright © 2018, 2019 Tim Gesthuizen <tim.gesthuizen@yahoo.de> |
872da48e | 25 | ;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk> |
f59ea3a7 | 26 | ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org> |
de63b20e SS |
27 | ;;; |
28 | ;;; This file is part of GNU Guix. | |
29 | ;;; | |
30 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
31 | ;;; under the terms of the GNU General Public License as published by | |
32 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
33 | ;;; your option) any later version. | |
34 | ;;; | |
35 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
36 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
37 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38 | ;;; GNU General Public License for more details. | |
39 | ;;; | |
40 | ;;; You should have received a copy of the GNU General Public License | |
41 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
42 | ||
43 | (define-module (gnu packages password-utils) | |
44 | #:use-module ((guix licenses) #:prefix license:) | |
e8647227 | 45 | #:use-module (guix build-system cmake) |
de63b20e | 46 | #:use-module (guix build-system gnu) |
f59ea3a7 | 47 | #:use-module (guix build-system trivial) |
de63b20e | 48 | #:use-module (guix download) |
7d4b3e1e | 49 | #:use-module (guix git-download) |
e8647227 | 50 | #:use-module (guix packages) |
53dcbbec | 51 | #:use-module (gnu packages) |
c285a400 | 52 | #:use-module (gnu packages admin) |
81635fb6 | 53 | #:use-module (gnu packages aidc) |
54b41d2d | 54 | #:use-module (gnu packages authentication) |
c285a400 | 55 | #:use-module (gnu packages base) |
ac257f12 | 56 | #:use-module (gnu packages check) |
e8647227 | 57 | #:use-module (gnu packages compression) |
da1b30bd EF |
58 | #:use-module (gnu packages crypto) |
59 | #:use-module (gnu packages curl) | |
7d4b3e1e | 60 | #:use-module (gnu packages file) |
a1714ff5 | 61 | #:use-module (gnu packages freedesktop) |
7d4b3e1e | 62 | #:use-module (gnu packages gettext) |
f339f277 | 63 | #:use-module (gnu packages glib) |
e8647227 | 64 | #:use-module (gnu packages gnupg) |
0050876b | 65 | #:use-module (gnu packages gtk) |
dd24e906 | 66 | #:use-module (gnu packages guile) |
eb28a777 | 67 | #:use-module (gnu packages kerberos) |
0751fddd | 68 | #:use-module (gnu packages libffi) |
c285a400 | 69 | #:use-module (gnu packages linux) |
3d4f9d5c | 70 | #:use-module (gnu packages man) |
eb28a777 | 71 | #:use-module (gnu packages multiprecision) |
7e9b07bd | 72 | #:use-module (gnu packages ncurses) |
aff0cce9 | 73 | #:use-module (gnu packages nss) |
c10aa278 | 74 | #:use-module (gnu packages opencl) |
eb4ffe9b | 75 | #:use-module (gnu packages perl) |
7e9b07bd | 76 | #:use-module (gnu packages pkg-config) |
3d4f9d5c | 77 | #:use-module (gnu packages python) |
20b51b17 | 78 | #:use-module (gnu packages python-web) |
44d10b1f | 79 | #:use-module (gnu packages python-xyz) |
24adcbab | 80 | #:use-module (gnu packages readline) |
e57c7dd7 | 81 | #:use-module (gnu packages ruby) |
24adcbab | 82 | #:use-module (gnu packages security-token) |
177475cf | 83 | #:use-module (gnu packages suckless) |
54b41d2d | 84 | #:use-module (gnu packages tcl) |
7e9b07bd | 85 | #:use-module (gnu packages tls) |
e8647227 | 86 | #:use-module (gnu packages qt) |
c285a400 | 87 | #:use-module (gnu packages version-control) |
7d4b3e1e | 88 | #:use-module (gnu packages wxwidgets) |
dd24e906 | 89 | #:use-module (gnu packages xdisorg) |
3d4f9d5c | 90 | #:use-module (gnu packages xorg) |
d4e0ebd0 | 91 | #:use-module (gnu packages xml) |
3d4f9d5c | 92 | #:use-module (guix build-system python)) |
de63b20e SS |
93 | |
94 | (define-public pwgen | |
95 | (package | |
96 | (name "pwgen") | |
5a2c4b3b | 97 | (version "2.08") |
de63b20e SS |
98 | (source |
99 | (origin | |
100 | (method url-fetch) | |
de67e922 LF |
101 | (uri (string-append "mirror://sourceforge/pwgen/pwgen/" version |
102 | "/pwgen-" version ".tar.gz")) | |
de63b20e | 103 | (sha256 |
5a2c4b3b | 104 | (base32 "0yy90pqrr2pszzhb5hxjishq9qc7dqd290amiibqx9fm1b9kvc6s")))) |
de63b20e SS |
105 | (build-system gnu-build-system) |
106 | (arguments | |
107 | `(#:tests? #f)) ; no test suite | |
108 | (home-page "http://pwgen.sourceforge.net/") | |
109 | (synopsis "Password generator") | |
110 | (description "Pwgen generates passwords which can be easily memorized by a | |
111 | human.") | |
112 | (license license:gpl2))) | |
e8647227 | 113 | |
99672f7b EF |
114 | (define-public keepassxc |
115 | (package | |
116 | (name "keepassxc") | |
353e9f73 | 117 | (version "2.5.2") |
99672f7b EF |
118 | (source |
119 | (origin | |
120 | (method url-fetch) | |
e2d14ee9 | 121 | (uri (string-append "https://github.com/keepassxreboot/keepassxc" |
99672f7b EF |
122 | "/releases/download/" version "/keepassxc-" |
123 | version "-src.tar.xz")) | |
124 | (sha256 | |
353e9f73 | 125 | (base32 "0lvwc3nxyz7d7vymb6cmgwxylb9g6gsjnq247vbh4lk1ifjir58j")))) |
99672f7b | 126 | (build-system cmake-build-system) |
da1b30bd | 127 | (arguments |
24adcbab | 128 | '(#:configure-flags '("-DWITH_XC_ALL=YES" |
0f3794fb | 129 | "-DWITH_XC_UPDATECHECK=NO"))) |
99672f7b | 130 | (inputs |
3374dcc7 EF |
131 | `(("argon2" ,argon2) |
132 | ("libgcrypt" ,libgcrypt) | |
0e5d66ab | 133 | ("libsodium" ,libsodium) ; XC_BROWSER |
24adcbab | 134 | ("libyubikey" ,libyubikey) ; XC_YUBIKEY |
99672f7b EF |
135 | ("libxi" ,libxi) |
136 | ("libxtst" ,libxtst) | |
0f3794fb | 137 | ("qrencode" ,qrencode) |
99672f7b | 138 | ("qtbase" ,qtbase) |
0f3794fb | 139 | ("qtsvg" ,qtsvg) |
99672f7b | 140 | ("qtx11extras" ,qtx11extras) |
24adcbab EF |
141 | ("quazip" ,quazip) ; XC_KEESHARE |
142 | ("readline" ,readline) | |
143 | ("yubikey-personalization" ,yubikey-personalization) ; XC_YUBIKEY | |
99672f7b EF |
144 | ("zlib" ,zlib))) |
145 | (native-inputs | |
146 | `(("qttools" ,qttools))) | |
147 | (home-page "https://www.keepassxc.org") | |
148 | (synopsis "Password manager") | |
149 | (description "KeePassXC is a password manager or safe which helps you to | |
150 | manage your passwords in a secure way. You can put all your passwords in one | |
151 | database, which is locked with one master key or a key-file which can be stored | |
152 | on an external storage device. The databases are encrypted using the | |
153 | algorithms AES or Twofish.") | |
24adcbab EF |
154 | ;; While various parts of the software are licensed under different licenses, |
155 | ;; the combined work falls under the GPLv3. | |
99672f7b EF |
156 | (license license:gpl3))) |
157 | ||
e8647227 EF |
158 | (define-public keepassx |
159 | (package | |
160 | (name "keepassx") | |
a00fbe8a | 161 | (version "2.0.3") |
e8647227 EF |
162 | (source |
163 | (origin | |
164 | (method url-fetch) | |
e5be0e01 EF |
165 | (uri (string-append "https://www.keepassx.org/releases/" version |
166 | "/keepassx-" version ".tar.gz")) | |
e8647227 | 167 | (sha256 |
2c5e4976 | 168 | (base32 |
a00fbe8a | 169 | "1ia7cqx9ias38mnffsl7da7g1f66bcbjsi23k49sln0c6spb9zr3")))) |
e8647227 EF |
170 | (build-system cmake-build-system) |
171 | (inputs | |
172 | `(("libgcrypt" ,libgcrypt) | |
a00fbe8a | 173 | ("libxi" ,libxi) |
e8647227 EF |
174 | ("libxtst" ,libxtst) |
175 | ("qt" ,qt-4))) | |
176 | (native-inputs | |
177 | `(("zlib" ,zlib))) | |
178 | (home-page "https://www.keepassx.org") | |
179 | (synopsis "Password manager") | |
180 | (description "KeePassX is a password manager or safe which helps you to | |
181 | manage your passwords in a secure way. You can put all your passwords in one | |
182 | database, which is locked with one master key or a key-file which can be stored | |
183 | on an external storage device. The databases are encrypted using the | |
184 | algorithms AES or Twofish.") | |
185 | ;; Non functional parts use various licences. | |
b7ac10e6 EF |
186 | (license license:gpl3) |
187 | (properties `((superseded . ,keepassxc))))) | |
dd24e906 | 188 | |
7d4b3e1e TG |
189 | (define-public pwsafe |
190 | (package | |
191 | (name "pwsafe") | |
747aa6c4 TG |
192 | (version "3.50.0") |
193 | (home-page "https://www.pwsafe.org/") | |
7d4b3e1e TG |
194 | (source |
195 | (origin | |
196 | (method git-fetch) | |
197 | (uri (git-reference | |
198 | (url "https://github.com/pwsafe/pwsafe.git") | |
199 | (commit version))) | |
747aa6c4 TG |
200 | (sha256 |
201 | (base32 "01kfssd2vr64yh4dqhch58x36n3aj3hpj5n560f41rsxym69c6qs")) | |
202 | (file-name (git-file-name name version)))) | |
7d4b3e1e | 203 | (build-system cmake-build-system) |
50bfb70b EF |
204 | (native-inputs |
205 | `(("gettext" ,gettext-minimal) | |
206 | ("gtest" ,googletest) | |
207 | ("perl" ,perl) | |
208 | ("zip" ,zip))) | |
7d4b3e1e TG |
209 | (inputs `(("curl" ,curl) |
210 | ("file" ,file) | |
bb93042c | 211 | ("libuuid" ,util-linux "lib") |
7d4b3e1e TG |
212 | ("libxt" ,libxt) |
213 | ("libxtst" ,libxtst) | |
214 | ("openssl" ,openssl) | |
215 | ("qrencode" ,qrencode) | |
216 | ("wxwidgets" ,wxwidgets) | |
217 | ("xerces-c" ,xerces-c))) | |
218 | (arguments '(#:configure-flags (list "-DNO_GTEST=YES") | |
219 | #:phases (modify-phases %standard-phases | |
220 | (add-after 'unpack 'add-gtest | |
221 | (lambda* (#:key inputs #:allow-other-keys) | |
222 | (chmod "CMakeLists.txt" #o644) | |
223 | (let ((cmake-port (open-file "CMakeLists.txt" | |
224 | "a"))) | |
225 | (display "find_package(GTest) | |
226 | add_subdirectory(src/test)\n" cmake-port) | |
227 | (close cmake-port) | |
228 | #t))) | |
229 | (add-after 'add-gtest 'patch-executables | |
230 | (lambda* (#:key inputs #:allow-other-keys) | |
231 | (chmod "src/test/OSTest.cpp" #o644) | |
232 | (substitute* "src/os/unix/media.cpp" | |
233 | (("/usr/bin/file") | |
234 | (string-append (assoc-ref inputs "file") | |
235 | "/bin/file"))) | |
236 | #t))))) | |
237 | (synopsis "Password safe with automatic input and key generation") | |
238 | (description "pwsafe is a password manager originally designed by Bruce | |
239 | Schneier. It offers a simple UI to manage passwords for different services. | |
240 | There are other programs that support the file format on different | |
241 | platforms.") | |
242 | (license license:artistic2.0))) | |
243 | ||
dd24e906 DT |
244 | (define-public shroud |
245 | (package | |
246 | (name "shroud") | |
7dff3225 | 247 | (version "0.1.2") |
dd24e906 DT |
248 | (source (origin |
249 | (method url-fetch) | |
a652eb93 | 250 | (uri (string-append "https://files.dthompson.us/shroud/shroud-" |
dd24e906 DT |
251 | version ".tar.gz")) |
252 | (sha256 | |
253 | (base32 | |
7dff3225 | 254 | "1l2shrhvcwfzkar9qiwb75nhcqmx25iz55lzmz0c187nbjhqzi9p")))) |
dd24e906 | 255 | (build-system gnu-build-system) |
7dff3225 AS |
256 | (native-inputs |
257 | `(("pkg-config" ,pkg-config))) | |
df0e8a23 | 258 | (arguments |
7dff3225 AS |
259 | `(#:modules ((guix build gnu-build-system) |
260 | (guix build utils) | |
261 | (ice-9 popen) | |
262 | (ice-9 rdelim)) | |
263 | #:phases | |
df0e8a23 SB |
264 | (modify-phases %standard-phases |
265 | (add-after 'install 'wrap-shroud | |
7dff3225 | 266 | (lambda* (#:key inputs outputs #:allow-other-keys) |
df0e8a23 | 267 | (let* ((out (assoc-ref outputs "out")) |
7dff3225 AS |
268 | (guile (assoc-ref inputs "guile")) |
269 | (effective (read-line | |
270 | (open-pipe* OPEN_READ | |
271 | (string-append guile "/bin/guile") | |
272 | "-c" "(display (effective-version))"))) | |
273 | (ccachedir (string-append out | |
274 | "/lib/guile/" effective "/site-ccache")) | |
df0e8a23 SB |
275 | (prog (string-append out "/bin/shroud"))) |
276 | (wrap-program prog | |
277 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,ccachedir))) | |
278 | #t)))))) | |
dd24e906 | 279 | (inputs |
7dff3225 | 280 | `(("guile" ,guile-2.2) |
dd24e906 DT |
281 | ("gnupg" ,gnupg) |
282 | ("xclip" ,xclip))) | |
283 | (synopsis "GnuPG-based secret manager") | |
284 | (description "Shroud is a simple secret manager with a command line | |
285 | interface. The password database is stored as a Scheme s-expression and | |
286 | encrypted with a GnuPG key. Secrets consist of an arbitrary number of | |
287 | key/value pairs, making Shroud suitable for more than just password storage. | |
288 | For copying and pasting secrets into web browsers and other graphical | |
289 | applications, there is xclip integration." ) | |
59d915ac | 290 | (home-page "https://dthompson.us/projects/shroud.html") |
dd24e906 | 291 | (license license:gpl3+))) |
7e9b07bd AP |
292 | |
293 | (define-public yapet | |
294 | (package | |
295 | (name "yapet") | |
988f53e1 TGR |
296 | (version "2.3") |
297 | (source | |
298 | (origin | |
299 | (method url-fetch) | |
300 | (uri (string-append "https://yapet.guengel.ch/downloads/yapet-" | |
301 | version ".tar.xz")) | |
302 | (sha256 | |
303 | (base32 "1fl4s7v1psl52ndd6i7716i9f493aj8ipl6lgmraadnn5h26l3pm")))) | |
7e9b07bd AP |
304 | (build-system gnu-build-system) |
305 | (inputs | |
988f53e1 TGR |
306 | `(("argon2" ,argon2) |
307 | ("ncurses" ,ncurses) | |
7e9b07bd AP |
308 | ("openssl" ,openssl))) |
309 | (native-inputs | |
988f53e1 TGR |
310 | `(("cppunit" ,cppunit) |
311 | ("pkg-config" ,pkg-config))) | |
7e9b07bd AP |
312 | (synopsis "Yet Another Password Encryption Tool") |
313 | (description "YAPET is a text based password manager using the Blowfish | |
314 | encryption algorithm. Because of its small footprint and very few library | |
315 | dependencies, it is suited for installing on desktop and server systems alike. | |
316 | The text based user interface allows you to run YAPET easily in a Secure Shell | |
317 | session. Two companion utilities enable users to convert CSV files to YAPET | |
318 | and vice versa.") | |
319 | (home-page "http://www.guengel.ch/myapps/yapet/") | |
320 | (license license:gpl3+))) | |
72029c8b SB |
321 | |
322 | (define-public cracklib | |
323 | (package | |
324 | (name "cracklib") | |
9081333b TGR |
325 | (version "2.9.7") |
326 | (source | |
327 | (origin | |
328 | (method url-fetch) | |
329 | (uri (string-append "https://github.com/cracklib/cracklib/" | |
330 | "releases/download/v" version "/" | |
331 | "cracklib-" version ".tar.bz2")) | |
332 | (sha256 | |
333 | (base32 "1rimpjsdnmw8f5b7k558cic41p2qy2n2yrlqp5vh7mp4162hk0py")))) | |
72029c8b | 334 | (build-system gnu-build-system) |
27faad22 FP |
335 | (arguments |
336 | `(#:phases | |
337 | (modify-phases %standard-phases | |
338 | (add-after 'install 'install-dict | |
339 | (lambda* (#:key make-flags #:allow-other-keys) | |
340 | (begin | |
341 | (chmod (string-append "util/cracklib-format") #o755) | |
342 | (apply invoke "make" "dict" make-flags) | |
343 | #t)))))) | |
72029c8b SB |
344 | (synopsis "Password checking library") |
345 | (home-page "https://github.com/cracklib/cracklib") | |
346 | (description | |
347 | "CrackLib is a library containing a C function which may be used in a | |
b1a686bb TGR |
348 | @command{passwd}-like program. The idea is simple: try to prevent users from |
349 | choosing passwords that could easily be guessed (or \"cracked\") by filtering | |
350 | them out, at the source.") | |
72029c8b | 351 | (license license:lgpl2.1))) |
c2fb2076 SB |
352 | |
353 | (define-public libpwquality | |
354 | (package | |
355 | (name "libpwquality") | |
6bd856d1 | 356 | (version "1.4.2") |
c2fb2076 SB |
357 | (source (origin |
358 | (method url-fetch) | |
359 | (uri (list | |
2f6a158b TGR |
360 | (string-append "https://github.com/libpwquality/libpwquality" |
361 | "/releases/download/libpwquality-" version | |
362 | "/libpwquality-" version ".tar.bz2") | |
c2fb2076 SB |
363 | (string-append "https://launchpad.net/libpwquality/trunk/" |
364 | version "/+download/" | |
2f6a158b | 365 | "libpwquality-" version ".tar.bz2"))) |
c2fb2076 SB |
366 | (sha256 |
367 | (base32 | |
6bd856d1 | 368 | "13hw532fmzc5xjpy75d74rlfdlxf2a8ibb4hyy9c0s92wsgf0qsj")))) |
c2fb2076 SB |
369 | (build-system gnu-build-system) |
370 | (arguments | |
371 | ;; XXX: have RUNPATH issue. | |
372 | '(#:configure-flags '("--disable-python-bindings"))) | |
373 | (inputs | |
374 | `(("cracklib" ,cracklib))) | |
375 | (synopsis "Password quality checker") | |
c18594dd | 376 | (home-page "https://github.com/libpwquality/libpwquality") |
c2fb2076 SB |
377 | (description |
378 | "Libpwquality is a library for password quality checking and generation of | |
379 | random passwords that pass the checks.") | |
380 | (license license:gpl2+))) | |
3d4f9d5c CAW |
381 | |
382 | (define-public assword | |
383 | (package | |
384 | (name "assword") | |
d504de26 | 385 | (version "0.11") |
3d4f9d5c CAW |
386 | (source (origin |
387 | (method url-fetch) | |
388 | (uri (list | |
389 | (string-append | |
390 | "http://http.debian.net/debian/pool/main/a/assword/" | |
391 | "assword_" version ".orig.tar.gz"))) | |
392 | (sha256 | |
393 | (base32 | |
d504de26 | 394 | "03gkb6kvsghznbcw5l7nmrc6mn3ixkjd5jcs96ni4zs9l47jf7yp")))) |
3d4f9d5c | 395 | (arguments |
f339f277 | 396 | `(;; irritatingly, tests do run but not there are two problems: |
3d4f9d5c CAW |
397 | ;; - "import gtk" fails for unknown reasons here despite it the |
398 | ;; program working (indeed, I've found I have to do a logout and log | |
399 | ;; back in in after an install order for some mumbo jumbo environment | |
400 | ;; variable mess to work with pygtk and assword... what's up with | |
401 | ;; that?) | |
402 | ;; - even when the tests fail, they don't return a nonzero status, | |
403 | ;; so I'm not sure how to programmatically get that information | |
404 | #:tests? #f | |
405 | #:phases | |
406 | (modify-phases %standard-phases | |
0050876b SB |
407 | (add-after 'install 'wrap-assword |
408 | (lambda* (#:key outputs #:allow-other-keys) | |
409 | (let ((prog (string-append | |
410 | (assoc-ref outputs "out") | |
411 | "/bin/assword")) | |
412 | (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) | |
413 | (wrap-program prog | |
414 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))) | |
415 | #t))) | |
3d4f9d5c CAW |
416 | (add-after 'install 'manpage |
417 | (lambda* (#:key outputs #:allow-other-keys) | |
3692cffe RW |
418 | ;; Without this substitution, it fails with |
419 | ;; ImportError: No module named 'gpg' | |
420 | (substitute* "Makefile" | |
421 | (("PYTHONPATH=.") "")) | |
422 | (invoke "make" "assword.1") | |
423 | (install-file | |
424 | "assword.1" | |
425 | (string-append (assoc-ref outputs "out") "/share/man/man1"))))))) | |
3d4f9d5c CAW |
426 | (build-system python-build-system) |
427 | (native-inputs | |
f339f277 | 428 | `(("txt2man" ,txt2man))) |
3d4f9d5c | 429 | (inputs |
0050876b SB |
430 | `(("gtk+" ,gtk+) |
431 | ("python-xdo" ,python-xdo) | |
f339f277 LF |
432 | ("python-gpg" ,python-gpg) |
433 | ("python-pygobject" ,python-pygobject))) | |
3d4f9d5c CAW |
434 | (propagated-inputs |
435 | `(("xclip" ,xclip))) | |
436 | (home-page "https://finestructure.net/assword/") | |
437 | (synopsis "Password manager") | |
438 | (description "assword is a simple password manager using GPG-wrapped | |
439 | JSON files. It has a command line interface as well as a very simple | |
440 | graphical interface, which can even \"type\" your passwords into | |
441 | any X11 window.") | |
442 | (license license:gpl3+))) | |
c285a400 JT |
443 | |
444 | (define-public password-store | |
445 | (package | |
446 | (name "password-store") | |
3e9aa5cf | 447 | (version "1.7.3") |
c285a400 JT |
448 | (source (origin |
449 | (method url-fetch) | |
450 | (uri | |
451 | (string-append "https://git.zx2c4.com/password-store/snapshot/" | |
452 | name "-" version ".tar.xz")) | |
453 | (sha256 | |
454 | (base32 | |
3e9aa5cf | 455 | "1x53k5dn3cdmvy8m4fqdld4hji5n676ksl0ql4armkmsds26av1b")))) |
c285a400 JT |
456 | (build-system gnu-build-system) |
457 | (arguments | |
458 | '(#:phases | |
459 | (modify-phases %standard-phases | |
460 | (delete 'configure) | |
619f98fa | 461 | (delete 'build) |
55541556 AG |
462 | (add-before 'install 'patch-system-extension-dir |
463 | (lambda* (#:key outputs #:allow-other-keys) | |
464 | (let* ((out (assoc-ref outputs "out")) | |
465 | (extension-dir (string-append out "/lib/password-store/extensions"))) | |
466 | (substitute* "src/password-store.sh" | |
467 | (("^SYSTEM_EXTENSION_DIR=.*$") | |
468 | ;; lead with whitespace to prevent 'make install' from | |
469 | ;; overwriting it again | |
470 | (string-append " SYSTEM_EXTENSION_DIR=\"" | |
471 | "${PASSWORD_STORE_SYSTEM_EXTENSION_DIR:-" | |
472 | extension-dir | |
473 | "}\"\n")))) | |
474 | #t)) | |
177475cf JL |
475 | (add-before 'install 'patch-passmenu-path |
476 | (lambda* (#:key inputs #:allow-other-keys) | |
477 | (substitute* "contrib/dmenu/passmenu" | |
478 | (("dmenu") (string-append (assoc-ref inputs "dmenu") | |
479 | "/bin/dmenu")) | |
480 | (("xdotool") (string-append (assoc-ref inputs "xdotool") | |
481 | "/bin/xdotool"))) | |
482 | #t)) | |
483 | (add-after 'install 'install-passmenu | |
484 | (lambda* (#:key outputs #:allow-other-keys) | |
e9ce6425 TGR |
485 | (let* ((out (assoc-ref outputs "out")) |
486 | (bin (string-append out "/bin"))) | |
487 | (install-file "contrib/dmenu/passmenu" bin) | |
177475cf | 488 | #t))) |
61201e46 AG |
489 | (add-after 'install 'wrap-path |
490 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
491 | (let ((out (assoc-ref outputs "out")) | |
492 | (path (map (lambda (pkg) | |
493 | (string-append (assoc-ref inputs pkg) "/bin")) | |
81635fb6 | 494 | '("coreutils" "getopt" "git" "gnupg" "qrencode" |
61201e46 AG |
495 | "sed" "tree" "which" "xclip")))) |
496 | (wrap-program (string-append out "/bin/pass") | |
718c1278 MB |
497 | `("PATH" ":" prefix (,(string-join path ":")))) |
498 | #t))) | |
499 | (add-after 'wrap-path 'install-shell-completions | |
500 | (lambda* (#:key outputs #:allow-other-keys) | |
501 | (let* ((out (assoc-ref outputs "out")) | |
502 | (bashcomp (string-append out "/etc/bash_completion.d"))) | |
503 | ;; TODO: install fish and zsh completions. | |
504 | (mkdir-p bashcomp) | |
505 | (copy-file "src/completion/pass.bash-completion" | |
506 | (string-append bashcomp "/pass")) | |
507 | #t)))) | |
c285a400 | 508 | #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output)) |
a77f0360 CB |
509 | ;; Parallel tests may cause a race condition leading to a |
510 | ;; timeout in some circumstances. | |
511 | #:parallel-tests? #f | |
c285a400 | 512 | #:test-target "test")) |
55541556 AG |
513 | (native-search-paths |
514 | (list (search-path-specification | |
515 | (variable "PASSWORD_STORE_SYSTEM_EXTENSION_DIR") | |
869a4c0f | 516 | (separator #f) ;single entry |
55541556 | 517 | (files '("lib/password-store/extensions"))))) |
61201e46 | 518 | (inputs |
177475cf JL |
519 | `(("dmenu" ,dmenu) |
520 | ("getopt" ,util-linux) | |
61201e46 AG |
521 | ("git" ,git) |
522 | ("gnupg" ,gnupg) | |
81635fb6 | 523 | ("qrencode" ,qrencode) |
61201e46 AG |
524 | ("sed" ,sed) |
525 | ("tree" ,tree) | |
526 | ("which" ,which) | |
177475cf JL |
527 | ("xclip" ,xclip) |
528 | ("xdotool" ,xdotool))) | |
62ab60aa | 529 | (home-page "https://www.passwordstore.org/") |
c285a400 JT |
530 | (synopsis "Encrypted password manager") |
531 | (description "Password-store is a password manager which uses GnuPG to | |
532 | store and retrieve passwords. The tool stores each password in its own | |
533 | GnuPG-encrypted file, allowing the program to be simple yet secure. | |
534 | Synchronization is possible using the integrated git support, which commits | |
535 | changes to your password database to a git repository that can be managed | |
536 | through the pass command.") | |
537 | (license license:gpl2+))) | |
6d32dd8c | 538 | |
54b41d2d AG |
539 | (define-public pass-otp |
540 | (package | |
541 | (name "pass-otp") | |
542 | (version "1.2.0") | |
543 | (source | |
544 | (origin | |
545 | (method url-fetch) | |
546 | (uri | |
547 | (string-append "https://github.com/tadfisher/pass-otp/releases/" | |
548 | "download/v" version "/pass-otp-" version ".tar.gz")) | |
549 | (sha256 | |
550 | (base32 | |
551 | "0rrs3iazq80dn0wbl20xkh270428jd8l99m5gd7hl93s4r4sc82p")))) | |
552 | (build-system gnu-build-system) | |
553 | (arguments | |
554 | '(#:make-flags | |
555 | (let* ((out (assoc-ref %outputs "out")) | |
556 | (bashcomp (string-append out "/etc/bash_completion.d"))) | |
557 | (list (string-append "PREFIX=" %output) | |
558 | (string-append "BASHCOMPDIR=" bashcomp))) | |
559 | #:phases | |
560 | (modify-phases %standard-phases | |
561 | (delete 'configure) | |
562 | (add-after 'build 'patch-oath-path | |
563 | (lambda* (#:key inputs #:allow-other-keys) | |
564 | (substitute* "otp.bash" | |
565 | (("^OATH=.*$") | |
566 | (string-append | |
567 | "OATH=" | |
568 | (assoc-ref inputs "oath-toolkit") | |
569 | "/bin/oathtool\n"))) | |
570 | #t))) | |
571 | #:test-target "test")) | |
572 | (inputs | |
573 | `(("oath-toolkit" ,oath-toolkit))) | |
574 | (native-inputs | |
575 | `(("password-store" ,password-store) | |
576 | ("expect" ,expect) | |
577 | ("git" ,git) | |
578 | ("gnupg" ,gnupg) | |
579 | ("which" ,which))) | |
580 | (home-page "https://github.com/tadfisher/pass-otp") | |
581 | (synopsis "Pass extension for managing one-time-password (OTP) tokens") | |
582 | (description | |
583 | "Pass OTP is an extension for password-store that allows adding | |
584 | one-time-password (OTP) secrets, generating OTP codes, and displaying secret | |
585 | key URIs using the standard otpauth:// scheme.") | |
586 | (license license:gpl3+))) | |
587 | ||
872da48e JM |
588 | (define-public qtpass |
589 | (package | |
590 | (name "qtpass") | |
591 | (version "1.2.3") | |
592 | (source | |
593 | (origin | |
594 | (method git-fetch) | |
595 | (uri (git-reference | |
596 | (url "https://github.com/IJHack/QtPass.git") | |
597 | (commit (string-append "v" version)))) | |
598 | (file-name (git-file-name name version)) | |
599 | (sha256 | |
600 | (base32 | |
601 | "1vfhfyccrxq9snyvayqfzm5rqik8ny2gysyv7nipc91kvhq3bhky")))) | |
602 | (build-system gnu-build-system) | |
603 | (arguments | |
604 | `(#:phases | |
605 | (modify-phases %standard-phases | |
606 | (replace 'configure | |
607 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
608 | (let ((out (assoc-ref outputs "out"))) | |
609 | ;; lupdate/lrelease need to find qmake. | |
610 | (setenv "QMAKE" "qmake") | |
611 | ;; qmake needs to find lrelease/lupdate. | |
612 | (invoke "qmake" | |
613 | "QMAKE_LRELEASE=lrelease" | |
614 | "QMAKE_LUPDATE=lupdate" | |
615 | (string-append "PREFIX=" out))))) | |
616 | (add-after 'configure 'reset-resource-timestamps | |
617 | ;; Reset timestamps on localization files for a reproducible build. | |
618 | (lambda _ | |
619 | (with-directory-excursion "localization" | |
620 | (for-each (lambda (file) | |
621 | (let* ((base (basename file ".qm")) | |
622 | (src (string-append base ".ts")) | |
623 | (st (stat src))) | |
624 | (set-file-time file st))) | |
625 | (find-files "." ".*\\.qm"))) | |
626 | #t)) | |
627 | (add-after 'install 'install-auxilliary | |
628 | ;; Install man-page, icon and .desktop file. | |
629 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
630 | (let* ((out (assoc-ref outputs "out")) | |
631 | (applications (string-append out "/share/applications")) | |
632 | (icons (string-append out "/share/icons/hicolor/scalable/apps")) | |
633 | (man (string-append out "/share/man/man1"))) | |
634 | (install-file "qtpass.desktop" applications) | |
635 | (install-file "artwork/icon.svg" icons) | |
636 | (rename-file (string-append icons "/icon.svg") | |
637 | (string-append icons "/qtpass-icon.svg")) | |
638 | (install-file "qtpass.1" man) | |
639 | #t))) | |
640 | (add-before 'check 'check-setup | |
641 | ;; Make Qt render "offscreen", required for tests. | |
642 | (lambda _ | |
643 | (setenv "QT_QPA_PLATFORM" "offscreen") | |
644 | #t))))) | |
645 | (native-inputs | |
646 | `(("qttools" ,qttools))) | |
647 | (inputs | |
648 | `(("qtbase" ,qtbase) | |
649 | ("qtsvg" ,qtsvg))) | |
650 | (home-page "https://qtpass.org") | |
651 | (synopsis "GUI for password manager password-store") | |
652 | (description | |
653 | "Qt-based graphical user interface for the password manager | |
654 | password-store also known as pass. Can use either pass or gpg to interact | |
655 | with password-store files. Features configurable password generation, | |
656 | templates, clipboard handling, and per folder settings for multi-recipient | |
657 | encryption.") | |
658 | (license license:gpl3+))) | |
659 | ||
f59ea3a7 TLC |
660 | (define-public rofi-pass |
661 | (package | |
662 | (name "rofi-pass") | |
663 | (version "2.0.2") | |
664 | (source | |
665 | (origin | |
666 | (method url-fetch) | |
667 | (uri | |
668 | (string-append "https://raw.githubusercontent.com/carnager/rofi-pass/" | |
669 | version "/rofi-pass")) | |
670 | (sha256 | |
671 | (base32 "0msldkndqp40nx1s5s7ggcr97ir4nshpmnyzvj5hqw1l7m3gvw6j")) | |
672 | (file-name name))) | |
673 | (build-system trivial-build-system) | |
674 | (arguments | |
675 | `(#:modules ((guix build utils)) | |
676 | #:builder | |
677 | (begin | |
678 | (use-modules (guix build utils)) | |
679 | (let ((source (string-append (assoc-ref %build-inputs "source"))) | |
680 | (script "rofi-pass") | |
681 | (out (assoc-ref %outputs "out"))) | |
682 | (copy-file source script) | |
683 | (chmod script #o555) | |
684 | (install-file script (string-append out "/bin")))))) | |
685 | (propagated-inputs | |
686 | `(("password-store" ,password-store) | |
687 | ("rofi" ,rofi) | |
688 | ("xdotool" ,xdotool))) | |
689 | (home-page "https://github.com/carnager/rofi-pass") | |
690 | (synopsis "Rofi frontend for password-store") | |
691 | (description "Rofi-pass provides a way to manipulate information stored | |
692 | using password-store through rofi interface: | |
693 | @enumerate | |
694 | @item open URLs of entries with hotkey; | |
695 | @item type any field from entry; | |
696 | @item auto-typing of user and/or password fields; | |
697 | @item auto-typing username based on path; | |
698 | @item auto-typing of more than one field, using the autotype entry; | |
699 | @item bookmarks mode (open stored URLs in browser, default: Alt+x). | |
700 | @end enumerate") | |
701 | (license license:gpl3))) | |
702 | ||
6d32dd8c LG |
703 | (define-public argon2 |
704 | (package | |
705 | (name "argon2") | |
c06bf6a3 | 706 | (version "20171227") |
6d32dd8c LG |
707 | (source |
708 | (origin | |
709 | (method url-fetch) | |
710 | (uri | |
1feeb2e0 TGR |
711 | (string-append "https://github.com/P-H-C/phc-winner-argon2/archive/" |
712 | version ".tar.gz")) | |
6d32dd8c LG |
713 | (file-name (string-append name "-" version ".tar.gz")) |
714 | (sha256 | |
715 | (base32 | |
c06bf6a3 | 716 | "1n6w5y3va7lrcym7cxr0nikapldqm80wxjdns584bvplq5r03spa")))) |
6d32dd8c LG |
717 | (build-system gnu-build-system) |
718 | (arguments | |
719 | `(#:test-target "test" | |
c06bf6a3 MB |
720 | #:make-flags '("CC=gcc" |
721 | "OPTTEST=1") ;disable CPU optimization | |
6d32dd8c LG |
722 | #:phases |
723 | (modify-phases %standard-phases | |
c06bf6a3 MB |
724 | (add-after 'unpack 'patch-Makefile |
725 | (lambda* (#:key outputs #:allow-other-keys) | |
726 | (let ((out (assoc-ref outputs "out"))) | |
727 | (substitute* "Makefile" | |
728 | (("PREFIX = /usr") (string-append "PREFIX = " out))) | |
037d1851 AB |
729 | (substitute* "libargon2.pc" |
730 | (("prefix=/usr") (string-append "prefix=" out)) | |
731 | (("@HOST_MULTIARCH@") "") | |
732 | (("@UPSTREAM_VER@") ,version)) | |
c06bf6a3 | 733 | #t))) |
037d1851 AB |
734 | (delete 'configure) |
735 | (add-after 'install 'install-argon2.pc | |
736 | (lambda* (#:key outputs #:allow-other-keys) | |
737 | (let ((out (assoc-ref outputs "out"))) | |
738 | (install-file "libargon2.pc" | |
739 | (string-append out "/lib/pkgconfig")) | |
740 | #t)))))) | |
6d32dd8c LG |
741 | (home-page "https://www.argon2.com/") |
742 | (synopsis "Password hashing library") | |
743 | (description "Argon2 provides a key derivation function that was declared | |
744 | winner of the 2015 Password Hashing Competition.") | |
c06bf6a3 MB |
745 | ;; Argon2 is dual licensed under CC0 and ASL 2.0. Some of the source |
746 | ;; files are CC0 only; see README.md and LICENSE for details. | |
747 | (license (list license:cc0 license:asl2.0)))) | |
153e58c5 | 748 | |
a1714ff5 JL |
749 | (define-public pass-git-helper |
750 | (package | |
751 | (name "pass-git-helper") | |
752 | (version "0.3.1") | |
753 | (source | |
754 | (origin | |
755 | (method url-fetch) | |
756 | (uri (string-append "https://github.com/languitar/pass-git-helper/archive/release-" | |
757 | version ".tar.gz")) | |
758 | (sha256 | |
759 | (base32 | |
760 | "0lz5ncy44pz7z1j2nnyildx8sq33zi3xvg5nkwg25n11nasqh2xn")))) | |
761 | (build-system python-build-system) | |
762 | (arguments | |
763 | `(#:phases | |
764 | (modify-phases %standard-phases | |
765 | (add-before 'build 'patch-pass-path | |
766 | (lambda* (#:key inputs #:allow-other-keys) | |
767 | (let* ((password-store (assoc-ref inputs "password-store")) | |
768 | (pass (string-append password-store "/bin/pass"))) | |
769 | (substitute* "pass-git-helper" | |
770 | (("'pass'") (string-append "'" pass "'"))) | |
771 | #t)))))) | |
772 | (inputs | |
773 | `(("python-pyxdg" ,python-pyxdg) | |
774 | ("password-store" ,password-store))) | |
775 | (home-page "https://github.com/languitar/pass-git-helper") | |
776 | (synopsis "Git credential helper interfacing with pass") | |
777 | (description "pass-git-helper is a git credential helper which allows to | |
778 | use pass, the standard unix password manager, as the credential backend for | |
779 | your git repositories. This is achieved by explicitly defining mappings | |
780 | between hosts and entries in the password store.") | |
781 | (license license:lgpl3+))) | |
eb28a777 EB |
782 | |
783 | (define-public john-the-ripper-jumbo | |
e57c7dd7 | 784 | (let ((official-version "1.9.0") |
eb28a777 EB |
785 | (jumbo-version "1")) |
786 | (package | |
787 | (name "john-the-ripper-jumbo") | |
788 | (version (string-append official-version "-" jumbo-version)) | |
789 | (source | |
790 | (origin | |
791 | (method url-fetch) | |
792 | (uri (string-append "http://www.openwall.com/john/j/john-" | |
793 | official-version "-jumbo-" jumbo-version ".tar.xz")) | |
794 | (sha256 | |
795 | (base32 | |
e57c7dd7 | 796 | "0fvz3v41hnaiv1ggpxanfykyfjq79cwp9qcqqn63vic357w27lgm")))) |
eb28a777 | 797 | (build-system gnu-build-system) |
e57c7dd7 EB |
798 | (native-inputs |
799 | `(("perl" ,perl))) | |
eb28a777 EB |
800 | (inputs |
801 | `(("gmp" ,gmp) | |
eb28a777 EB |
802 | ("libpcap" ,libpcap) |
803 | ("nss" ,nss) | |
1a58e1d4 | 804 | ("openssl" ,openssl-1.0) |
e57c7dd7 EB |
805 | ("python" ,python-2) ; For "python" and "python2" shebangs |
806 | ("ruby" ,ruby) ; For genincstats.rb | |
eb28a777 EB |
807 | ("zlib" ,zlib))) |
808 | (arguments | |
809 | `(#:configure-flags | |
e57c7dd7 EB |
810 | (list "--with-systemwide" |
811 | ;; Do not test for instruction set in configure, and do not | |
812 | ;; pass '-march=native' to gcc: | |
eb28a777 | 813 | "--disable-native-tests" |
e57c7dd7 EB |
814 | "--disable-native-march" |
815 | ,(string-append | |
816 | "--enable-simd=" | |
817 | (let ((system (or (%current-target-system) | |
818 | (%current-system)))) | |
819 | (cond | |
820 | ((or (string-prefix? "x86_64" system) | |
821 | (string-prefix? "i686" system)) "sse2") | |
822 | ((string-prefix? "aarch" system) "neon") | |
823 | (else "no"))))) | |
eb28a777 EB |
824 | #:phases |
825 | (modify-phases %standard-phases | |
826 | (add-before 'configure 'chdir-src | |
e57c7dd7 | 827 | (lambda _ (chdir "src") #t)) |
eb28a777 EB |
828 | (replace 'install |
829 | (lambda _ | |
830 | (let ((bindir (string-append %output "/bin")) | |
831 | (docdir (string-append %output "/share/doc/john")) | |
832 | (execdir (string-append %output "/libexec/john")) | |
e57c7dd7 | 833 | (datadir (string-append %output "/share/john")) |
eb28a777 EB |
834 | (install-file-to (lambda (dir) |
835 | (lambda (f) (install-file f dir)))) | |
836 | (symlink? (lambda (_ s) (eq? (stat:type s) 'symlink)))) | |
837 | (with-directory-excursion "../run" | |
e57c7dd7 EB |
838 | (for-each (install-file-to bindir) |
839 | (cons* | |
840 | "john" "makechr" "cprepair" "SIPdump" "tgtsnarf" | |
841 | "genmkvpwd" "mkvcalcproba" "calc_stat" "raw2dyna" | |
842 | (find-files "." "(to|2)?john(-[^.]*)?$"))) | |
843 | (for-each (lambda (f) ; Install symlinked aliases | |
844 | (let ((tgt (string-append bindir "/" (basename f)))) | |
845 | ;; The use of install-file above dereferences | |
846 | ;; symlinks. We'd rather have the symlinks | |
847 | ;; for clarity, so remove tgt before linking. | |
848 | (when (file-exists? tgt) (delete-file tgt)) | |
849 | (symlink "john" tgt))) | |
850 | (find-files "." symlink?)) | |
eb28a777 | 851 | (for-each (install-file-to execdir) |
e57c7dd7 EB |
852 | (cons* "mailer" "benchmark-unify" "relbench" |
853 | (find-files "." ".*\\.js"))) | |
854 | (for-each (lambda (f) | |
855 | (let* ((base (basename f)) | |
856 | (name (substring base 0 (string-index base #\.))) | |
857 | (link (string-append bindir "/" name))) | |
858 | (install-file f execdir) | |
859 | (when (and (executable-file? f) | |
860 | (not (file-exists? link))) | |
861 | (symlink (string-append execdir "/" base) link)))) | |
862 | (find-files "." ".*\\.(pl|py|rb|lua)")) | |
863 | (for-each (install-file-to datadir) | |
eb28a777 EB |
864 | (append (find-files "." "(stats|dictionary.*)") |
865 | (find-files "." "(.*\\.chr|.*\\.lst)") | |
866 | (find-files "." ".*\\.conf"))) | |
e57c7dd7 | 867 | (copy-recursively "rules" (string-append datadir "/rules"))) |
eb28a777 | 868 | (copy-recursively "../doc" docdir) |
4090dcb2 EB |
869 | #t))) |
870 | (delete 'check) ; Tests need installed .conf files; move after install | |
871 | (add-after 'install 'check | |
872 | (lambda args | |
873 | (setenv "HOME" "/tmp") ; Some tests need to write to ~/.john | |
874 | (setenv "OMP_NUM_THREADS" (number->string (parallel-job-count))) | |
875 | (apply (assoc-ref %standard-phases 'check) args)))))) | |
eb28a777 EB |
876 | (home-page "http://www.openwall.com/john/") |
877 | (synopsis "Password cracker") | |
878 | (description "John the Ripper is a fast password cracker. Its primary | |
879 | purpose is to detect weak Unix passwords. Besides several @code{crypt} | |
880 | password hash types most commonly found on various Unix systems, supported out | |
881 | of the box are Windows LM hashes, plus lots of other hashes and ciphers. This | |
882 | is the community-enhanced, \"jumbo\" version of John the Ripper.") | |
883 | (license license:gpl2+)))) | |
649eb8b5 KH |
884 | |
885 | (define-public sala | |
886 | (package | |
887 | (name "sala") | |
888 | (version "1.3") | |
889 | (source | |
890 | (origin | |
891 | (method url-fetch) | |
892 | (uri (pypi-uri "sala" version)) | |
893 | (sha256 | |
894 | (base32 | |
895 | "13qgmc3i2a0cqp8jqrfl93lnphfagb32pgfikc1gza2a14asxzi8")))) | |
896 | (build-system python-build-system) | |
897 | (arguments | |
898 | ;; Sala is supposed to work with Python 3.2 or higher, | |
899 | ;; but it doesn't work with Python 3.6. Better stick | |
900 | ;; to Python 2, which works fine. | |
901 | `(#:python ,python-2)) | |
902 | (propagated-inputs | |
903 | `(("gnupg" ,gnupg) | |
904 | ("pwgen" ,pwgen))) | |
905 | (home-page "http://www.digip.org/sala/") | |
906 | (synopsis "Encrypted plaintext password store") | |
907 | (description | |
908 | "Store passwords and other bits of sensitive plain-text information | |
909 | to encrypted files on a directory hierarchy. The information is protected | |
910 | by GnuPG's symmetrical encryption.") | |
911 | (license license:expat))) | |
d4e0ebd0 T |
912 | |
913 | (define-public fpm2 | |
914 | (package | |
915 | (name "fpm2") | |
916 | (version "0.79") | |
917 | (source (origin | |
918 | (method url-fetch) | |
919 | (uri (string-append "https://als.regnet.cz/fpm2/download/fpm2-" | |
920 | version ".tar.bz2")) | |
921 | (sha256 | |
922 | (base32 | |
923 | "19sdy1lygfhkg5nxi2w9a4d9kwvw24nxp0ix0p0lz91qpvk9qpnm")))) | |
924 | (build-system gnu-build-system) | |
925 | (inputs `(("gtk2" ,gtk+-2) | |
926 | ("gnupg" ,gnupg) | |
927 | ("libxml2" ,libxml2))) | |
928 | (native-inputs `(("pkg-config" ,pkg-config) | |
929 | ("intltool" ,intltool))) | |
930 | (arguments | |
931 | `(#:phases | |
932 | (modify-phases %standard-phases | |
933 | (add-before 'configure 'pre-configure | |
934 | ;; The file po/POTFILES.in ends up missing for some reason in | |
935 | ;; both nix and guix builds. Adding the file with contents | |
936 | ;; found during troubleshooting. | |
937 | (lambda _ | |
938 | (call-with-output-file "po/POTFILES.in" | |
939 | (lambda (port) | |
940 | (format port "data/fpm2.desktop.in | |
941 | data/fpm2.desktop.in.in | |
942 | fpm2.glade | |
943 | src/callbacks.c | |
944 | src/fpm.c | |
945 | src/fpm_file.c | |
946 | src/interface.c | |
947 | src/support.c | |
948 | fpm2.glade | |
949 | "))) | |
950 | #t))))) | |
951 | (synopsis "Manage, generate and store passwords encrypted") | |
952 | (description "FPM2 is GTK2 port from Figaro's Password Manager | |
953 | originally developed by John Conneely, with some new enhancements. | |
954 | ||
955 | Upstream development seems to have stopped. It is therefore recommended | |
956 | to use a different password manager.") | |
957 | (home-page "https://als.regnet.cz/fpm2/") | |
958 | (license license:gpl2+))) | |
20b51b17 AI |
959 | |
960 | (define-public pass-rotate | |
961 | (package | |
962 | (name "pass-rotate") | |
963 | (version "0.1") | |
964 | (source | |
965 | (origin | |
966 | (method url-fetch) | |
967 | (uri (string-append "https://github.com/SirCmpwn/pass-rotate/archive/" | |
968 | version ".tar.gz")) | |
969 | (sha256 | |
970 | (base32 | |
971 | "1svm5nj8bczv2dg8lh2zqqhbsrljqsw9680r03qwgl9vlci90210")) | |
972 | (file-name (string-append name "-" version ".tar.gz")))) | |
973 | (build-system python-build-system) | |
974 | (inputs | |
975 | `(("python-beautifulsoup4" ,python-beautifulsoup4) | |
976 | ("python-docopt" ,python-docopt) | |
977 | ("python-html5lib" ,python-html5lib) | |
978 | ("python-requests" ,python-requests))) | |
979 | (home-page "https://github.com/SirCmpwn/pass-rotate") | |
980 | (synopsis "Rotate password on online services") | |
981 | (description "pass-rotate is a command line utility and python library for | |
982 | rotating passwords on various web services. It makes it easier to rotate your | |
983 | passwords, one at a time or in bulk, when security events or routine upkeep of | |
984 | your online accounts makes it necessary.") | |
985 | (license license:expat))) | |
c10aa278 PN |
986 | |
987 | (define-public hashcat | |
988 | (package | |
989 | (name "hashcat") | |
45ee3fde | 990 | (version "5.1.0") |
c10aa278 PN |
991 | (source |
992 | (origin | |
993 | (method url-fetch) | |
994 | (uri (string-append "https://hashcat.net/files/hashcat-" | |
995 | version ".tar.gz")) | |
996 | (sha256 | |
997 | (base32 | |
45ee3fde | 998 | "0f73y4cg8c7a6q7x34qvpfi4g3lw6j9bnn0a13g43aqyiskflfr8")))) |
c10aa278 PN |
999 | (native-inputs |
1000 | `(("opencl-headers" ,opencl-headers))) | |
1001 | (build-system gnu-build-system) | |
1002 | (arguments | |
1003 | '(#:tests? #f ;no tests | |
1004 | #:make-flags (list (string-append "PREFIX=" %output)) | |
1005 | #:phases | |
1006 | (modify-phases %standard-phases | |
1007 | (delete 'configure)))) | |
1008 | (home-page "https://hashcat.net/hashcat/") | |
1009 | (synopsis "Advanced password recovery utility") | |
1010 | (description "Hashcat is an password recovery utility, supporting five | |
1011 | unique modes of attack for over 200 highly-optimized hashing algorithms. | |
1012 | Hashcat currently supports CPUs, GPUs, and other hardware accelerators on | |
1013 | Linux, Windows, and macOS, and has facilities to help enable distributed | |
1014 | password cracking.") | |
1015 | (license license:expat))) | |
eb4ffe9b PN |
1016 | |
1017 | (define-public hashcat-utils | |
1018 | (package | |
1019 | (name "hashcat-utils") | |
2b9b4b1f | 1020 | (version "1.9") |
eb4ffe9b PN |
1021 | (source |
1022 | (origin | |
1023 | (method url-fetch) | |
2b9b4b1f TGR |
1024 | (uri (string-append "https://github.com/hashcat/hashcat-utils/releases/" |
1025 | "download/v" version "/" | |
1026 | "hashcat-utils-" version ".7z")) | |
eb4ffe9b | 1027 | (sha256 |
2b9b4b1f | 1028 | (base32 "0kq555kb338691qd7zjmi8vhq4km3apnsl2w63zh0igwzcjx6lx1")))) |
eb4ffe9b PN |
1029 | (native-inputs |
1030 | `(("p7zip" ,p7zip))) | |
1031 | (inputs | |
1032 | `(("perl" ,perl))) | |
1033 | (build-system gnu-build-system) | |
1034 | (arguments | |
1035 | `(#:tests? #f ;no tests | |
1036 | #:make-flags (list "CC=gcc" | |
1037 | ;; Upstream bug(?): "make all" seems to remove the | |
1038 | ;; Perl scripts from the source. | |
1039 | "native") | |
1040 | #:phases | |
1041 | (modify-phases %standard-phases | |
1042 | (replace 'unpack | |
1043 | (lambda* (#:key source #:allow-other-keys) | |
1044 | (invoke "7z" "x" source) | |
1045 | (chdir (string-append "hashcat-utils-" ,version "/src")) | |
1046 | #t)) | |
1047 | (delete 'configure) | |
1048 | (replace 'install | |
1049 | (lambda* (#:key outputs #:allow-other-keys) | |
1050 | (let ((out (string-append (assoc-ref outputs "out") "/bin"))) | |
1051 | (mkdir-p out) | |
2b9b4b1f TGR |
1052 | (for-each |
1053 | (lambda (file) | |
1054 | (copy-file file (string-append out "/" | |
1055 | (basename file ".bin")))) | |
1056 | (find-files "." "\\.bin$")) | |
1057 | (for-each | |
1058 | (lambda (file) | |
1059 | (copy-file file (string-append out "/" | |
1060 | (basename file ".pl")))) | |
1061 | (find-files "../bin" "\\.pl$")) | |
eb4ffe9b PN |
1062 | #t)))))) |
1063 | (home-page "https://github.com/hashcat/hashcat-utils/") | |
1064 | (synopsis "Small utilities that are useful in advanced password cracking") | |
1065 | (description "Hashcat-utils are a set of small utilities that are useful | |
1066 | in advanced password cracking. They all are packed into multiple stand-alone | |
1067 | binaries. All of these utils are designed to execute only one specific | |
1068 | function. Since they all work with @code{STDIN} and @code{STDOUT} you can | |
1069 | group them into chains.") | |
1070 | (license license:expat))) |