From: Milan Broz <mbroz@redhat.com>
To: Nikhil AR <nikhilalayil@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup not accepting plain passwd with -d option
Date: Tue, 31 Jan 2012 16:34:00 +0100 [thread overview]
Message-ID: <4F2809E8.8060806@redhat.com> (raw)
In-Reply-To: <CAAS8TUSEtmw=ANN+WQ8qfV836mOR-xMNU1iu5BHYbpx5LQ4wyg@mail.gmail.com>
On 01/31/2012 03:49 PM, Nikhil AR wrote:
> Hi,
>
> I have created an encrypted ISO image of a directory named data using the below command.
>
> # mkisofa -r data | aespipe -p3 -e aes256 3<./passphrase > data.iso
...
> Is there a way to provide cryptsetup its password in a file when it is used in this manner?
The problem is with password hashing.
You need recent cryptsetup with loop-aes compatible support
(in your case you do not need new kernel, it is not multi-key device)
Just run
cryptsetup loopaesOpen data.iso aesdev --key-file passphrase
(no losetup needed, it should find loop automatically)
Milan
next prev parent reply other threads:[~2012-01-31 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-31 14:49 [dm-crypt] cryptsetup not accepting plain passwd with -d option Nikhil AR
2012-01-31 15:34 ` Milan Broz [this message]
2012-01-31 17:06 ` Nikhil AR
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F2809E8.8060806@redhat.com \
--to=mbroz@redhat.com \
--cc=dm-crypt@saout.de \
--cc=nikhilalayil@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.