1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Steve Sprang <scs@stevesprang.com>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2015 Aljosha Papsch <misc@rpapsch.de>
5 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
6 ;;; Copyright © 2016 Jessica Tallon <tsyesika@tsyesika.se>
7 ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
8 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
9 ;;; Copyright © 2016, 2019 Alex Griffin <a@ajgrf.com>
10 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
11 ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
12 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
13 ;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org>
14 ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
15 ;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
16 ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
17 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
18 ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
19 ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net>
20 ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
21 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
22 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
23 ;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net>
24 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages password-utils)
42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (guix build-system cmake)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix download)
46 #:use-module (guix git-download)
47 #:use-module (guix packages)
48 #:use-module (gnu packages)
49 #:use-module (gnu packages admin)
50 #:use-module (gnu packages aidc)
51 #:use-module (gnu packages authentication)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages check)
54 #:use-module (gnu packages compression)
55 #:use-module (gnu packages crypto)
56 #:use-module (gnu packages curl)
57 #:use-module (gnu packages file)
58 #:use-module (gnu packages freedesktop)
59 #:use-module (gnu packages gettext)
60 #:use-module (gnu packages glib)
61 #:use-module (gnu packages gnupg)
62 #:use-module (gnu packages gtk)
63 #:use-module (gnu packages guile)
64 #:use-module (gnu packages kerberos)
65 #:use-module (gnu packages libffi)
66 #:use-module (gnu packages linux)
67 #:use-module (gnu packages man)
68 #:use-module (gnu packages multiprecision)
69 #:use-module (gnu packages ncurses)
70 #:use-module (gnu packages nss)
71 #:use-module (gnu packages opencl)
72 #:use-module (gnu packages perl)
73 #:use-module (gnu packages pkg-config)
74 #:use-module (gnu packages python)
75 #:use-module (gnu packages python-web)
76 #:use-module (gnu packages python-xyz)
77 #:use-module (gnu packages suckless)
78 #:use-module (gnu packages tcl)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages qt)
81 #:use-module (gnu packages version-control)
82 #:use-module (gnu packages wxwidgets)
83 #:use-module (gnu packages xdisorg)
84 #:use-module (gnu packages xorg)
85 #:use-module (gnu packages xml)
86 #:use-module (guix build-system python))
95 (uri (string-append "mirror://sourceforge/pwgen/pwgen/" version
96 "/pwgen-" version ".tar.gz"))
98 (base32 "0yy90pqrr2pszzhb5hxjishq9qc7dqd290amiibqx9fm1b9kvc6s"))))
99 (build-system gnu-build-system)
101 `(#:tests? #f)) ; no test suite
102 (home-page "http://pwgen.sourceforge.net/")
103 (synopsis "Password generator")
104 (description "Pwgen generates passwords which can be easily memorized by a
106 (license license:gpl2)))
108 (define-public keepassxc
115 (uri (string-append "https://github.com/keepassxreboot/" name
116 "/releases/download/" version "/keepassxc-"
117 version "-src.tar.xz"))
120 "0f31lmpbkw0wrhq0qa4yw5b51bjv7vqp3ikr355qcm905456vyhm"))))
121 (build-system cmake-build-system)
123 '(#:configure-flags '("-DWITH_XC_NETWORKING=YES"
124 "-DWITH_XC_BROWSER=YES"
125 "-DWITH_XC_SSHAGENT=YES"
126 "-DWITH_XC_UPDATECHECK=NO")))
129 ("curl" ,curl) ; XC_NETWORKING
130 ("libgcrypt" ,libgcrypt)
131 ("libsodium" ,libsodium) ; XC_BROWSER
134 ("qrencode" ,qrencode)
137 ("qtx11extras" ,qtx11extras)
140 `(("qttools" ,qttools)))
141 (home-page "https://www.keepassxc.org")
142 (synopsis "Password manager")
143 (description "KeePassXC is a password manager or safe which helps you to
144 manage your passwords in a secure way. You can put all your passwords in one
145 database, which is locked with one master key or a key-file which can be stored
146 on an external storage device. The databases are encrypted using the
147 algorithms AES or Twofish.")
148 ;; Non-functional parts use various licences.
149 (license license:gpl3)))
151 (define-public keepassx
158 (uri (string-append "https://www.keepassx.org/releases/" version
159 "/keepassx-" version ".tar.gz"))
162 "1ia7cqx9ias38mnffsl7da7g1f66bcbjsi23k49sln0c6spb9zr3"))))
163 (build-system cmake-build-system)
165 `(("libgcrypt" ,libgcrypt)
171 (home-page "https://www.keepassx.org")
172 (synopsis "Password manager")
173 (description "KeePassX is a password manager or safe which helps you to
174 manage your passwords in a secure way. You can put all your passwords in one
175 database, which is locked with one master key or a key-file which can be stored
176 on an external storage device. The databases are encrypted using the
177 algorithms AES or Twofish.")
178 ;; Non functional parts use various licences.
179 (license license:gpl3)
180 (properties `((superseded . ,keepassxc)))))
182 (define-public pwsafe
186 (home-page "https://www.pwsafe.org/" )
191 (url "https://github.com/pwsafe/pwsafe.git")
193 (sha256 (base32 "0hxv23yh76liggxbjn4m132z15sklra8ms341xgzl4n5vjx30ihi"))
194 (file-name (string-append name "-" version "-checkout"))))
195 (build-system cmake-build-system)
196 (native-inputs `(("gettext" ,gettext-minimal)
199 (inputs `(("curl" ,curl)
201 ("gtest" ,googletest)
202 ("libuuid" ,util-linux)
206 ("qrencode" ,qrencode)
207 ("wxwidgets" ,wxwidgets)
208 ("xerces-c" ,xerces-c)))
209 (arguments '(#:configure-flags (list "-DNO_GTEST=YES")
210 #:phases (modify-phases %standard-phases
211 (add-after 'unpack 'add-gtest
212 (lambda* (#:key inputs #:allow-other-keys)
213 (chmod "CMakeLists.txt" #o644)
214 (let ((cmake-port (open-file "CMakeLists.txt"
216 (display "find_package(GTest)
217 add_subdirectory(src/test)\n" cmake-port)
220 (add-after 'add-gtest 'patch-executables
221 (lambda* (#:key inputs #:allow-other-keys)
222 (chmod "src/test/OSTest.cpp" #o644)
223 (substitute* "src/os/unix/media.cpp"
225 (string-append (assoc-ref inputs "file")
228 (synopsis "Password safe with automatic input and key generation")
229 (description "pwsafe is a password manager originally designed by Bruce
230 Schneier. It offers a simple UI to manage passwords for different services.
231 There are other programs that support the file format on different
233 (license license:artistic2.0)))
235 (define-public shroud
241 (uri (string-append "https://files.dthompson.us/shroud/shroud-"
245 "1y43yhgy2zbrk5bqj3qyx9rkcz2bma9sinlrg7dip3jqms9gq4lr"))))
246 (build-system gnu-build-system)
249 (modify-phases %standard-phases
250 (add-after 'install 'wrap-shroud
251 (lambda* (#:key outputs #:allow-other-keys)
252 (let* ((out (assoc-ref outputs "out"))
253 (ccachedir (string-append out "/lib/guile/2.0/ccache"))
254 (prog (string-append out "/bin/shroud")))
256 `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,ccachedir)))
259 `(("guile" ,guile-2.0)
262 (synopsis "GnuPG-based secret manager")
263 (description "Shroud is a simple secret manager with a command line
264 interface. The password database is stored as a Scheme s-expression and
265 encrypted with a GnuPG key. Secrets consist of an arbitrary number of
266 key/value pairs, making Shroud suitable for more than just password storage.
267 For copying and pasting secrets into web browsers and other graphical
268 applications, there is xclip integration." )
269 (home-page "https://dthompson.us/projects/shroud.html")
270 (license license:gpl3+)))
278 (uri (string-append "http://www.guengel.ch/myapps/yapet/downloads/yapet-"
283 "1lq46mpxdsbl6qw4cj58hp9q7jckmyvbsi08p5zr77rjgqadxyyy"))))
284 (build-system gnu-build-system)
286 `(("ncurses" ,ncurses)
287 ("openssl" ,openssl)))
289 `(("pkg-config" ,pkg-config)))
290 (synopsis "Yet Another Password Encryption Tool")
291 (description "YAPET is a text based password manager using the Blowfish
292 encryption algorithm. Because of its small footprint and very few library
293 dependencies, it is suited for installing on desktop and server systems alike.
294 The text based user interface allows you to run YAPET easily in a Secure Shell
295 session. Two companion utilities enable users to convert CSV files to YAPET
297 (home-page "http://www.guengel.ch/myapps/yapet/")
298 (license license:gpl3+)))
300 (define-public cracklib
307 (uri (string-append "https://github.com/cracklib/cracklib/"
308 "releases/download/v" version "/"
309 "cracklib-" version ".tar.bz2"))
311 (base32 "1rimpjsdnmw8f5b7k558cic41p2qy2n2yrlqp5vh7mp4162hk0py"))))
312 (build-system gnu-build-system)
315 (modify-phases %standard-phases
316 (add-after 'install 'install-dict
317 (lambda* (#:key make-flags #:allow-other-keys)
319 (chmod (string-append "util/cracklib-format") #o755)
320 (apply invoke "make" "dict" make-flags)
322 (synopsis "Password checking library")
323 (home-page "https://github.com/cracklib/cracklib")
325 "CrackLib is a library containing a C function which may be used in a
326 @command{passwd}-like program. The idea is simple: try to prevent users from
327 choosing passwords that could easily be guessed (or \"cracked\") by filtering
328 them out, at the source.")
329 (license license:lgpl2.1)))
331 (define-public libpwquality
333 (name "libpwquality")
338 (string-append "https://github.com/" name "/" name
339 "/releases/download/" name "-" version
340 "/" name "-" version ".tar.bz2")
341 (string-append "https://launchpad.net/libpwquality/trunk/"
342 version "/+download/"
343 name "-" version ".tar.bz2")))
346 "0syyz8r54l8mqmbb0mw19qz4z2cx8gdgidicb8k2s5zjdh2gzrhx"))))
347 (build-system gnu-build-system)
349 ;; XXX: have RUNPATH issue.
350 '(#:configure-flags '("--disable-python-bindings")))
352 `(("cracklib" ,cracklib)))
353 (synopsis "Password quality checker")
354 (home-page "https://github.com/libpwquality/libpwquality")
356 "Libpwquality is a library for password quality checking and generation of
357 random passwords that pass the checks.")
358 (license license:gpl2+)))
360 (define-public assword
368 "http://http.debian.net/debian/pool/main/a/assword/"
369 "assword_" version ".orig.tar.gz")))
372 "03gkb6kvsghznbcw5l7nmrc6mn3ixkjd5jcs96ni4zs9l47jf7yp"))))
374 `(;; irritatingly, tests do run but not there are two problems:
375 ;; - "import gtk" fails for unknown reasons here despite it the
376 ;; program working (indeed, I've found I have to do a logout and log
377 ;; back in in after an install order for some mumbo jumbo environment
378 ;; variable mess to work with pygtk and assword... what's up with
380 ;; - even when the tests fail, they don't return a nonzero status,
381 ;; so I'm not sure how to programmatically get that information
384 (modify-phases %standard-phases
385 (add-after 'install 'wrap-assword
386 (lambda* (#:key outputs #:allow-other-keys)
387 (let ((prog (string-append
388 (assoc-ref outputs "out")
390 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
392 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
394 (add-after 'install 'manpage
395 (lambda* (#:key outputs #:allow-other-keys)
396 ;; Without this substitution, it fails with
397 ;; ImportError: No module named 'gpg'
398 (substitute* "Makefile"
399 (("PYTHONPATH=.") ""))
400 (invoke "make" "assword.1")
403 (string-append (assoc-ref outputs "out") "/share/man/man1")))))))
404 (build-system python-build-system)
406 `(("txt2man" ,txt2man)))
409 ("python-xdo" ,python-xdo)
410 ("python-gpg" ,python-gpg)
411 ("python-pygobject" ,python-pygobject)))
414 (home-page "https://finestructure.net/assword/")
415 (synopsis "Password manager")
416 (description "assword is a simple password manager using GPG-wrapped
417 JSON files. It has a command line interface as well as a very simple
418 graphical interface, which can even \"type\" your passwords into
420 (license license:gpl3+)))
422 (define-public password-store
424 (name "password-store")
429 (string-append "https://git.zx2c4.com/password-store/snapshot/"
430 name "-" version ".tar.xz"))
433 "1x53k5dn3cdmvy8m4fqdld4hji5n676ksl0ql4armkmsds26av1b"))))
434 (build-system gnu-build-system)
437 (modify-phases %standard-phases
440 (add-before 'install 'patch-system-extension-dir
441 (lambda* (#:key outputs #:allow-other-keys)
442 (let* ((out (assoc-ref outputs "out"))
443 (extension-dir (string-append out "/lib/password-store/extensions")))
444 (substitute* "src/password-store.sh"
445 (("^SYSTEM_EXTENSION_DIR=.*$")
446 ;; lead with whitespace to prevent 'make install' from
447 ;; overwriting it again
448 (string-append " SYSTEM_EXTENSION_DIR=\""
449 "${PASSWORD_STORE_SYSTEM_EXTENSION_DIR:-"
453 (add-before 'install 'patch-passmenu-path
454 (lambda* (#:key inputs #:allow-other-keys)
455 (substitute* "contrib/dmenu/passmenu"
456 (("dmenu") (string-append (assoc-ref inputs "dmenu")
458 (("xdotool") (string-append (assoc-ref inputs "xdotool")
461 (add-after 'install 'install-passmenu
462 (lambda* (#:key outputs #:allow-other-keys)
463 (let* ((out (assoc-ref outputs "out"))
464 (bin (string-append out "/bin")))
465 (install-file "contrib/dmenu/passmenu" bin)
467 (add-after 'install 'wrap-path
468 (lambda* (#:key inputs outputs #:allow-other-keys)
469 (let ((out (assoc-ref outputs "out"))
470 (path (map (lambda (pkg)
471 (string-append (assoc-ref inputs pkg) "/bin"))
472 '("coreutils" "getopt" "git" "gnupg" "qrencode"
473 "sed" "tree" "which" "xclip"))))
474 (wrap-program (string-append out "/bin/pass")
475 `("PATH" ":" prefix (,(string-join path ":"))))
477 (add-after 'wrap-path 'install-shell-completions
478 (lambda* (#:key outputs #:allow-other-keys)
479 (let* ((out (assoc-ref outputs "out"))
480 (bashcomp (string-append out "/etc/bash_completion.d")))
481 ;; TODO: install fish and zsh completions.
483 (copy-file "src/completion/pass.bash-completion"
484 (string-append bashcomp "/pass"))
486 #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
487 ;; Parallel tests may cause a race condition leading to a
488 ;; timeout in some circumstances.
490 #:test-target "test"))
492 (list (search-path-specification
493 (variable "PASSWORD_STORE_SYSTEM_EXTENSION_DIR")
494 (files '("lib/password-store/extensions")))))
497 ("getopt" ,util-linux)
500 ("qrencode" ,qrencode)
505 ("xdotool" ,xdotool)))
506 (home-page "https://www.passwordstore.org/")
507 (synopsis "Encrypted password manager")
508 (description "Password-store is a password manager which uses GnuPG to
509 store and retrieve passwords. The tool stores each password in its own
510 GnuPG-encrypted file, allowing the program to be simple yet secure.
511 Synchronization is possible using the integrated git support, which commits
512 changes to your password database to a git repository that can be managed
513 through the pass command.")
514 (license license:gpl2+)))
516 (define-public pass-otp
524 (string-append "https://github.com/tadfisher/pass-otp/releases/"
525 "download/v" version "/pass-otp-" version ".tar.gz"))
528 "0rrs3iazq80dn0wbl20xkh270428jd8l99m5gd7hl93s4r4sc82p"))))
529 (build-system gnu-build-system)
532 (let* ((out (assoc-ref %outputs "out"))
533 (bashcomp (string-append out "/etc/bash_completion.d")))
534 (list (string-append "PREFIX=" %output)
535 (string-append "BASHCOMPDIR=" bashcomp)))
537 (modify-phases %standard-phases
539 (add-after 'build 'patch-oath-path
540 (lambda* (#:key inputs #:allow-other-keys)
541 (substitute* "otp.bash"
545 (assoc-ref inputs "oath-toolkit")
548 #:test-target "test"))
550 `(("oath-toolkit" ,oath-toolkit)))
552 `(("password-store" ,password-store)
557 (home-page "https://github.com/tadfisher/pass-otp")
558 (synopsis "Pass extension for managing one-time-password (OTP) tokens")
560 "Pass OTP is an extension for password-store that allows adding
561 one-time-password (OTP) secrets, generating OTP codes, and displaying secret
562 key URIs using the standard otpauth:// scheme.")
563 (license license:gpl3+)))
565 (define-public argon2
573 (string-append "https://github.com/P-H-C/phc-winner-argon2/archive/"
575 (file-name (string-append name "-" version ".tar.gz"))
578 "1n6w5y3va7lrcym7cxr0nikapldqm80wxjdns584bvplq5r03spa"))))
579 (build-system gnu-build-system)
581 `(#:test-target "test"
582 #:make-flags '("CC=gcc"
583 "OPTTEST=1") ;disable CPU optimization
585 (modify-phases %standard-phases
586 (add-after 'unpack 'patch-Makefile
587 (lambda* (#:key outputs #:allow-other-keys)
588 (let ((out (assoc-ref outputs "out")))
589 (substitute* "Makefile"
590 (("PREFIX = /usr") (string-append "PREFIX = " out)))
591 (substitute* "libargon2.pc"
592 (("prefix=/usr") (string-append "prefix=" out))
593 (("@HOST_MULTIARCH@") "")
594 (("@UPSTREAM_VER@") ,version))
597 (add-after 'install 'install-argon2.pc
598 (lambda* (#:key outputs #:allow-other-keys)
599 (let ((out (assoc-ref outputs "out")))
600 (install-file "libargon2.pc"
601 (string-append out "/lib/pkgconfig"))
603 (home-page "https://www.argon2.com/")
604 (synopsis "Password hashing library")
605 (description "Argon2 provides a key derivation function that was declared
606 winner of the 2015 Password Hashing Competition.")
607 ;; Argon2 is dual licensed under CC0 and ASL 2.0. Some of the source
608 ;; files are CC0 only; see README.md and LICENSE for details.
609 (license (list license:cc0 license:asl2.0))))
611 (define-public pass-git-helper
613 (name "pass-git-helper")
618 (uri (string-append "https://github.com/languitar/pass-git-helper/archive/release-"
622 "0lz5ncy44pz7z1j2nnyildx8sq33zi3xvg5nkwg25n11nasqh2xn"))))
623 (build-system python-build-system)
626 (modify-phases %standard-phases
627 (add-before 'build 'patch-pass-path
628 (lambda* (#:key inputs #:allow-other-keys)
629 (let* ((password-store (assoc-ref inputs "password-store"))
630 (pass (string-append password-store "/bin/pass")))
631 (substitute* "pass-git-helper"
632 (("'pass'") (string-append "'" pass "'")))
635 `(("python-pyxdg" ,python-pyxdg)
636 ("password-store" ,password-store)))
637 (home-page "https://github.com/languitar/pass-git-helper")
638 (synopsis "Git credential helper interfacing with pass")
639 (description "pass-git-helper is a git credential helper which allows to
640 use pass, the standard unix password manager, as the credential backend for
641 your git repositories. This is achieved by explicitly defining mappings
642 between hosts and entries in the password store.")
643 (license license:lgpl3+)))
645 (define-public john-the-ripper-jumbo
646 (let ((official-version "1.8.0")
649 (name "john-the-ripper-jumbo")
650 (version (string-append official-version "-" jumbo-version))
654 (uri (string-append "http://www.openwall.com/john/j/john-"
655 official-version "-jumbo-" jumbo-version ".tar.xz"))
658 "08q92sfdvkz47rx6qjn7qv57cmlpy7i7rgddapq5384mb413vjds"))
662 (uri (string-append "https://github.com/magnumripper/"
663 "JohnTheRipper/commit/"
664 "e2e868db3e153b3f959e119a51703d4afb99c624.patch"))
665 (file-name "john-the-ripper-jumbo-gcc5-inline.patch")
668 "1shvcf1y2097115mxhzdkm64dr106a8zr6pqjqyh171q5ng5vfra")))
671 (uri (string-append "https://github.com/magnumripper/"
672 "JohnTheRipper/commit/"
673 "480e95b0e449863be3e1a5b0bc634a67df28b618.patch"))
674 (file-name "john-the-ripper-jumbo-non-x86.patch")
677 "1ffd9dvhk0sb6ss8dv5yalh01lz30i7rilqilf2xv68gax2hyjqx")))))))
678 (build-system gnu-build-system)
690 "-DJOHN_SYSTEMWIDE=1 "
691 "-DJOHN_SYSTEMWIDE_EXEC='\"" %output "/libexec/john\"' "
692 "-DJOHN_SYSTEMWIDE_HOME='\"" %output "/share/john\"'")
693 ;; For now, do not test for instruction set in configure, and
694 ;; do not pass '-march=native' to gcc:
695 "--disable-native-tests"
696 "--disable-native-macro")
697 #:tests? #f ;tests try to create '.john' in the build user's $HOME
699 (modify-phases %standard-phases
700 (add-before 'configure 'chdir-src
701 (lambda _ (chdir "src")))
704 (let ((bindir (string-append %output "/bin"))
705 (docdir (string-append %output "/share/doc/john"))
706 (execdir (string-append %output "/libexec/john"))
707 (homedir (string-append %output "/share/john"))
708 (install-file-to (lambda (dir)
709 (lambda (f) (install-file f dir))))
710 (symlink? (lambda (_ s) (eq? (stat:type s) 'symlink))))
711 (with-directory-excursion "../run"
712 (for-each (install-file-to execdir)
713 (cons* "mailer" "benchmark-unify"
714 (find-files "." ".*\\.(py|rb|pl)")))
715 (for-each (install-file-to homedir)
716 (append (find-files "." "(stats|dictionary.*)")
717 (find-files "." "(.*\\.chr|.*\\.lst)")
718 (find-files "." ".*\\.conf")))
719 (for-each (install-file-to bindir)
720 '("tgtsnarf" "genmkvpwd" "mkvcalcproba"
721 "raw2dyna" "luks2john" "vncpcap2john"
722 "uaf2john" "calc_stat" "wpapcap2john"
723 "cprepair" "relbench" "SIPdump" "john"))
724 (for-each (lambda (f) ;install symlinked aliases
726 (string-append bindir "/" (basename f))))
727 (find-files "." symlink?)))
728 (copy-recursively "../doc" docdir)
730 (home-page "http://www.openwall.com/john/")
731 (synopsis "Password cracker")
732 (description "John the Ripper is a fast password cracker. Its primary
733 purpose is to detect weak Unix passwords. Besides several @code{crypt}
734 password hash types most commonly found on various Unix systems, supported out
735 of the box are Windows LM hashes, plus lots of other hashes and ciphers. This
736 is the community-enhanced, \"jumbo\" version of John the Ripper.")
737 (license license:gpl2+))))
746 (uri (pypi-uri "sala" version))
749 "13qgmc3i2a0cqp8jqrfl93lnphfagb32pgfikc1gza2a14asxzi8"))))
750 (build-system python-build-system)
752 ;; Sala is supposed to work with Python 3.2 or higher,
753 ;; but it doesn't work with Python 3.6. Better stick
754 ;; to Python 2, which works fine.
755 `(#:python ,python-2))
759 (home-page "http://www.digip.org/sala/")
760 (synopsis "Encrypted plaintext password store")
762 "Store passwords and other bits of sensitive plain-text information
763 to encrypted files on a directory hierarchy. The information is protected
764 by GnuPG's symmetrical encryption.")
765 (license license:expat)))
773 (uri (string-append "https://als.regnet.cz/fpm2/download/fpm2-"
777 "19sdy1lygfhkg5nxi2w9a4d9kwvw24nxp0ix0p0lz91qpvk9qpnm"))))
778 (build-system gnu-build-system)
779 (inputs `(("gtk2" ,gtk+-2)
781 ("libxml2" ,libxml2)))
782 (native-inputs `(("pkg-config" ,pkg-config)
783 ("intltool" ,intltool)))
786 (modify-phases %standard-phases
787 (add-before 'configure 'pre-configure
788 ;; The file po/POTFILES.in ends up missing for some reason in
789 ;; both nix and guix builds. Adding the file with contents
790 ;; found during troubleshooting.
792 (call-with-output-file "po/POTFILES.in"
794 (format port "data/fpm2.desktop.in
795 data/fpm2.desktop.in.in
805 (synopsis "Manage, generate and store passwords encrypted")
806 (description "FPM2 is GTK2 port from Figaro's Password Manager
807 originally developed by John Conneely, with some new enhancements.
809 Upstream development seems to have stopped. It is therefore recommended
810 to use a different password manager.")
811 (home-page "https://als.regnet.cz/fpm2/")
812 (license license:gpl2+)))
814 (define-public pass-rotate
821 (uri (string-append "https://github.com/SirCmpwn/pass-rotate/archive/"
825 "1svm5nj8bczv2dg8lh2zqqhbsrljqsw9680r03qwgl9vlci90210"))
826 (file-name (string-append name "-" version ".tar.gz"))))
827 (build-system python-build-system)
829 `(("python-beautifulsoup4" ,python-beautifulsoup4)
830 ("python-docopt" ,python-docopt)
831 ("python-html5lib" ,python-html5lib)
832 ("python-requests" ,python-requests)))
833 (home-page "https://github.com/SirCmpwn/pass-rotate")
834 (synopsis "Rotate password on online services")
835 (description "pass-rotate is a command line utility and python library for
836 rotating passwords on various web services. It makes it easier to rotate your
837 passwords, one at a time or in bulk, when security events or routine upkeep of
838 your online accounts makes it necessary.")
839 (license license:expat)))
841 (define-public hashcat
848 (uri (string-append "https://hashcat.net/files/hashcat-"
852 "0f73y4cg8c7a6q7x34qvpfi4g3lw6j9bnn0a13g43aqyiskflfr8"))))
854 `(("opencl-headers" ,opencl-headers)))
855 (build-system gnu-build-system)
857 '(#:tests? #f ;no tests
858 #:make-flags (list (string-append "PREFIX=" %output))
860 (modify-phases %standard-phases
861 (delete 'configure))))
862 (home-page "https://hashcat.net/hashcat/")
863 (synopsis "Advanced password recovery utility")
864 (description "Hashcat is an password recovery utility, supporting five
865 unique modes of attack for over 200 highly-optimized hashing algorithms.
866 Hashcat currently supports CPUs, GPUs, and other hardware accelerators on
867 Linux, Windows, and macOS, and has facilities to help enable distributed
869 (license license:expat)))
871 (define-public hashcat-utils
873 (name "hashcat-utils")
878 (uri (string-append "https://github.com/hashcat/hashcat-utils/releases/"
879 "download/v" version "/"
880 "hashcat-utils-" version ".7z"))
882 (base32 "0kq555kb338691qd7zjmi8vhq4km3apnsl2w63zh0igwzcjx6lx1"))))
887 (build-system gnu-build-system)
889 `(#:tests? #f ;no tests
890 #:make-flags (list "CC=gcc"
891 ;; Upstream bug(?): "make all" seems to remove the
892 ;; Perl scripts from the source.
895 (modify-phases %standard-phases
897 (lambda* (#:key source #:allow-other-keys)
898 (invoke "7z" "x" source)
899 (chdir (string-append "hashcat-utils-" ,version "/src"))
903 (lambda* (#:key outputs #:allow-other-keys)
904 (let ((out (string-append (assoc-ref outputs "out") "/bin")))
908 (copy-file file (string-append out "/"
909 (basename file ".bin"))))
910 (find-files "." "\\.bin$"))
913 (copy-file file (string-append out "/"
914 (basename file ".pl"))))
915 (find-files "../bin" "\\.pl$"))
917 (home-page "https://github.com/hashcat/hashcat-utils/")
918 (synopsis "Small utilities that are useful in advanced password cracking")
919 (description "Hashcat-utils are a set of small utilities that are useful
920 in advanced password cracking. They all are packed into multiple stand-alone
921 binaries. All of these utils are designed to execute only one specific
922 function. Since they all work with @code{STDIN} and @code{STDOUT} you can
923 group them into chains.")
924 (license license:expat)))