[dm-crypt] recovering forgotten password

Arno Wagner arno at wagner.name
Wed Aug 17 21:40:28 CEST 2011


On Wed, Aug 17, 2011 at 09:35:13PM +0200, Arno Wagner wrote:
[...]
> To try a password, use somethin like
>   cryptsetup luksOpen /dev/sda3

Needs a device of course, so 
    cryptsetup luksOpen /dev/sda3 e1
for /dev/mapper/e1


> If you need enough tries to automatize this, you can
> read the passphrase from file (or stdin) with something 
> like this
>   cryptsetup --key-file=<some file> luksOpen /dev/sda3

Same as above:
   cryptsetup --key-file=<some file> luksOpen /dev/sda3  e1

and with reading from stdin

   cryptsetup --key-file="-" luksOpen /dev/loop0 e1 

Arno
-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno at wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 


More information about the dm-crypt mailing list