Files
cryptsetup/misc/dict_search
Milan Broz 661f57def4 Use SPDX license identifiers.
This patch switches code to SPDX one-line license identifiers according to
https://spdx.dev/learn/handling-license-info/
and replacing long license text headers.

I used C++ format on the first line in style
// SPDX-License-Identifier: <id>
except exported libcryptsetup.h, when only C comments are used.

The only additional changes are:
- switch backend utf8.c from LGPL2+ to LGPL2.1+ (as in systemd)
- add some additional formatting lines.
2024-06-03 16:38:15 +00:00
..
2024-06-03 16:38:15 +00:00
2012-12-29 11:12:29 +01:00
2017-11-08 10:22:49 +01:00

Simple example how to use libcryptsetup
for password search.

Run: crypt_dict luks|tcrypt <device|image> <dictionary> [cpus]

luks|tcrypt specified device type (LUKS or TrueCrypt)

<device|image> is LUKS or TrueCrypt device or image

<dictionary> is list of passphrases to try
(note trailing EOL is stripped)

cpus - number of processes to start in parallel

Format of dictionary file is simple one password per line,
if first char on line is # it is skipped as comment.

For LUKS, you have it run as root (device-mapper cannot
create dmcrypt devices as nrmal user. Code need
to map keyslots as temporary dmcrypt device.)

For TrueCrypt devices root privilege is not required.