Encrypted Drive: Setting Password length too long?


jay010101

Recommended Posts

I have an Unassigned Device external drive that I've attached to my unraid server that I want to encrypt. Everything seems to work fine as I click the FORMAT button under UD on the MAIN screen.

 

I select XFS-ENCRYPTED and it asked me for my password. I used a long 26 character password, which I have used with LUKS before.  No error messages and the format goes through.

 

I go into the settings for UD and set the disk password so unraid can mount it with no error message, but when I attempt to mount it will not mount. In the log settings is says this

image.png.85776f51c0cc365c7b7261ef9b6754b5.png

 

So I re-partitioned the drive again setting a new password in case there was an error in entering the password the first time.  I tried mounting and it gave the same error message. I tried mounting using the command line which gave the same error No key Found.

 

So I re-partitioned again using a 16 character password and it worked fine.

 

I've used LUKS encryption before with very long password lengths, is there a reason unraid is restricting the number of characters?

 

What is the max password length?

 

Thank you.

Link to comment
  • 2 weeks later...
On 3/7/2021 at 6:49 PM, jay010101 said:

What is the max password length?

https://gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions does not say, but some guy here says it's 512.

 

But https://gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions#1-general-questions does indicate that :

 

Quote

PASSPHRASE CHARACTER SET: [...]It is highly advisable to only use the 95 printable characters from the first 128 characters of the ASCII table, as they will always have the same binary representation. Other characters may have different encoding depending on system configuration and your passphrase will not work with a different encoding. A table of the standardized first 128 ASCII characters can, e.g. be found on https://en.wikipedia.org/wiki/ASCII 

 

Maybe that was your issue.

 

Best,

OP

Edited by Opawesome
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.