Re: Password hash as LUKS key
Arno Wagner <[email protected]> Fri, 10 Mar 2023 02:19:52 +0100
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
You probably have an issue with line endings. In priciple, this works and is supported, but interactive, pipe and read-from-file are all a bit different. The man-page has more info on this. Best try it out with a really simple password like "test". Regards, Arno On Thu, Mar 09, 2023 at 15:35:28 CET, Martin Olsson wrote: > Hey, > > I want to encrypt drives for users. I want to avoid having their password sent to me in clear text. > I was thinking of having them use a tool like mkpasswd to create a password hash and then > pipe the generated hash into cryptsetup luksAddKey. > > Unfortunately that didn't work when I tried it. > > So I guess it's not supported right? Maybe you know some other way to achieve what I want to accomplish? > > BR, > Martin -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: [email protected] GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. -- Plato If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier