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